-
Notifications
You must be signed in to change notification settings - Fork 357
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
Refactor flash message text for consistency across all actions (Add/Edit/Delete/Cancel) #2568
Refactor flash message text for consistency across all actions (Add/Edit/Delete/Cancel) #2568
Conversation
@GregP this method is used to display name/description of selected record when performing certain tasks. Also this fix will defeat purpose of having following lines https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/application_controller.rb#L2257-L2259 because with your change it will always return name of record as name is usually a required field for most of CIs |
@GregP i think the correct fix here is to make sure that methods call https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/application_controller.rb#L2255 method while performing any tasks so flash messages are consistent when add/editing or deleting objects. |
9f62792
to
e222770
Compare
Checked commit GregP@e222770 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
@h-kataria Ready for review. |
looks good |
Refactor flash message text for consistency across all actions (Add/Edit/Delete/Cancel) (cherry picked from commit 5aee298) https://bugzilla.redhat.com/show_bug.cgi?id=1513607
Gaprindashvili backport details:
|
Refactor flash message text for consistency across all actions (Add/Edit/Delete/Cancel) (cherry picked from commit 5aee298) https://bugzilla.redhat.com/show_bug.cgi?id=1515407
Fine backport details:
|
Refactor flash message ext construction to be consistent for all user actions. Previously code displayed Custom template name when adding or editing one and description when deleting. Code now calls same common to return consistent text, template description when available and name when description is not available.
https://bugzilla.redhat.com/show_bug.cgi?id=1486615
Screen shots prior to code fix, all showing hard coded template name:
Screen shots post code fix, showing common method returning template description for display: