Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove display of alerts in /alerts #1371
Comments
grobie
added
the
feature-request
label
Feb 4, 2016
This comment has been minimized.
This comment has been minimized.
|
...or alternatively, group them by rule file. This could be better because thematically related alerts that are not necessarily alphabetically adjacent will stay grouped together. |
grobie
changed the title
Sort /alerts alphabetically
Improve display of alerts in /alerts
Feb 4, 2016
This comment has been minimized.
This comment has been minimized.
|
By rule group would make the most sense, once we have those. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil Since rule groups cannot span files, it could even be nested. File -> Group. |
fabxc
added
kind/enhancement
and removed
feature request
labels
Apr 28, 2016
beorn7
added
the
component/ui
label
Nov 2, 2016
gouthamve
added
low hanging fruit
priority/P3
help wanted
labels
Jan 29, 2019
This comment has been minimized.
This comment has been minimized.
pbhudiaBAE
commented
Feb 26, 2019
|
I can have a look into this |
This comment has been minimized.
This comment has been minimized.
pbhudiaBAE
commented
Apr 5, 2019
|
I know this feature/issue has been mentioned a few times #3579 Here's what I've managed to do so far. Here's a link to my branch Any suggestions/ help would be really appreciated. |
This comment has been minimized.
This comment has been minimized.
|
@pbhudiaBAE Looks like a great start! For the group sorting, you see how we use a |
This comment has been minimized.
This comment has been minimized.
pbhudiaBAE
commented
Apr 10, 2019
•
|
@juliusv Thanks. Having trouble sorting the groups. I tried to implement a similar method as to how alerts are grouped but I get the following error: web/web.go:501:33: cannot use alerts (type *rules.AlertingGroups) as type []*rules.AlertingGroups in field value I'm fairly new to Go and pointers aren't my strongest suit. Any suggestions/ help would be great :) |
This comment has been minimized.
This comment has been minimized.
|
@pbhudiaBAE No problem, could you file a draft pull request (https://github.blog/2019-02-14-introducing-draft-pull-requests/)? That way it'll be easier to comment and all... |



grobie commentedFeb 4, 2016
The alerts on /alerts are currently ordered by their order in the rule files. As rule file names are not visible in that table, the order appears to be random. One way would be to sort all alerts alphabetically.