Steps to replicate the issue (include links if applicable):
- Make a request to ApiQueryWishes with the count option set, i.e. https://meta.wikimedia.beta.wmcloud.org/wiki/Special:ApiSandbox#action=query&format=json&list=communityrequests-wishes&formatversion=2&crwcount=1
- Observe the count under communityrequests-wishes-metadata is correct
- Add a filter such as crwtags=categories
- Re-run the API request
What happens?:
The count is not the same as the number of wishes returned.
What should have happened instead?:
The query for counting wishes should take into account any filters that are applied.
Derived Requirement
The ApiQueryWishes module must ensure that the crwcount option reflects the number of wishes after filters are applied. When filters such as crwtags, crwfocusareas, or other valid parameters are added, the communityrequests-wishes-metadata → count value must match the number of wishes returned in the API response.
Test Result - Beta|Prod
Status: ✅ PASS / ❓Need More Info / ❌ FAIL
Environment: beta/MetaWiki
OS: macOS Sequoia 15.6.1
Browser: Chrome 140
Device: MBA
Test Artifact(s):
Test Steps
Test Case 1: Count With Tag Filter
- Open Special:ApiSandbox.
- Run a query with list=communityrequests-wishes and add a valid crwtags filter (e.g., categories).
- ✅❓❌⬜ AC1: Confirm that the count value matches the number of wishes returned.
Test Case 2: Count With Different Focus Area Filter
- Open Special:ApiSandbox.
- Run a query with list=communityrequests-wishes, and add a valid crwtags filter (e.g., search).
- ✅❓❌⬜ AC2: Confirm that the count reflects only wishes belonging to the selected focus area.
Test Case 3: Count With Multiple Filters
- Run a query with list=communityrequests-wishes,, and apply multiple filters (e.g., crwtags=search & mobileweb).
- ✅❓❌⬜ AC3: Confirm that the count matches the number of wishes returned after applying all filters.
Test Case 4: Invalid Filter Handling
- Run a query with list=communityrequests-wishes, and apply an invalid filter value (e.g., crwtags=invalidtag).
- ✅❓❌⬜ AC4: Confirm that the count returns 0 and the list of wishes is empty.
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T404264#11190282 |
| 2 | ✅ | T404264#11190282 |
| 3 | ✅ | T404264#11190282 |
| 4 | ✅ | Pass per T404264#11192283 |






