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

Implement Platform version check #474

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

igor-davidyuk
Copy link
Contributor

@igor-davidyuk igor-davidyuk commented Aug 1, 2024

SaaS users may experience silent platform updates, thus they need to be reminded to upgrade the SDK package.

@igor-davidyuk igor-davidyuk requested a review from ljcornel August 1, 2024 07:21
@igor-davidyuk igor-davidyuk changed the title Implement Platform version check. Implement Platform version check Aug 1, 2024
@igor-davidyuk igor-davidyuk force-pushed the idavidyu/platform-version-check branch from c353860 to 6f00cc6 Compare August 1, 2024 07:59
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
@igor-davidyuk igor-davidyuk requested a review from leoll2 August 1, 2024 09:23
Intel® Geti™ SDK.
"""
# Get the build version without a timestamp
platform_version = self.session.version.version
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor suggestion for another PR: repetitions like .version.version aren't a good software practice; the problem is the GetiVersion class which exposes a version attribute. I believe it would be better if that information was exposed through __str__, so that str(session.version) would return a string like "1.8.0". Methods like __eq__, __lt__, ... could be be smarter and support both strings and GetiVersion objects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the __str__ method - what you suggested is what is already implemented in the code.
A GetiVersion takes into account both the release version and the timestamp, while it's version field only represents the numeric version.
May be we should rename it to base_version

@igor-davidyuk igor-davidyuk merged commit 28bcfbc into main Aug 2, 2024
11 checks passed
@igor-davidyuk igor-davidyuk deleted the idavidyu/platform-version-check branch August 2, 2024 09:45
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.

2 participants