-
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-6942 Update page title in admin for spam ban deletion #5100
AO3-6942 Update page title in admin for spam ban deletion #5100
Conversation
2e98a70
to
2bc82d0
Compare
You might want to pick a shorter title for your pull request, because when the commits get squashed during merge, that becomes the new commit message |
features/search/filters.feature
Outdated
@@ -12,6 +12,7 @@ Feature: Filters | |||
And I post the work "A Hobbit's Meandering" with fandom "The Hobbit" | |||
And I post the work "Bilbo Does the Thing" with fandom "The Hobbit, Legend of Korra" | |||
And I post the work "Roonal Woozlib and the Ferrets of Nimh" with fandom "Harry Potter" | |||
And it is currently 1 second from now |
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.
There seems to be some flakyness around the works count and bookmarks count links getting populated with the correct number of created works before they're clicked in some tests. I'm not sure this totally fixed it, but worth flagging.
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.
Have you looked at https://github.com/otwcode/otwarchive/blob/master/features/step_definitions/search_steps.rb#L1C6-L1C37
all indexing jobs have been run ?
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.
I pulled this text fix out into a separate Jira issue and pull request: #5101
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.
Thank you for contributing! This just needs one tiny change.
Please remove the fix for the flaky test because I pulled it out into its own Jira issue and pull request to avoid expanding the scope of this PR. But thank you for getting started on that!
config/locales/views/en.yml
Outdated
@@ -148,6 +148,7 @@ en: | |||
caution_html: Are you sure you want to <strong><em>delete</em></strong> all the works and comments created by this user, along with their %{bookmarks} bookmarks, %{series} series, and %{collections} collections? This <strong>cannot be undone</strong>. | |||
confirm: Are you sure? Remember this will destroy ALL these objects! | |||
page_heading: Delete Spammer Creations | |||
page_title: "%{login} - Confirm Deletion of User Creations" |
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.
Please move this to config/locales/controllers/en.yml
instead.
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.
Is that correct? This change is for the text in the browser tab title to be updated, not a controller action message (to my understanding).
example of a different page per the ticket:
otwarchive/config/locales/views/en.yml
Line 159 in 451f0b8
page_title: "%{login} - User Creations" |
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.
Yes, because it's getting set in the controller, not in the view. A few of the locales for the page titles accidentally ended up in the wrong file, we have https://otwarchive.atlassian.net/browse/AO3-6924 to fix some of them.
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.
Ok sounds good! Thanks for the clarification, i will make that update 👍
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.
Thank you!
…r creations page to be dynamic
451f0b8
to
9b340db
Compare
Pull Request Checklist
as the first thing in your pull request title (e.g.
AO3-1234 Fix thing
)until they are reviewed and merged before creating new pull requests.
Issue
https://otwarchive.atlassian.net/browse/AO3-6942
Purpose
Updates the page title for
confirm_delete_user_creation
page in admin view to be more dynamic and consistent with other similar page titlesCredit
Laura (she/her)