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

End support for Platforms versions lower than 1.15 #397

Merged
merged 13 commits into from
May 7, 2024

Conversation

igor-davidyuk
Copy link
Contributor

@igor-davidyuk igor-davidyuk commented Apr 24, 2024

  • Remove logic branching allowing to interact with Platforms older than 1.15
  • Add unit tests

This PR drops support for older GETi Platform versions (1.8 and older). It ends support for all interactions with older Platforms, including logging in.

It opens several paths for users:

  1. Users can upgrade their platform to 2.0 and use the GETi-SDK 2.0 package with it.
  2. Users who decide to stay with an older Platform version can use a corresponding GETi-SDK package.
  3. Users with complex pipelines, including model deployments by both legacy and contemporary versions of the Platform, should use separate virtual environments.

SaaS users should not be affected by these changes.

@igor-davidyuk igor-davidyuk requested a review from ljcornel April 24, 2024 07:30
@igor-davidyuk igor-davidyuk marked this pull request as ready for review May 1, 2024 14:38
@igor-davidyuk igor-davidyuk force-pushed the idavidyu/drop-support-legacy-platforms branch from 715d5aa to 1fde49b Compare May 2, 2024 15:37
geti_sdk/http_session/geti_session.py Outdated Show resolved Hide resolved
geti_sdk/http_session/geti_session.py Outdated Show resolved Hide resolved
geti_sdk/http_session/geti_session.py Show resolved Hide resolved
geti_sdk/http_session/geti_session.py Show resolved Hide resolved
geti_sdk/http_session/geti_session.py Show resolved Hide resolved
geti_sdk/http_session/geti_session.py Show resolved Hide resolved
geti_sdk/http_session/geti_session.py Show resolved Hide resolved
geti_sdk/http_session/geti_session.py Show resolved Hide resolved
Copy link
Collaborator

@ljcornel ljcornel left a comment

Choose a reason for hiding this comment

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

In the GetiSession.authenticate method, we should add some error handling to raise a user-friendly error for the following cases:

  1. User attempts to authenticate with a legacy geti version
  2. User attempts to authenticate with username/password on a Geti SaaS instance

igor-davidyuk and others added 11 commits May 7, 2024 12:11
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Co-authored-by: Radwan Ibrahim <Radwan.Ibrahim@intel.com>
@igor-davidyuk igor-davidyuk force-pushed the idavidyu/drop-support-legacy-platforms branch from d91a56d to 5bf7790 Compare May 7, 2024 13:25
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Signed-off-by: Igor Davidyuk <igor.davidyuk@intel.com>
Copy link
Collaborator

@ljcornel ljcornel left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks a lot. I love how much this simplifies the code :)

@ljcornel ljcornel merged commit 3ae57a4 into main May 7, 2024
11 checks passed
@ljcornel ljcornel deleted the idavidyu/drop-support-legacy-platforms branch May 7, 2024 14:34
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.

3 participants