-
Notifications
You must be signed in to change notification settings - Fork 356
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
Fixed alphabetical order in Labels table #1053
Fixed alphabetical order in Labels table #1053
Conversation
1a9204d
to
1ee1590
Compare
This looks suspiciously similar to what Sounds like we should parametrize |
Perhaps more to the point, @nimrodshn can you do this so that all the label textual summaries use the same approach? (And sort by name.) |
1ee1590
to
4abd73b
Compare
@himdel fixed - PTAL. |
Sorry, a misunderstanding .. I didn't mean "make (Not saying Selector and Node Selector should not be sorted, these are container-specific so ..no problem with that.) |
4abd73b
to
b8589f8
Compare
@himdel looking around there is only one other |
@nimrodshn There's also Docker Labels in app/helpers/container_image_helper/textual_summary.rb.. but my point was not "make them all sorted", it was "make all of them sorted the same way, using the same methods". Right now, the old one is sorted because Either is fine, both are not :). (And I get that the |
@himdel now it's clear to me! sorry for the missunderstanding... |
b8589f8
to
ddbe861
Compare
@himdel Now they are all using |
ddbe861
to
d8832c8
Compare
@nimrodshn Looks great, thanks! Just 2 more things...
|
d8832c8
to
84a561d
Compare
@himdel PTAL. |
84a561d
to
f3f4c15
Compare
@@ -1,6 +1,6 @@ | |||
module ContainerSummaryHelper | |||
include TextualMixins::TextualName | |||
|
|||
include TextualSummaryHelper |
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.
You can safely remove this (and the one in vm_helper
), TextualSummaryHelper
is included from ApplicationHelper
and thus always available.
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.
@himdel Done. 👍
f3f4c15
to
00a9686
Compare
refactored Refactoring make labels sorted changed methods for consistency changed method for vm_helper labels cleaning up dead code and moving some methods refactoring refactoring refactoring
00a9686
to
30ffc34
Compare
@himdel PTAL [ again :) ] |
Checked commit nimrodshn@30ffc34 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Thanks @nimrodshn , merged :) |
@himdel hooray!! :) |
Fixed alphabetical order in Labels table (cherry picked from commit bc1d201) https://bugzilla.redhat.com/show_bug.cgi?id=1460023
Fine backport details:
|
Fixed the alphabetical order in the Labels table to suit with openshift.
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1439782
cc: @himdel @zakiva
@simon3z
Before:
After: