-
Notifications
You must be signed in to change notification settings - Fork 30
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
RHINENG-8141: improve evaluation performance #1461
Conversation
Referenced Jiras: |
…ng, fix and add tests
- put `parseStored` and `parseReported` code into `evaluateChanges` -- separate functions are not needed - remove pointer to extendedAdvisories because it's unnecessary - edit function doc comment after changes
- move slice-to-map logic into `getAdvisoryMetadataByNames` since all uses converted the returned slice into a map - rename the function to `getAdvisoryMetadataIDs` to reflect changes - propagate changes into functions that used `getAdvisoryMetadataByNames`
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1461 +/- ##
==========================================
+ Coverage 64.82% 64.97% +0.15%
==========================================
Files 114 114
Lines 7801 7804 +3
==========================================
+ Hits 5057 5071 +14
+ Misses 2217 2208 -9
+ Partials 527 525 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Refactored in a way that all data is loaded and evaluated first. Then, all updates (and just the updates) are done in a single transaction. Furthermore, advisories are now processed like package have been.
For code review see #1457.
Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist