-
-
Notifications
You must be signed in to change notification settings - Fork 447
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
Product drives name filter - to list names in alphabetical order #4150
Product drives name filter - to list names in alphabetical order #4150
Conversation
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 - had one small request.
@@ -10,6 +10,8 @@ def index | |||
.class_filter(filter_params) | |||
.within_date_range(@selected_date_range) | |||
.order(start_date: :desc) | |||
# to be used in the name filter to sort product drives in alpha order | |||
@product_drives_name_filter = @product_drives.sort_by { |pd| pd.name.downcase } |
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.
Can we rename this to @product_drives_alphabetical
? It's a bit more obvious what's inside it.
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.
updated.
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! Will wait till after release to merge.
@kannans5: Your PR |
Resolves #4119
Description
Name filter on Product drives list page should be in alphabetical order, this will be helpful for banks having a long list.
Type of change
How Has This Been Tested?
Browser tests have been modified to test this change.
Screenshots
Before
After