-
Notifications
You must be signed in to change notification settings - Fork 1.4k
PM-20578 Added api to fetch and save data #15334
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
PM-20578 Added api to fetch and save data #15334
Conversation
New Issues (48)Checkmarx found the following issues in this Pull Request
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## dirt/feature/risk-insights-saving-reports #15334 +/- ##
=============================================================================
+ Coverage 36.83% 36.88% +0.04%
=============================================================================
Files 3230 3231 +1
Lines 93448 93531 +83
Branches 14064 14079 +15
=============================================================================
+ Hits 34424 34498 +74
- Misses 57598 57604 +6
- Partials 1426 1429 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
⛏️ Just a few test case additions
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.
⛏️ Can you add test cases for getRiskInsightsReport
and the error cases?
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.
done. Added test cases for the error cases as well. Thanks for catching this.
throw error; // Re-throw other errors | ||
}); | ||
|
||
if (dbResponse instanceof Error) { |
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.
⛏️ Every other test case covered. Thank you. I know this one is a real pick but could we get a test case for this one like the other errors?
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.
thanks for catching this Tom. The line of code would not execute. That's because the catch
in the earlier block would handle all errors and therefore, dbResponse
is never an instance of Error
. I removed that line of code.
|
e591773
into
dirt/feature/risk-insights-saving-reports
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-20578
📔 Objective
Create an api service that fetches and saves data
📸 Screenshots
none at this time
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes