From ab302982b88e7aa9cd65de52b1b30743bd522adb Mon Sep 17 00:00:00 2001 From: D038721 Date: Mon, 7 Nov 2022 16:34:17 +0100 Subject: [PATCH] new predefined category 'no support group' --- src/components/Alerts.js | 2 +- src/config/settings.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Alerts.js b/src/components/Alerts.js index d788344..b63f328 100644 --- a/src/components/Alerts.js +++ b/src/components/Alerts.js @@ -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 ) diff --git a/src/config/settings.json b/src/config/settings.json index 76a5267..4883f63 100644 --- a/src/config/settings.json +++ b/src/config/settings.json @@ -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",