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

Added cli compatibility check #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added cli compatibility check #206

wants to merge 1 commit into from

Conversation

DeeJayBro
Copy link

Inserted function to check if the cli version is still supported by the server

@DeeJayBro DeeJayBro changed the title Added a compatibility check Added cli compatibility check Dec 13, 2019
@@ -20,10 +20,12 @@ def get_user_auth_token_by_login(username, password):
"""
Returns user auth token by login.
"""
from evalai.utils.requests import check_compatibility
Copy link
Member

Choose a reason for hiding this comment

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

@DeeJayBro can we place this import with all other imports at the start of the file

Copy link
Author

Choose a reason for hiding this comment

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

Nope, because it would lead to circular imports

@@ -1,4 +1,9 @@
import json
from types import SimpleNamespace
Copy link
Member

Choose a reason for hiding this comment

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

@DeeJayBro Can you move this import to line number 21

if semver.compare(version, response.headers["Minimum-CLI-Version"]) is -1:
echo(
style(
"\nYour CLI is too old and needs to be updated from {0} to {1}\n"
Copy link
Member

@krtkvrm krtkvrm Dec 14, 2019

Choose a reason for hiding this comment

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

Hi!
Can you implement this comment as well: #201 (comment)

@DeeJayBro
Copy link
Author

@DeeJayBro
Copy link
Author

Restarting the build seemed to solve it

Copy link
Member

@Ram81 Ram81 left a comment

Choose a reason for hiding this comment

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

@DeeJayBro can you resolve the merge conflicts. Please let me know if you face any issues in resolving conflicts

Copy link
Member

@krtkvrm krtkvrm left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Thanks for the contribution

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