-
Task
-
Resolution: Fixed
-
None
-
Critical
-
CLI: Service Autodiscovery gets a new option to run also on disabled plugins.
-
Emptyshow more show less
problem
The t5 service:autodiscovery is used to configure the used services automatically where possible.
This is also done in our hosting environment when installing new instances.
But: The installer calls the autodiscovery also on plugins which are disabled for a new instance, for example VisualReview.
But: the autodiscovery does not configure the service since the plugin is disabled, or when using the switch "--all-available" it would discover all services of all plugins AND it would also enable the plug-in what is also not desired.
Without --all-available the service is not configured, because the plugin is disabled:

With --all-available the service is configured AND the plug-in would be activated, what we don't want.

solution
We need a new option "no-plugin-change" so that the service can be added, but the plugin config is not changed (not disabled if service not reachable and not enabled if reachable)
additional todo
Fix all usages of service:discovery in Repo mittagqi/hosting-scripts code so that the new option is used.