Now that we're using topics to serve tasks in the suggested edits module, and allowing users to select multiple topics and multiple task-types, we are showing articles for every time an article is a match for a topic. In other words, an article may be shown twice if it is both a match for the "sports" and "history" topics (and the user has both those topics selected). This means that the user can feel like they are getting duplicates in the feed, especially since there is no visual difference between articles fitting displayed multiple times for multiple topics.
This should not have been happening for articles that have multiple maintenance templates. That's because in T232423: Newcomer tasks: suggested edits module, we wrote these specifications:
- The following list is the mapping of task types to difficulty levels.
- Links = Easy
- Copy edit = Easy
- Update = Medium
- References = Medium
- Expand = Hard
- If an article has multiple maintenance categories/templates, it should only be counted once in the list showed to the user. The list from the bullet above should also be used to show the order of preference of how the article is counted. For instance:
- If an article has both the "Links" and "Copy edit" templates, and the user has selected the "Links" and "Copy edit" checkboxes, the user should see the article in the list once, as a "Links" article. But if they have only selected the "Copy edit" checkboxes, the user should see the article in the list once, as a "Copy edit" article.
- If an article has both the "Copy edit" and "Update" templates, and the user has selected the "Copy edit" and "Update" checkboxes, the user should see the article in the list once, as a "Copy edit" article. But if they have only selected the "Links" and "Update" checkboxes, the user should see the article in the list once, as an "Update" article.
The ideal business rule here would be to show each article only once, no matter how many topics it fits.