fix(M5): automation-MiniApp-Registrierung — Legacy-Doppelregistrierung entfernt (#363)
Check Cross-Plugin Imports / check (push) Has been cancelled
Check Cross-Plugin Imports / check (push) Has been cancelled
- on_activate re-registrierte Manifest-MiniApps OHNE component/permission und ueberschrieb die korrekte M1-Registrierung aus super().on_activate() (live gemessen: automation_status comp=no/perm=- auf Produktion) - Regressionstest sichert das Entfernen (test_automation_legacy_reregistration_removed) - Regression: M5 8/8 + lifecycle + registry 26/26
This commit is contained in:
@@ -244,22 +244,10 @@ class AutomationPlugin(BasePlugin):
|
||||
self._register_workflow_agent_tools()
|
||||
except Exception:
|
||||
logger.exception("Failed to register workflow agent tools")
|
||||
# Register MiniApps from manifest
|
||||
try:
|
||||
from app.plugins.builtins.kommunikation.contracts import get_miniapp_registry
|
||||
registry = get_miniapp_registry()
|
||||
for miniapp in self.manifest.miniapps:
|
||||
registry.register(
|
||||
app_id=miniapp.app_id,
|
||||
name=miniapp.name,
|
||||
icon=miniapp.icon,
|
||||
description=miniapp.description,
|
||||
plugin_name=self.manifest.name,
|
||||
render_schema=miniapp.render_schema,
|
||||
)
|
||||
logger.info("Registered MiniApp '%s' from manifest", miniapp.app_id)
|
||||
except Exception:
|
||||
logger.exception("Failed to register MiniApps from manifest")
|
||||
# NOTE: Manifest MiniApps are registered by super().on_activate()
|
||||
# (BasePlugin, Phase M1) WITH all fields (permission, component,
|
||||
# settings_schema). The legacy re-registration here dropped those
|
||||
# fields and overwrote the correct entries — removed (M5 fix).
|
||||
# Register own cron jobs from manifest
|
||||
try:
|
||||
await self.register_plugin_contributions(db, self.manifest.name, self.manifest)
|
||||
|
||||
Reference in New Issue
Block a user