-
Notifications
You must be signed in to change notification settings - Fork 897
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
Fix ordering in list of custom buttons #18049
Fix ordering in list of custom buttons #18049
Conversation
@miq-bot add_label hammer/yes, gaprindashvili/yes |
|
||
before do | ||
[custom_button_3, custom_button_4].each { |x| custom_button_set.add_member(x) } | ||
end | ||
|
||
it 'returns filtered array of CustomButtonSet and CustomButtons' do |
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.
Maybe add "ordered by name" to the test description so that we remember in the future?
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.
done thanks 👍
a3976a9
to
ef68e4a
Compare
Checked commit lpichler@ef68e4a with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Fix ordering in list of custom buttons (cherry picked from commit 6a9fc2a) https://bugzilla.redhat.com/show_bug.cgi?id=1628737
Hammer backport details:
|
@lpichler this fix does not seems to be returning list of Custom Buttons in button order they were saved in, this is returning them sorted by name. Order of custom buttons should be based upon what is stored in :button_order key in set_data column for CustomButonSet record |
@h-kataria I will create fix, thanks! |
Fix ordering in list of custom buttons (cherry picked from commit 6a9fc2a) https://bugzilla.redhat.com/show_bug.cgi?id=1635759
Gaprindashvili backport details:
|
…m_buttons Fix ordering in list of custom buttons (cherry picked from commit 6a9fc2a) https://bugzilla.redhat.com/show_bug.cgi?id=1635759
Links
@miq-bot assign @gtanzillo
thanks @h-kataria !