This was brought up by @JSengupta-WMF.
It would be useful to be able to query for wishes that have no assigned focus area.
Developer notes
- ApiQueryWishes should accept unassigned as a value for the focusarea parameter
- Perhaps a new constant WishStore::FILTER_NO_FOCUS_AREA
- Query for static::focusAreaField() => null
Acceptance criteria
When querying action=communityrequests-wishes with focusarea=unassigned, only wishes with no focus area should be returned.
Derived Requirement
Add support for filtering wishes with no assigned focus area in the API and UI:
- Extend ApiQueryWishes to accept focusarea=unassigned.
- Implement WishStore::FILTER_NO_FOCUS_AREA constant for handling this filter.
- Update query logic so that focusarea=unassigned returns only wishes where focusAreaField() => null.
- Ensure no other wishes (with assigned focus areas) are included in the result.
Test Steps
Test Case 1: Query with Focus Area = Unassigned
- Open the API Sandbox on beta.
- Run the query:
` action=query list=communityrequests-wishes crwfocusareas=unassigned format=json ` - ✅❓❌⬜ AC1: The result returns only wishes without a focus area assigned.
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T405049#11233960 |


