-
Notifications
You must be signed in to change notification settings - Fork 584
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
(feat.) add notification apis phase I #2184
base: main
Are you sure you want to change the base?
Conversation
var err error | ||
for _, scanType := range scanTypes { | ||
switch scanType { | ||
case "vulnerability": |
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 think this can be simplified by having a map like this https://github.com/deepfence/ThreatMapper/blob/main/deepfence_utils/utils/constants.go#L137
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.
@ibreakthecloud Can you also check the lint errors?
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.
only possible changes where using constants, we cannot simplify this since each scan result has to go in different fields of struct.
I did the changes, please check again
c221b01
to
a40c687
Compare
Changes proposed in this pull request:
Requires UI changes