When there is a nominated collection for the target language and the current filter is a country, try to include up to 50% of suggestions from the nominated collection that match the country and the rest from the articlecountry search.
When there is no nominated collection, nothing different from the current state.
Recommended approach is the use the search API combining articlecountry with pageid with the ID of the pages in the collection in the source wiki.
Derived Requirements
- When a nominated collection exists for the target language and the active filter is country, the system must include suggestions from the nominated collection in the recommendation results.
- When a nominated collection exists and a country filter is applied, up to 50% of the returned suggestions must come from the nominated collection that matches the selected country.
- The remaining suggestions must be sourced from the existing articlecountry search results.
- Suggestions from the nominated collection must be filtered to include only pages that match the selected country.
- When no nominated collection exists for the target language, recommendation behavior must remain unchanged.
- The recommendation API must support combining articlecountry search results with pageid constraints from the nominated collection.
- The combined result set must not contain duplicate pages and must preserve the expected total number of suggestions.
- Result ordering must follow existing relevance rules unless explicitly overridden.
Test Steps
Test Case 1: Country Filter with Existing Nominated Collection
Preconditions
- A nominated collection exists for the target language.
- The nominated collection contains pages associated with the selected country.
- Navigate to the recommendation interface.
- Apply a country filter that matches pages in the nominated collection.
- Trigger the recommendation request.
- Review the returned suggestion list.
- ✅❓❌⬜ AC1: Verify that the results include a mix of suggestions where up to 50% are sourced from the nominated collection matching the selected country and the remaining suggestions are sourced from the articlecountry search, with no duplicate entries.
Test Case 2: Country Filter with No Nominated Collection
Preconditions
- No nominated collection exists for the target language.
- Navigate to the recommendation interface.
- Apply a country filter.
- Trigger the recommendation request.
- Review the returned suggestion list.
- ✅❓❌⬜ AC2: Verify that recommendations behave exactly as in the current implementation, with all suggestions sourced solely from the articlecountry search and no nominated collection influence.
Test Case 3: API Combination Logic Validation
Preconditions
- A nominated collection exists with known page IDs.
- Network inspection or API logging is available.
- Apply a country filter and trigger the recommendation request.
- Inspect the outgoing API request.
- Inspect the API response payload.
- ✅❓❌⬜ AC3: Verify that the API request combines articlecountry search parameters with pageid constraints from the nominated collection and that the response includes only pages from the collection that match the selected country.
QA Results - TestWiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T409337#11501809 |
| 2 | ✅ | T409337#11501809 |
| 3 | ⬜ | T409337#11501809 |



