Add check for archive pages to make sure indexables are only built when needed.#20146
Merged
Conversation
leonidasmi
reviewed
Apr 13, 2023
5057cf7 to
bab033a
Compare
3bf60e4 to
3919935
Compare
leonidasmi
reviewed
Apr 24, 2023
Contributor
leonidasmi
left a comment
There was a problem hiding this comment.
We need to also strip the types from the two new methods, as per our convo here. Probably best to add some defensive coding around the usages of those methods, to ensure no weird behavior with false-y values.
…p-storing-indexables-for-archive-pages-for-non-public-queriable-post-types-when-accessing-the-archive-page # Conflicts: # src/integrations/cleanup-integration.php # tests/unit/integrations/cleanup-integration-test.php
…/wordpress-seo into 19560-stop-storing-indexables-for-archive-pages-for-non-public-queriable-post-types-when-accessing-the-archive-page
leonidasmi
reviewed
Apr 27, 2023
Contributor
leonidasmi
left a comment
There was a problem hiding this comment.
There are a couple of things that need to be added/removed, which I'm gonna share below, but because they are totally independent from the rest of the PR, I want to add that once those are added/removed and tested, we can merge this as the rest is CRed and tested and 👍
We need to:
- Add a respective count function for the new cleanup action and add it in the
To_Be_Cleaned_Indexables_Collector. Make sure to add test instructions for that too. - Remove the scheduling of the cleanup from 20.7, because we moved it to 20.8 - unless I'm missing something?
16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Publicto false.Publicly Queryableto true.Has Archiveto true.post-type-archivePublicto true.Publicly Queryableto true.Has Archiveto true.post-type-archivewp transient delete --allNotice the closing } after the admin init this is to close out the constructor.
And add the following use statement at the top of file with the other use statements.
Go to basic.wordpress.test/wp-admin/admin.php?page=wpseo_dashboard&action=test and make sure the
cleanup_namewith keyindexables_for_non_publicly_viewable_post_type_archive_pageshas atleast a count of 2.wpseo_start_cleanup_indexablestask and hit run now.Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel and noted the work hours.Fixes #