-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UpToDateThemes validator to setup:db:status #39383
base: 2.4-develop
Are you sure you want to change the base?
Conversation
Hi @peterjaap. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento create issue |
@peterjaap, am I right that the |
@ihor-sviziev afaik the app:config:import doesn't create/remove themes |
@peterjaap, could you then provide more details of what The magento2/setup/src/Magento/Setup/Console/Command/UpgradeCommand.php Lines 142 to 161 in f6c904a
And I don't see anything related to theme (maybe it's hidden somewhere) |
@ihor-sviziev it's definitely in there somewhere, given this output;
In this case, the new theme is added by adding it to |
@peterjaap, from what I see, the message is located in Could you please double-check that? Considering that, I think it has to be checked in the BTW, I guess you're using |
Yes you are correct. So this might be a better check to add to |
@peterjaap, yes, please update the pull request and update your pre-deploy check :) |
Ok thankfully that check is already in there; So I only have to update this PR then. Coolcoolcool |
Description (*)
Running
bin/magento setup:db:status
right now does not check whether there is a theme update. If the only change in the deploy is a theme being added,bin/magento setup:db:status
will now show;However if you were to run
bin/magento setup:upgrade
, you'd get this message;With the change in this MR, we'll get this output from
setup:db:status
;Since we rely on the output of
setup:db:status
to decide whether or not to runsetup:upgrade
in our deployment pipeline (to make near-zero downtime deployments possible), this is tripping us up from time to time.This PR aims to add a validator to check whether there are theme changes, forcing
setup:upgrade
to run.Thanks to @johnorourke for pointing this out.
Resolved issues: