Steps to replicate the issue (include links if applicable):
- Block the /page-collections endpoint from the LiftWing APIwiki
- Open ContentTranslation page in any wiki with the "All collections" filter preselected in the URL. e.g.
What happens?:
An error is thrown in the browser console, and no suggestion filter is selected. Additionally, only the "More" option is displayed in the filter bar, and clicking on it throws new errors.
What should have happened instead?:
The default filter ("For you" filter, with filter-type equal to automatic and filter-id equal to previous-edits) should have been selected, given that the "All collections" is not available. The suggestion filter bar should have contained three options (including the "More" option), and clicking on the "More" option should properly open the filters dialog.
Screencast from greek (el) production wiki:
Derived Requirement
If the /page-collections endpoint fails or returns no collections when the Content Translation page is opened with the "All collections" filter preselected via URL parameters, the system must:
- Automatically fall back to the default filter: “For you” (filter-type=automatic, filter-id=previous-edits)
- Display the full suggestion filter bar with all expected filters (e.g., “For you,” “Collections,” and “More”)
- Ensure clicking on “More” opens the filters dialog without causing any console errors
Test Steps
Precondition: Simulate a failure or block access to the /page-collections API endpoint on the target wiki.
Test Case 1: Fallback to “For you” filter when collections are unavailable
- Visit the following URL on the wiki with the endpoint blocked: https://el.wikipedia.org/w/index.php?title=Special:ContentTranslation&filter-type=automatic&filter-id=collections&active-list=suggestions&from=en&to=el
- ✅❓❌⬜ AC1: Confirm that the "For you" filter is selected automatically.
Test Case 2: Verify expected filter bar display
- Observe the suggestion filter bar after loading the URL.
- ✅❓❌⬜ AC2: Confirm that the filter bar displays at least three options, including the “More” button.
Test Case 3: Validate “More” filter dialog behavior
- Click on the “More” option in the filter bar.
- ✅❓❌⬜ AC3: Confirm that the filters dialog opens properly without console or UI errors.
QA Results - PROD
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T395242#10885640 |
| 2 | ✅ | T395242#10885640 |
| 3 | ✅ | T395242#10885640 |
