-
Notifications
You must be signed in to change notification settings - Fork 99
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
Refactor Audit Component into Function #2695
Conversation
|
||
this.handleInteraction = this.handleInteraction.bind(this); | ||
let defaultScannerId = OPENVAS_DEFAULT_SCANNER_ID; |
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.
Gives defaultScannerId a default value.
const reportExportFileName = userDefaultsSelector.getValueByName( | ||
'reportexportfilename', | ||
); | ||
let reportFormats = []; |
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.
Give reportFormats a default value.
Codecov Report
@@ Coverage Diff @@
## master #2695 +/- ##
==========================================
+ Coverage 60.66% 60.72% +0.05%
==========================================
Files 1113 1113
Lines 28066 28063 -3
Branches 8024 7991 -33
==========================================
+ Hits 17025 17040 +15
+ Misses 9993 9975 -18
Partials 1048 1048
Continue to review full report at Codecov.
|
What:
Refactors component into function. I have decided to not use graphQL queries in lieu of loaders and selectors, at this stage because adding passive queries would necessitate changing listpage and detailspage tests to add mocks and I would like to keep them the same for now.
Why:
How:
Manually tested. Everything still works as normal.
Checklist: