-
Notifications
You must be signed in to change notification settings - Fork 2
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
Releases/v1.26.0 branch: Implementation of SDK Version comparison for API's #60
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #60 +/- ##
==========================================
+ Coverage 20.30% 23.53% +3.23%
==========================================
Files 10 11 +1
Lines 1261 1351 +90
Branches 279 315 +36
==========================================
+ Hits 256 318 +62
- Misses 1005 1033 +28 ☔ View full report in Codecov by Sentry. |
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 looks fine to me
1) Refactored code to replace the global variable with a class attribute. 2) Implemented sorting of GitHub releases to obtain the latest version.
009f930
to
128156d
Compare
128156d
to
27d84f0
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.
Minor comments on typing and some suggested optimizations. Looks good.
setup.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.
FYI, I am going to suggest the creation of a new ticket to convert the python packaging from setup.py
to the new pyproject.toml
build system. The setup.py
system has been deprecated.
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.
Looks good.
api_version_printed = False | ||
last_version_check_time = None |
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.
FYI, do these need to be separate flags? Could have a method/property on the class which does the equivalent.
Jira ticket: https://sightmachine.atlassian.net/browse/ENG-3221