-
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
Explicit Compliance #1495
Explicit Compliance #1495
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1495 +/- ##
==========================================
- Coverage 37.21% 36.33% -0.89%
==========================================
Files 1002 1030 +28
Lines 22433 23734 +1301
Branches 6180 6554 +374
==========================================
+ Hits 8348 8623 +275
- Misses 12766 13732 +966
- Partials 1319 1379 +60
Continue to review full report at Codecov.
|
7f7ccf6
to
620e657
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.
I haven't reviewed all code yet. Could you double check only adding audit and policy code in models and commands only if they are used not just copying task and scan config one to one. Removed code is good code 😁
aee582a
to
dc99c54
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.
The PR looks good besides copy and paste mistakes.
Two major things must be done to get this PR into shape:
- Always use camel case in GSA. For new and changed code we should only use camelCase for variable names. The command classes need to convert the camelCase to underscore names for gsad.
- Avoid duplicate code. Just copy code where it needs to be copied. Otherwise try to refactor old code to be more flexible e.g. by allowing to change titles.
@@ -57,7 +57,10 @@ const withEntitiesContainer = ( | |||
const mapStateToProps = (state, {gmp}) => { | |||
const eSelector = entitiesSelector(state); | |||
const pSelector = getPage(state); | |||
const filter = pSelector.getFilter(gmpname); | |||
let filter = pSelector.getFilter(gmpname); |
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.
Would have been nice to create a distinct PR for such a feature next time.
comment, | ||
hostsOrdering, | ||
id, | ||
in_assets, |
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.
All new variables should be camelCase
in_assets, | |
inAssets, |
} | ||
|
||
EditDialogComponent.propTypes = { | ||
family_name: PropTypes.string, |
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.
family_name: PropTypes.string, | |
familyName: PropTypes.string, |
const data = { | ||
policy, | ||
policyName, | ||
family_name, |
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.
family_name, | |
familyName, |
const { | ||
policy, | ||
policyName, | ||
family_name, |
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.
family_name, | |
familyName, |
return [...nvts].sort(compare); | ||
}; | ||
|
||
class EditDialogComponent extends React.Component { |
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.
is the code in this file different from scan configs?
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 a lot
0a98c8e
to
4787a67
Compare
Checklist: