-
Notifications
You must be signed in to change notification settings - Fork 543
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-6204 Allow certain admins to remove non-default orphan pseuds from orphaned works #5022
AO3-6204 Allow certain admins to remove non-default orphan pseuds from orphaned works #5022
Conversation
pseuds = Pseud.find(pseuds).select { |p| p.user_id == orphan_account.id } | ||
end | ||
|
||
orphan_pseud = orphan_account.default_pseud |
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.
You can inline this variable since it's only used once.
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.
It's used multiple times in the loop if multiple pseuds are removed. I want to avoid the DB lookup/cache hit in the loop.
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.
Nice!
Issue
https://otwarchive.atlassian.net/browse/AO3-6204
Purpose
Adds a button and a confirmation page to allow some admins to remove non-default orphan_account pseuds from orphaned works.
References
PR Limit: 8 out of 5
Using reviewer bonus:
#4378
#4885
Credit
Bilka