A user's watchlist labels should be included in the action=query&meta=userinfo&uiprop=* API response, which is linked from Special:Preferences.
Derived Requirement
Include a user’s watchlist labels in the API response for
action=query&meta=userinfo&uiprop=*.
When a user queries this endpoint, the response must contain a structured list of all watchlist labels associated with that user.
Test Steps
Test Case 1: Verify labels returned match the user’s actual watchlist labels
- Navigate to *Special:WatchlistLabels*.
- Note the list of existing watchlist labels.
- Run the API request: api.php?action=query&meta=userinfo&uiprop=*
- Compare the API response to the labels seen in the UI.
- ✅❓❌⬜ AC1: Confirm that the labels returned in the API match exactly the labels associated with the user.
Test Case 2: Verify API response updates after adding a label
- Create a new label in *Special:WatchlistLabels*.
- Re-run the API request.
- ✅❓❌⬜ AC2: Confirm the newly added label appears in the API response.
Test Case 3: Verify API response updates after deleting a label
- Delete any existing label from *Special:WatchlistLabels*.
- Re-run the API request.
- ✅❓❌⬜ AC3: Confirm the deleted label no longer appears in the API response.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T409375#11453215 |
| 2 | ✅ | T409375#11453215 |
| 3 | ✅ | T409375#11453215 |