From 1d832b9a0b422c78ddbec67d81f6da96d1375594 Mon Sep 17 00:00:00 2001 From: Scott J Dickerson Date: Mon, 29 Jul 2024 18:16:08 -0400 Subject: [PATCH] :bug: Add application risk filter of "Unassessed" Resolves: https://issues.redhat.com/browse/MTA-2816 Application risk options are one of: - High (red) - Medium (yellow) - Low (green) - Unknown (unknown) - Unassessed (unassessed) Added the __Unassessed__ option to the risk filter list on the application table to have a complete set of risk filters. Signed-off-by: Scott J Dickerson --- .../applications-table/applications-table.tsx | 1 + hack/import-questionnaire/assign-risk.yaml | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 hack/import-questionnaire/assign-risk.yaml diff --git a/client/src/app/pages/applications/applications-table/applications-table.tsx b/client/src/app/pages/applications/applications-table/applications-table.tsx index 87c50834bd..b3ce6fb43b 100644 --- a/client/src/app/pages/applications/applications-table/applications-table.tsx +++ b/client/src/app/pages/applications/applications-table/applications-table.tsx @@ -499,6 +499,7 @@ export const ApplicationsTable: React.FC = () => { { value: "yellow", label: "Medium" }, { value: "red", label: "High" }, { value: "unknown", label: "Unknown" }, + { value: "unassessed", label: "Unassessed" }, ], getItemValue: (item) => item.risk ?? "", }, diff --git a/hack/import-questionnaire/assign-risk.yaml b/hack/import-questionnaire/assign-risk.yaml new file mode 100644 index 0000000000..96d593e7f6 --- /dev/null +++ b/hack/import-questionnaire/assign-risk.yaml @@ -0,0 +1,34 @@ +name: Assign Risk +description: | + Questionnaire that allows the use to select a risk level directly + +sections: + - order: 1 + name: Assign The RISK + questions: + - order: 1 + text: What should be the Risk level of the application? + answers: + - order: 1 + text: Unknown + risk: unknown + - order: 2 + text: Green / Low + risk: green + - order: 3 + text: Yellow / Medium + risk: yellow + - order: 4 + text: Red / High + risk: red + +thresholds: + red: 1 + yellow: 30 + unknown: 15 + +riskMessages: + red: Application requires deep changes in architecture or lifecycle + yellow: Application is Cloud friendly but requires some minor changes + green: Application is Cloud Native + unknown: More information about the application is required