-
Notifications
You must be signed in to change notification settings - Fork 43
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 to assessment drawer #1488
🐛 Add application risk to assessment drawer #1488
Conversation
Signed-off-by: ibolton336 <[email protected]>
5bfb523
to
32d426a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1488 +/- ##
=======================================
Coverage 40.31% 40.31%
=======================================
Files 143 143
Lines 4524 4524
Branches 1108 1108
=======================================
Hits 1824 1824
Misses 2603 2603
Partials 97 97
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
@@ -36,5 +36,5 @@ export const ApplicationRisk: React.FC<IApplicationRiskProps> = ({ | |||
); | |||
} | |||
|
|||
return <RiskLabel risk={assessments[0].risk || "unknown"} />; | |||
return <RiskLabel risk={application.risk || "unknown"} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With risk
arriving on the application from hub, and only being shown from there, is any of the assessment fetching still needed? Seems like the ApplicationRisk
component may not be needed any longer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to Scott's comment, otherwise LGTM
Signed-off-by: ibolton336 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Ian Bolton <[email protected]>
https://issues.redhat.com/browse/MTA-1504