[IMP] base: allow to disable autoinstall through command line #238685
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

In some case, a database can be in a state where some auto install module are not installed
It can lead to issues where an upgrade fails or some business logic does not work as expected because of the missing modules.
This is not easy to reproduce and to test, even if uninstalling such module should in theory work and be tested.
This pr proposes to add a flag "--skip-auto-install" to the config to be able to disable all auto install of modules.
It is open to discussion to change this to a config option, with or without a module list
Initial solution (alternative to avoid a config)
--dev skipautoinstall
Current solutions
(command line param)
--skip-auto-install
Maybe in the future but unlikely
(more flexible)
--skip-auto-install=all
--skip-auto-install=web_enterprise,iap
(krma suggestions)
--skip-auto-install=*
--skip-auto-install=web_*,iap
Those two last one could be more flexible but the use case are limited and can be done another way with an explicit -i, maybe no worth the additional complexity (mainly since we need to filter in two different places)
Note that this pr uses get on the config just in case the config is monkey patched somewhere to make it more robust.
Forward-Port-Of: #234710