-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
update adapter version messages #10919
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: update adapter version messages | ||
time: 2024-10-25T10:43:39.274723-05:00 | ||
custom: | ||
Author: dave-connors-3 | ||
Issue: "10230" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,11 @@ def _get_plugin_msg_info( | |
|
||
needs_update = False | ||
|
||
if plugin.major != core.major or plugin.minor != core.minor: | ||
assert plugin.major is not None | ||
assert plugin.minor is not None | ||
assert core.major is not None | ||
assert core.minor is not None | ||
if plugin.major != core.major or plugin.minor < core.minor: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I talked with @colin-rogers-dbt + @mikealfare about this. I think we can get safely rid of this check entirely. Basically, we've decoupled the plugin (adapter specific) version and the core version. The majors no longer need to be equal, and the minor can be behind the core minor. The later might not actually be that uncommon. All of this is the case because PyPI now handles this via There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. even better! you want to do the honors or should i? |
||
compatibility_msg = red("Not compatible!") | ||
needs_update = True | ||
return (compatibility_msg, needs_update) | ||
|
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.
asserts
shouldn't be used in production, see: https://snyk.io/blog/the-dangers-of-assert-in-python/