Skip to content

Commit

Permalink
new predefined category 'no support group'
Browse files Browse the repository at this point in the history
  • Loading branch information
edda committed Nov 7, 2022
1 parent fd39db0 commit ab30298
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Alerts = React.memo(
Object.keys(category.match_re).reduce(
(matchesOtherLabels, label) => {
const regex = new RegExp(category.match_re[label])
return matchesOtherLabels && alert.labels[label] && regex.test(alert.labels[label])
return matchesOtherLabels && regex.test(alert.labels[label])
},
true
)
Expand Down
7 changes: 7 additions & 0 deletions src/config/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@
"support_group": "^(?!compute|compute-storage-api|containers|email|identity|network-api|observability|undefined|null).+"
}
},
{
"area": "support groups",
"name": "No Support Group",
"match_re": {
"support_group": "^(?:undefined|null)"
}
},
{
"area": "Legacy Tiers",
"name": "API",
Expand Down

0 comments on commit ab30298

Please sign in to comment.