Steps to replicate the issue (include links if applicable):
- Create a wish with a Assigned focus area or go to a Wish that does not have one assigned
- Assign the wish a focus area and submit
- Once assigned, now delete the Focus Area assigned to the wish
- Go back to the wish that was assigned the focus area (ex. https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/Wishes/W5)
What happens?:
The Assigned focus are still says the FA# it was assigned even when it was deleted
What should have happened instead?:
It should go back to "Unassigned" if the focus area is deleted
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Derived Requirement
When a Focus Area assigned to a Wish is deleted, the system should automatically update the Wish’s status to “Unassigned”.
The Wish should no longer display the deleted Focus Area reference (e.g., FA#) and should reflect its unassigned state both in the UI and database.
Test Steps
Test Case 1: Verify Wish reverts to 'Unassigned' when assigned Focus Area is deleted
- Create a new Wish or open an existing Wish with no assigned Focus Area.
- Assign a Focus Area (e.g., FA#4) to the Wish and submit the change.
- Navigate to the Focus Areas list and delete the Focus Area (FA#1) assigned to the Wish.
- Return to the Wish detail page (e.g., Community_Wishlist/Wishes/W13).
- ✅❓❌⬜ AC1: Confirm that the Wish now displays “Unassigned” in the Focus Area field instead of the deleted FA#.
Test Case 2: Verify database consistency after deletion
- After deleting the assigned Focus Area, query the backend or API (if available) for the Wish’s Focus Area assignment.
- ✅❓❌⬜ AC2: Confirm that the Focus Area reference is null, empty, or removed (not referencing the deleted Focus Area ID).
Test Case 3: Validate correct behavior when multiple Wishes share the same Focus Area
- Assign the same Focus Area (e.g., FA#6) to multiple Wishes.
- Delete FA#6.
- ✅❓❌⬜ AC3: Confirm that all Wishes previously linked to FA#2 revert to “Unassigned.”
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T404101#11262742 |
| 2 | ✅ | T404101#11262742 |
| 3 | ✅ | T404101#11262742 |
