New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AO3-5649 Sort authors_to_sort_on to match byline #3555
Conversation
Capitalization interacts with this in interesting ways. Pseuds have a custom comparison function that downcases: otwarchive/app/models/pseud.rb Lines 133 to 135 in d7c8504
So the byline helper, which sorts the pseuds before retrieving each pseud's byline (and therefore uses this comparison function), should place "alice" before "Zeke," because when they're downcased, I tried to run a test to verify, and I think this would be the order for these ten bylines:
|
Thanks! I moved the sort ahead of getting the names. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I redid the 10 bylines test with the new code, and it looks nicely ordered.
Marked deferred because this is going in with the Warning class rename because they both need reindexing. |
Issue
https://otwarchive.atlassian.net/browse/AO3-5649
Purpose
When a work has multiple co-creators,
authors_to_sort_on
should sort them similar to how the byline does it:otwarchive/app/helpers/application_helper.rb
Lines 117 to 124 in d7c8504
Testing Instructions
How can the Archive's QA team verify that this is working as you intended? (If you have access, please copy this into the JIRA ticket for them!)
References
See issue. Works need to be reindexed.