-
Notifications
You must be signed in to change notification settings - Fork 8
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
Clean up after long lists #1631
Conversation
4c77762
to
2fdd7f8
Compare
2fdd7f8
to
ea86376
Compare
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've been through each commit and this all makes sense, + the commit messages are clear 👍
ea86376
to
00c9b07
Compare
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.
thanks for taking the time to rename things and tidy up and also chop things into sensible commits 🏅
This flag is no longer used in the code, so we can remove it from the groups database. We can also remove the rake tasks that turn the flag on and off.
We've built new routes and controllers for configuring selection questions, so the old ones are no longer used. This commit removes them.
Removes the selections_settings view, which is no longer used. This also makes the 'selections_settings' translation block redundant, so this commit also: - removes most of the translations in this block altogether - moves the translations which are still used elsewhere into more appropriate blocks
We've removed the controller and the view for the old 'selections settings' controller, so we can now safely get rid of the input object.
We put the new selection files in 'long_lists_selection' folders, to distinguish them from the old selection logic. Since the old selection files have been removed, we no longer need this distinction, so we can rename the `long_lists_selection` to just `selection`. This commit does the rename for the selection/type input object.
We put the new selection files in 'long_lists_selection' folders, to distinguish them from the old selection logic. Since the old selection files have been removed, we no longer need this distinction, so we can rename the `long_lists_selection` to just `selection`. This commit does the rename for the selection/options input object.
We put the new selection files in 'long_lists_selection' folders, to distinguish them from the old selection logic. Since the old selection files have been removed, we no longer need this distinction, so we can rename the `long_lists_selection` to just `selection`. This commit does the rename for the selection/bulk_options input object.
We put the new selection files in 'long_lists_selection' folders, to distinguish them from the old selection logic. Since the old selection files have been removed, we no longer need this distinction, so we can rename the `long_lists_selection` to just `selection`. This commit does the rename for the selection/type view.
We put the new selection files in 'long_lists_selection' folders, to distinguish them from the old selection logic. Since the old selection files have been removed, we no longer need this distinction, so we can rename the `long_lists_selection` to just `selection`. This commit does the rename for the selection/options view.
We put the new selection files in 'long_lists_selection' folders, to distinguish them from the old selection logic. Since the old selection files have been removed, we no longer need this distinction, so we can rename the `long_lists_selection` to just `selection`. This commit does the rename for the selection/bulk_options view.
We put the new selection files in 'long_lists_selection' folders, to distinguish them from the old selection logic. Since the old selection files have been removed, we no longer need this distinction, so we can rename the `long_lists_selection` to just `selection`. This commit does the rename for all three selection controllers.
We used name scheme 'long_lists_selection_#{controller}_#{action}_path' for the new selection routes, to distinguish them from the old selection routes. Since the old selection routes have been removed, we no longer need this distinction, so we can use 'selection_#{controller}_#{action}_path' as our name scheme instead. This commit does the rename for the selection/type controller.
We used name scheme 'long_lists_selection_#{controller}_#{action}_path' for the new selection routes, to distinguish them from the old selection routes. Since the old selection routes have been removed, we no longer need this distinction, so we can use 'selection_#{controller}_#{action}_path' as our name scheme instead. This commit does the rename for the selection/options controller.
We used name scheme 'long_lists_selection_#{controller}_#{action}_path' for the new selection routes, to distinguish them from the old selection routes. Since the old selection routes have been removed, we no longer need this distinction, so we can use 'selection_#{controller}_#{action}_path' as our name scheme instead. This commit does the rename for the selection/bulk_options controller.
This test file uses variables to store the paths it's looking for. We originally named these with `long_lists` to avoid a name collision with the old selection routes. Those old routes no longer exist, so we can rename the variables to make them simpler and more consistent with the route names.
The old selection logic used the phrase 'selections settings' and variations on that. That logic no longer exists, but the wording still existed in the names of some tests (likely because they were copied or adapted from old tests). This commit changes this to 'selection options' which is the language the newer logic uses.
The `with_selections_settings` trait was using the plural `selections`. This was consistent with the old selection logic, but inconsistent with both the other settings traits (e.g. `with_date_settings`) and the new selection logic (which uses the singular `selection`). This commit renames all instances of `with_selections_settings` to the singular `with_selection_settings`.
00c9b07
to
4d347e1
Compare
Quality Gate passedIssues Measures |
What problem does this pull request solve?
Trello card: https://trello.com/c/BFWKD1ZG/2541-clean-up-after-long-lists-work
Includes:
long_lists_enabled
database column and the task for setting it.long list selection
(since the distinction doesn't make sense now that the old selection files have been removed). We can just sayselection
insteadlong_list_selection
with_selections_settings
trait to the singularwith_selection_settings
for consistencyNeeds doing elsewhere:
Don't merge this until:
Note on how big this PR is
This PR is big in terms of the number of files touched and the number of commits. The changes themselves are fairly straightforward (largely deletions and renames), but there are a lot of them.
It would be easiest to go through it commit-by-commit.
If you reckon it's too unwieldy, let me know and I'll try to break it into a few PRs.
Things to consider when reviewing