Closed Omri-Levy closed 3 weeks ago
Latest commit: f5cbec78f53131b79ae35399870db72ac23039be
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The getSeverityFromRiskScore
function has been enhanced to return a value of type TSeverity
or undefined
, accommodating scenarios where no severity can be determined. Additionally, the function now treats riskScore
values of 85 or higher as Severity.CRITICAL
, improving the granularity of risk evaluations.
File Path | Summary |
---|---|
apps/backoffice-v2/src/.../get-severity-from-risk-score.ts |
Updated function return type to TSeverity \| undefined and added a condition for Severity.CRITICAL for riskScore >= 85 |
In the code where risks reside,
A change has come, both deep and wide.
From undefined to now precise,
Critical scores—an added spice.
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
CRITICAL
severity for risk scores of 85 or higher.