-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Grouping label's expand button with grouping id #2012
Grouping label's expand button with grouping id #2012
Conversation
Signed-off-by: m-masataka <m.mizukoshi.wakuwaku@gmail.com>
ui/app/src/Views/AlertList/Views.elm
Outdated
groups | ||
(List.indexedMap Tuple.pair groups | ||
|> List.map | ||
(\( index, group ) -> |
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.
There is no need to first do indexedMap
to build tuples and then map over tuples. You can call List.indexedMap
with \index group ->
.
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.
Thanks!
A small improvement, everything else looks good! I think that after this change this should also perform better, because the key type of a Set is simpler. Thank you! |
Thanks a lot @m-masataka! You need to rebase your PR after #2013 is merged. @stuartnelson3 @mxinden once this gets merged, I suggest that we consider a new release of AlertManager as #1875 is quite annoying and has been reported in different occasions. I can sign up for preparing the new release. |
sounds great to me |
Signed-off-by: m-masataka <m.mizukoshi.wakuwaku@gmail.com>
Signed-off-by: m-masataka <m.mizukoshi.wakuwaku@gmail.com>
In alerts screen, Expand/Collapse button cooperated with grouping labels.
So when several groups have the same grouping labels, this button will expand all of them. Related to #1875 .
To fix this issue, I implemented expand button with grouping id. (this id is only used UI)