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

Fixes #25057 - Sort hosts bulk actions #6095

Closed
wants to merge 1 commit into from

Conversation

sbernhard
Copy link
Contributor

No description provided.

@@ -177,7 +177,7 @@ def multiple_actions

def multiple_actions_select
select_action_button(_("Select Action"), {:id => 'submit_multiple'},
multiple_actions.map do |action|
multiple_actions.sort_by{|action| action[0]}.map do |action|

Choose a reason for hiding this comment

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

Layout/SpaceBeforeBlockBraces: Space missing to the left of {.

@theforeman-bot
Copy link
Member

Issues: #25057

@ares
Copy link
Member

ares commented Sep 27, 2018

thanks for the patch, note that there was already some work and discussion at which implements the same thing just slightly differently - #4497

@sbernhard
Copy link
Contributor Author

Thanks @ares
The discussion at #4497 sounds interesting (but olden than a year).
My 2 cents: Grouping would be really nice! But, having the actions sorted alphabetically is better than completely unsorted. Therefore, I would suggest to improve it for now and work on the grouping later.

@ares
Copy link
Member

ares commented Sep 27, 2018

Well, for current form of the patch, the same outcome applies I think. Without grouping, this might be even worse as actions that logically belongs together, will be misordered. If you think this is not an issue, I'd recommend suggesting that in the original PR. If majority is for alphabetical order, we can merge it.

@sbernhard sbernhard closed this Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants