Make sure that the user can't select a page multiple times in the manual page selection dropdowns#22419
Conversation
Pull Request Test Coverage Report for Build ad2448b82495dcb34eaba09413580e9f24a3579fWarning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
f2e31b1 to
7315ef4
Compare
|
A merge conflict has been detected for the proposed code changes in this PR. Please resolve the conflict by either rebasing the PR or merging in changes from the base branch. |
# Conflicts: # packages/js/src/settings/routes/llms-txt.js # Conflicts: # packages/js/src/settings/routes/llms-txt.js
* preload the store with initial data from the currently selected llms.txt pages -- this guarantees the UI has the correct info from the start as the initial fetch only returns the top 10 pages of your site * fix the fallback to all ids if the search query is empty * filter out the other selected ids (except our own) * limit the maximum amount of selected pages to 10
When the parent/global request was still fetching it would not check this and just fallback to all the ids, which are still empty at that moment
7315ef4 to
a951321
Compare
| 'name' => ( $post->get_title() ) ? $post->get_title() : $post->get_slug(), | ||
| 'id' => $page_id, | ||
| 'title' => ( $post->get_title() ) ? $post->get_title() : $post->get_slug(), | ||
| 'slug' => $post->get_slug(), |
There was a problem hiding this comment.
I think we can remove this? (and cascade the slug removal in the store as well)
I dont think we use it anywhere meaningful currently.
There was a problem hiding this comment.
Not a big deal actually and certainly not a blocker, so I'm moving on
|
CR + Acceptance is ✅ (@igorschoester I pushed the change for increasing the pool of the endpoint to 100 like we said and also a minor comment correction, so just a heads up) |
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:
src\llms-txt\application\available-posts\available-posts-repository.phpand edit the$available_posts = $this->automatic_post_collection->get_recent_posts( $parameters->get_post_type(), 100, $parameters->get_search_filter(), true );line to$available_posts = $this->automatic_post_collection->get_recent_posts( $parameters->get_post_type(), 12, $parameters->get_search_filter(), true );100instead of12, so this state is super hard for the user to reachavailable-posts-repository.phpfileRegression test: #22406
But in particular, the initial load should show loading indication (instead of saying no results)
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.Fixes https://github.com/Yoast/reserved-tasks/issues/655