-
Notifications
You must be signed in to change notification settings - Fork 95
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
Fix ScanConfigs and Policies NVT oid->id #2733
Conversation
d3e3972
to
08f4321
Compare
08f4321
to
8e20fa6
Compare
Codecov Report
@@ Coverage Diff @@
## master #2733 +/- ##
==========================================
+ Coverage 62.80% 62.82% +0.01%
==========================================
Files 1116 1115 -1
Lines 28371 28393 +22
Branches 8034 8031 -3
==========================================
+ Hits 17819 17838 +19
- Misses 9563 9566 +3
Partials 989 989
Continue to review full report at Codecov.
|
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.
The whole preference handling in the models (scan configs and policies) looks a bit weird now. IMHO this should be refactored and maybe some parts can also be moved to hyperion already. For example the differentiation between scanner and nvt preferences should be done in the backend already and copying the original nvt should be necessary anymore.
const nvt = {...pref.nvt};
pref.nvt = nvt;
pref.nvt.id = preference.nvt.id;
makes no sense to me.
What:
oid
inScanConfigs
andPolicies
toid
due to latest changes in Hyperion.Why:
How:
Checklist: