-
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
Decide whether to default to full and fast scan config (task dialog) #1671
Conversation
93f3985
to
9cd6662
Compare
Codecov Report
@@ Coverage Diff @@
## gsa-9.0 #1671 +/- ##
===========================================
- Coverage 47% 46.98% -0.02%
===========================================
Files 1047 1047
Lines 24072 24082 +10
Branches 6733 6712 -21
===========================================
Hits 11314 11314
- Misses 11612 11620 +8
- Partials 1146 1148 +2
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.
I tend to say the scan config and scanner state must be move one layer upwards into the taskcomponent but maybe I am wrong and it can be solved in the dialog too.
The state of the scanner type and scan config should be initialized via useEffect and afterwards the state should only be updated via change handlers. Maybe we should introduce one config_id variable for each purpose. E.g. currentOspdConfigId currentOpenvasConfigId or something like that. Or use an object currentConfigIds = {openvas: ..., osp: ..., other: ...}
I was thinking to use the task component's state to control the dialog content (scanner and scan config types), but I think I haven't been clear about that, sorry. |
251b976
to
5d484de
Compare
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.
Looks very good! Just one small change and could you update your PR to be against the gsa-9.0 branch? It should be included in GOS 6 already.
…ect into a function, and added some update logic.
93633d5
to
b62aed6
Compare
14b0042
to
6cc0bd2
Compare
6cc0bd2
to
943dc70
Compare
Summary of changes:
Expected behavior:
Checklist: