-
Notifications
You must be signed in to change notification settings - Fork 2.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
Closes: #18535 - Skip incompatible plugins during startup #18537
base: feature
Are you sure you want to change the base?
Conversation
Just to understand, this would print a warning at netbox upgrade time? The experience of figuring out which plugin has a strict max_version specified and breaks the upgrade process even on patch upgrades during the database migration step could really use to be more explanatory. |
Yes, it would look like this:
|
…display status in Plugins page
…display status in Plugins page
…ns, and display status in Plugins page" This reverts commit d97bf2a.
… into 18535-skip-incompatible-plugins
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.
installed_version=installed_version, | ||
) | ||
|
||
# Update catalog entries for local plugins, or add them to the list if not listed | ||
for k, v in local_plugins.items(): | ||
if k in plugins: | ||
plugins[k].is_local = True | ||
plugins[k].is_installed = True | ||
plugins[k].is_installed = k in registry['plugins']['installed'] |
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.
I think we can copy this over directly?
plugins[k].is_installed = k in registry['plugins']['installed'] | |
plugins[k].is_installed = v.is_installed |
Closes: #18535
Changes the behavior of the
PluginConfig.validate
method so that if a plugin with incompatible min or max version specified, it raises anIncompatiblePluginError
which is caught insettings.py
and registering the plugin is skipped, allowing NetBox to launch cleanly with the plugin disabled.