-
Notifications
You must be signed in to change notification settings - Fork 8
TKT-9214: Add Code Reuse by Block #160
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
Conversation
davidt99
left a comment
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.
Missing version bump and changes update
intezer_sdk/code_reuse.py
Outdated
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.
There is a File object, put the logic there
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 FileAnalysis(Analysis) class doesn't look like the right place to put this logic because the behavior of the endpoint is different. This endpoint directly takes a sha256 and doesn't need to lookup the latest analysis. If it needs to be part of that class, it is best implemented as a classmethod. Would that be your recommendation?
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.
Added this in #164
intezer_sdk/code_reuse.py
Outdated
| def __init__(self, api_client: Optional[IntezerApiClient] = None): | ||
| self._api = IntezerApi(api_client or api.get_global_api()) | ||
|
|
||
| def _get_result_from_task(self, result_url: str): |
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 logic is most likely already implemented
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.
intezer_sdk/code_reuse.py
Outdated
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.
Added this in #164
1f6e43d to
1b265c2
Compare
- Format import statements - Use @DataClass for Block class - Make is_common a property - Switch from " strings to ' strings - Use of HTTPStatus instead of int - Changed variable format to long-name
2193bd6 to
34af90a
Compare

No description provided.