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:statusto check whether config propagation is up to date. This command can be used to decide whetherapp:config:importexecution is needed during deployments.Fixed Issues
On version 2.2 a new command
setup:db:statuswas added to decide whether executingsetup:upgradeis required. The purpose of this command was to add the possibility of deploying without executingsetup:upgradeif module versions are up to date.With the same objective, a command to check the config status is needed to decide whether
app:config:importis needed.Issue
If
setup:upgradeis not executed, we need to always executeapp:config:importbecause 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:statusalso 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:statusreturnsAll modules up to date2.- Check
app:config:statusreturnsConfiguration files are up to date.3.- No maintenance is required because we do not need to execute
setup:upgradeorapp:config:importContribution checklist