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 to assessment drawer #1488

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

ibolton336
Copy link
Member

@ibolton336 ibolton336 force-pushed the update-assessment-drawer branch from 5bfb523 to 32d426a Compare October 24, 2023 20:49
@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ded98a9) 40.31% compared to head (32d426a) 40.31%.
Report is 1 commits behind head on main.

❗ Current head 32d426a differs from pull request most recent head 6d77080. Consider uploading reports for the commit 6d77080 to get more accurate results

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           
Flag Coverage Δ
client 40.31% <ø> (ø)
server ∅ <ø> (∅)

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

Files Coverage Δ
client/src/app/api/models.ts 100.00% <ø> (ø)

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

@ibolton336
Copy link
Member Author

@@ -36,5 +36,5 @@ export const ApplicationRisk: React.FC<IApplicationRiskProps> = ({
);
}

return <RiskLabel risk={assessments[0].risk || "unknown"} />;
return <RiskLabel risk={application.risk || "unknown"} />;
Copy link
Member

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.

Copy link
Collaborator

@mturley mturley left a 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]>
Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants