Since we're only showing 2 badges, if a user has more (or if a user want to choose none), we should give them some way to choose.
Description
Revisions and Commits
Related Objects
- Mentioned In
- D17503: Add Badges to UserCache
D17499: Allow searching for Badge Awards by Badge status
rP1460f2b85ca8: Add more icon choices to Badges
T6526: Implement "Badges" or "Medals", for annotating special users
T10670: When a user has been awarded badges but all their badges are archived, their profile shows an empty panel - Mentioned Here
- D17499: Allow searching for Badge Awards by Badge status
Event Timeline
This got a mention in D17499, but when rendering a timeline we currently need two awards for each user who is going to get a full-sized profile image rendered.
This query is hard to build in SQL (or, at least, I don't have a good strategy to build it -- piles and piles of UNION ALL?) so the query we currently use is not efficient and overfetches data. This could become slow if some users have been awarded a very large number of badges.
When the mechanism discussed in this task (picking badges for timeline display) gets built, it should also serve as a cache for the timeline query so we can get two badges for each user efficiently, or we should find some alternate way to cache the display awards for each user to improve the performance of this query at scale.