Add command "app:config:status" to check if "app:config:import" needed #12441
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.
Description
Add command
app:config:status
to check whether config propagation is up to date. This command can be used to decide whetherapp:config:import
execution is needed during deployments.Fixed Issues
On version 2.2 a new command
setup:db:status
was added to decide whether executingsetup:upgrade
is required. The purpose of this command was to add the possibility of deploying without executingsetup:upgrade
if module versions are up to date.With the same objective, a command to check the config status is needed to decide whether
app:config:import
is needed.Issue
If
setup:upgrade
is not executed, we need to always executeapp:config:import
because there is no way to know, if config files are up to date or not. This will mean, we still need to set the maintenance and we cannot simply switch the code to the new version.Solution
Using
app:config:status
, we would be able to switch to a new version without the need of a maintenance, ifsetup:db:status
also returns that everything is up to dateManual testing scenarios
Thanks to this command, we would be able to deploy without maintenance as follows:
1.- Check
setup:db:status
returnsAll modules up to date
2.- Check
app:config:status
returnsConfiguration files are up to date.
3.- No maintenance is required because we do not need to execute
setup:upgrade
orapp:config:import
Contribution checklist