Skip to content

feature/287 warn when weaviate client outdated#343

Merged
dirkkul merged 7 commits intoweaviate:mainfrom
iangregson:feature/287-Warn_when_weaviate_client_outdated
Jul 6, 2023
Merged

feature/287 warn when weaviate client outdated#343
dirkkul merged 7 commits intoweaviate:mainfrom
iangregson:feature/287-Warn_when_weaviate_client_outdated

Conversation

@iangregson
Copy link
Contributor

Closes #287 :: warn when weaviate client outdated

  • Adds a helper function in utils to compare current and latest version strings
  • Fetches latest version from pypi when initialising a connection
  • Compares latest pypi version with __version__ and warns the user if more than 3 minor versions behind
  • Don't fail if we can't get/parse any versions because that'll annoy the user
  • Adds a new static warning method with appropriate message
  • Adds some basic tests for the version comparison

Adds a helper function in utils to compare current and latest version strings.
Adds a new static warning method with appropriate message.
Fetches latest version from pypi when initialising a connection.
…o feature/287-Warn_when_weaviate_client_outdated
@weaviate-git-bot
Copy link

To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Slack channel?

@iangregson
Copy link
Contributor Author

I agree ✅

Copy link
Collaborator

@dirkkul dirkkul left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! There are some minor issues, would be great if you could fix those. In addition to the comments it would also be great if you could run black to fix the linter issues.

Sorry that my review took so long, I was on holiday :)

…o feature/287-Warn_when_weaviate_client_outdated
use pytest+parametrization on the test for outdated client check
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.

Warn when weaviate and/or client are outdated

3 participants