Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CANTINA-985: Deprecate wpcom_vip_get_page_by_path(), wpcom_vip_term_exists() and wpcom_vip_get_page_by_title() #4983

Closed
wants to merge 1 commit into from

Conversation

rebeccahum
Copy link
Contributor

@rebeccahum rebeccahum commented Oct 27, 2023

Description

Given that we no longer recommend the VIP-equivalent on our docs, it's time to deprecate them since Core has added caching to these functions since 6.0+.

Since VIP only supports versions 1 version back and WP 6.4 is coming up, we should reflect that in our codebase.

Changelog Description

Functions Deprecated: wpcom_vip_get_page_by_path(), wpcom_vip_term_exists() and wpcom_vip_get_page_by_title()

wpcom_vip_get_page_by_path(), wpcom_vip_term_exists() and wpcom_vip_get_page_by_title() are now deprecated since WordPress core has added caching to these functions.

Pre-review checklist

Please make sure the items below have been covered before requesting a review:

  • This change works and has been tested locally (or has an appropriate fallback).
  • This change works and has been tested on a Go sandbox.
  • This change has relevant unit tests (if applicable).
  • This change uses a rollout method to ease with deployment (if applicable - especially for large scale actions that require writes).
  • This change has relevant documentation additions / updates (if applicable).
  • I've created a changelog description that aligns with the provided examples.

Pre-deploy checklist

  • VIP staff: Ensure any alerts added/updated conform to internal standards (see internal documentation).

Steps to Test

@rebeccahum rebeccahum marked this pull request as ready for review October 27, 2023 21:29
@rebeccahum rebeccahum requested a review from a team as a code owner October 27, 2023 21:29
@rebeccahum rebeccahum force-pushed the deprecate_prev_uncached_helper_functions branch 3 times, most recently from 665451d to 3968299 Compare October 27, 2023 21:31
@rebeccahum rebeccahum changed the title Deprecate wpcom_vip_get_page_by_path(), wpcom_vip_term_exists() and wpcom_vip_get_page_by_title() CANTINA-985: Deprecate wpcom_vip_get_page_by_path(), wpcom_vip_term_exists() and wpcom_vip_get_page_by_title() Oct 27, 2023
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #4983 (34e0259) into develop (abef0ab) will increase coverage by 0.04%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             develop    #4983      +/-   ##
=============================================
+ Coverage      28.82%   28.87%   +0.04%     
  Complexity      4748     4748              
=============================================
  Files            278      278              
  Lines          20923    20892      -31     
=============================================
  Hits            6032     6032              
+ Misses         14891    14860      -31     
Files Coverage Δ
vip-helpers/vip-caching.php 11.89% <ø> (+2.18%) ⬆️
vip-helpers/vip-deprecated.php 0.00% <0.00%> (ø)

Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

4 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@rebeccahum rebeccahum force-pushed the deprecate_prev_uncached_helper_functions branch from 62fd78d to fb9fdb1 Compare February 1, 2024 16:04
Copy link

sonarqubecloud bot commented Feb 1, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

4 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@rebeccahum
Copy link
Contributor Author

Closing in favour of #5343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants