Users should not be able to create more than 100 labels.
This is to avoid database size concerns, and other unnecessary complexity in implementation.
Derived Requirement
Limit the number of watchlist labels a user can create to 100. The system must prevent users from creating additional labels once this limit is reached and display an appropriate error or warning message.
Test Steps
Test Case 1: Verify user cannot create more than 2 watchlist labels
prereq- add to Local: $wgWatchlistLabelsMaxPerUser = 2;
- Log in to the wiki.
- Navigate to *Special:WatchlistLabels/edit*.
- Create watchlist labels until the count reaches 2.
- Attempt to create a 101st label.
- ✅❓❌⬜ AC1: Confirm the system prevents the creation of the 3rd label and displays an appropriate error or warning message.
Test Case 2: Verify existing labels can still be edited after reaching the limit
prereq- add to Local: $wgWatchlistLabelsMaxPerUser = 2;
- Log in as a user who already has 2 labels.
- Navigate to *Special:WatchlistLabels*.
- Edit any existing label and save changes.
- ✅❓❌⬜ AC2: Confirm that users can edit existing labels even after reaching the 2-label limit.
Test Case 3: Verify users can delete labels after reaching the limit
prereq- add to Local: $wgWatchlistLabelsMaxPerUser = 2;
- Log in as a user with 2 labels.
- Navigate to *Special:WatchlistLabels*.
- Delete one existing label.
- Attempt to create a new label.
- ✅❓❌⬜ AC3: Confirm that after deleting a label, the user can successfully create a new label without hitting the limit error.
QA Results - Local
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T410383#11453034 |
| 2 | ✅ | T410383#11453034 |
| 3 | ✅ | T410383#11453034 |