getMergedItemsIds: receive full page bigger than perPage#77262
Conversation
|
Size Change: +4 B (0%) Total Size: 7.74 MB 📦 View Changed
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in d5a6f69. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24337789200
|

Fixes an issue reported by @t-hamano in #76406 (comment). It's a regression from #76406 and #76808. The problem is that when the
receiveQueriesreducer receives a page of results that is longer than theperPagevalue, it should ignore the smallerperPage(it's often just a default value) and receive the full page instead.This manifests in the
getEntityRecords( 'root', 'icon' )query where the REST endpoint returns 88 results and the defaultperPageis just 10. We should receive the full 88-item array.How to test:
Insert an
iconblock and click on "Choose icon". In the modal that opens, there should be all available icons, not just the first 10.