Skip to content
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 reputation routes #99

Merged
merged 3 commits into from
Aug 15, 2022
Merged

Add reputation routes #99

merged 3 commits into from
Aug 15, 2022

Conversation

amshamah419
Copy link
Collaborator

Status

Ready

Related Issues

fixes: internal

Description

Adds ability to upload reputations

Must have

  • Unit Test or Example Code
  • Changelog entry

@amshamah419 amshamah419 self-assigned this Aug 10, 2022
Comment on lines +4571 to +4572
if ('file' not in params or
params['file'] is None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ('file' not in params or
params['file'] is None):
if params.get('file') is None:

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally we don't modify the files manually since the project is supposed to be generated purely by a new server version.

form_params = []
local_var_files = {}
if 'file' in params:
local_var_files['file'] = params['file'] # noqa: E501
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we raise ValueError if it is not there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in the future I will see if we can bump the version of the tool we are using, but that will be a relatively big effort since everything that uses demisto-py will need to be validated.

Ideally a version bump will lead to better syntax here.

@amshamah419 amshamah419 merged commit 51a40e5 into master Aug 15, 2022
@amshamah419 amshamah419 deleted the add-reputations branch August 15, 2022 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants