Skip to content
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

🐛 Add application risk filter of "Unassessed" #2032

Merged
merged 4 commits into from
Aug 1, 2024

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Jul 29, 2024

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.

Note: To help test risk levels, the questionnaire hack/import-questionnaire/assign-risk.yaml has been added. The single question has a 1 to 1 mapping between answer and risk level. As long as that questionnaire is the only one active on the system, it works well to quickly assign risks to applications.

@sjd78 sjd78 added this to the v0.5.1 milestone Jul 29, 2024
Copy link

codecov bot commented Jul 29, 2024

Codecov Report

Attention: Patch coverage is 86.95652% with 3 lines in your changes missing coverage. Please review.

Project coverage is 42.33%. Comparing base (b654645) to head (f37aff8).
Report is 204 commits behind head on main.

Files Patch % Lines
client/src/app/utils/type-utils.ts 85.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2032      +/-   ##
==========================================
+ Coverage   39.20%   42.33%   +3.13%     
==========================================
  Files         146      172      +26     
  Lines        4857     5525     +668     
  Branches     1164     1381     +217     
==========================================
+ Hits         1904     2339     +435     
- Misses       2939     3071     +132     
- Partials       14      115     +101     
Flag Coverage Δ
client 42.33% <86.95%> (+3.13%) ⬆️
server ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Note: To help test risk levels, the questionnaire
`hack/import-questionnaire/assign-risk.yaml` has
been added.  The single question has a 1 to 1
mapping between answer and risk level.  As long as
that questionnaire is the only one active on the
system, it works well to quickly assign risks to
applications.

Signed-off-by: Scott J Dickerson <[email protected]>
  - Add "unassessed" as an office `Risk` type option

  - Updated `RiskLabel` to handle undefined and arbitrary
    strings as risk inputs.  Consumers of the component
    don't need to worry about the prop quite as much anymore.

  - Where a string risk was getting looked at, force to
    lower case first so all the constants match up.

Signed-off-by: Scott J Dickerson <[email protected]>
Copy link
Collaborator

@rszwajko rszwajko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for sharing the test questionnaire!

@sjd78 sjd78 merged commit a54feaa into konveyor:main Aug 1, 2024
12 checks passed
@sjd78 sjd78 deleted the risk_unassessed branch August 1, 2024 16:16
sjd78 added a commit to sjd78/tackle2-ui that referenced this pull request Aug 1, 2024
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.

Note: To help test risk levels, the questionnaire
`hack/import-questionnaire/assign-risk.yaml` has been added. The single
question has a 1 to 1 mapping between answer and risk level. As long as
that questionnaire is the only one active on the system, it works well
to quickly assign risks to applications.

---------

Signed-off-by: Scott J Dickerson <[email protected]>
sjd78 added a commit that referenced this pull request Aug 1, 2024
…2032) (#2035)

Backport-of: #2032
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.

Note: To help test risk levels, the questionnaire
`hack/import-questionnaire/assign-risk.yaml` has been added. The single
question has a 1 to 1 mapping between answer and risk level. As long as
that questionnaire is the only one active on the system, it works well
to quickly assign risks to applications.

Signed-off-by: Scott J Dickerson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants