Intra-RC regression: User dashboard: show most recent contributions, not earliest #13903
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the same as #13901, just for the 5.12 RC.
Overview
A recent change in how contributions are listed in the User Dashboard has caused a regression where it displays the 12 contributions with the lowest IDs (generally the earliest) rather than the most recent ones.
Before
A test user makes 15 contributions, one on each day in March. The first 12 appear.
After
Same scenario: 15 contributions, one on each day in March. The most recent 12 appear.
Technical Details
The listing was switched to use the API in #13584. There isn't a good way in APIv3 to list the most recent things starting with the oldest. In this case, I had to sort by most recent and then reverse the array.
Comments
I might wonder whether the header should say "Your Most Recent Contribution(s)", but that's a bit outside scope, and the user dash appears to have always just been the dozen most recent contributions.