Alert staff when active plugins rely on a disabled plugin integration (#13281)

* Alert staff when active plugins rely on a disabled plugin integration

- Report (plugin, mixin, setting) combinations in the 'system_state' of the info endpoint
- Add INVE-W22 alert to the alerts menu and admin center
- Document the new warning code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Respect global setting overrides when checking plugin integrations

A setting which is overridden via environment or config file takes priority over the stored value

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Fix plugin integration message for plugins with translated names

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Report a failed plugin integration check, and cover its edge cases

If the check raises an exception, report "Unable to check plugin
integrations" instead of "No issues detected".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Name the plugin settings which need to be enabled

List each affected plugin together with the settings which need to be
enabled, e.g. "Auto Create Builds (Enable event integration)".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Syogo-SuganoyaandClaude Opus 5.5 authored and GitHub committed 2026-11-16 18:18:30 +11:00
1 parent 742c8a56ee
commit 129cfe7383
4 files changed
+248

No files matched your search

+9
View File
@@ -288,6 +288,15 @@ The `middleware` or `authentication_backends` list provided in the configuration
The class has been removed automatically. To remove this warning, remove it from the list in your configuration file.
#### INVE-W22
**Plugin integration is disabled - Backend**
An active plugin makes use of a plugin integration (mixin) which is disabled in the global settings. The affected functionality of the plugin (e.g. custom URLs, scheduled tasks, event handling or user interface elements) will not work until the integration is enabled.
The message lists each affected plugin, together with the plugin settings which need to be enabled. Enable the listed settings in the [plugin settings](./global.md#plugin-settings) (a server restart may be required), or deactivate the plugin if it is not needed.
If the check itself fails, the message "Unable to check plugin integrations" is shown instead. Check the server log for details.
### INVE-I (InvenTree Information)
Information — These are not errors but information messages. They might point out potential issues or just provide information.