Skip to content
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

Merged
merged 1 commit into from
Oct 2, 2018

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Oct 2, 2018

@lpichler
Copy link
Contributor Author

lpichler commented Oct 2, 2018

@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
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done thanks 👍

@lpichler lpichler force-pushed the fix_ordering_in_custom_buttons branch from a3976a9 to ef68e4a Compare October 2, 2018 16:18
@miq-bot
Copy link
Member

miq-bot commented Oct 2, 2018

Checked commit lpichler@ef68e4a with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🍰

@gtanzillo gtanzillo added this to the Sprint 96 Ending Oct 8, 2018 milestone Oct 2, 2018
@gtanzillo gtanzillo merged commit 6a9fc2a into ManageIQ:master Oct 2, 2018
simaishi pushed a commit that referenced this pull request Oct 3, 2018
@simaishi
Copy link
Contributor

simaishi commented Oct 3, 2018

Hammer backport details:

$ git log -1
commit dfcff5af0f1cc32accfb1050b398082866ff4019
Author: Gregg Tanzillo <[email protected]>
Date:   Tue Oct 2 12:38:01 2018 -0400

    Merge pull request #18049 from lpichler/fix_ordering_in_custom_buttons
    
    Fix ordering in list of custom buttons
    
    (cherry picked from commit 6a9fc2a011a1f239daef26466dbb3e1a6b8e72ff)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1628737

@lpichler lpichler deleted the fix_ordering_in_custom_buttons branch October 3, 2018 14:00
@h-kataria
Copy link
Contributor

@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

@lpichler
Copy link
Contributor Author

lpichler commented Oct 4, 2018

@h-kataria I will create fix, thanks!

simaishi pushed a commit that referenced this pull request Nov 5, 2018
@simaishi
Copy link
Contributor

simaishi commented Nov 5, 2018

Gaprindashvili backport details:

$ git log -1
commit 08edb9952d356c7544910214ac7504e21f9ed74a
Author: Gregg Tanzillo <[email protected]>
Date:   Tue Oct 2 12:38:01 2018 -0400

    Merge pull request #18049 from lpichler/fix_ordering_in_custom_buttons
    
    Fix ordering in list of custom buttons
    
    (cherry picked from commit 6a9fc2a011a1f239daef26466dbb3e1a6b8e72ff)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1635759

nizaminabeel pushed a commit to nizaminabeel/manageiq that referenced this pull request Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants