-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
[ADD] Add the ability to batch upload IOC by providing a CSV file #26
Conversation
Nice ! |
ioc = add_ioc_schema.load(row) | ||
|
||
if ioc.ioc_type not in choices_ioc_types: | ||
return response_error("Not a valid IOC type") |
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.
To change to log.error to prevent break of the loop
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.
Set a list with the failed IOCs and return to UI for awarness
link_existed = add_ioc_link(ioc.ioc_id, caseid) | ||
|
||
if link_existed: | ||
return response_error("IOC already exists and linked to this case") |
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.
This PR :
Please note that :