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
Project YAML files not being processed #191
Comments
It sounds like you might be overriding the plugin settings in step 5 (replace current db with old exported one). Can you try migrating the database before you install and configure the Campaign plugin? |
@bencroker Yes I’m overwriting the settings on purpose so that the settings can be re-configured from the project config. All other db changes are re-configured again but those of campaign aren't. |
Ok, I'll do a review of the project config rebuild process in the Campaign plugin as a lot has changed in recent Craft versions, and will let you know what I find. |
Things are looking ok in the plugin. Looking at your steps, it looks to me like maybe the plugin needs to be installed, so the DB tables are created, before you rebuild project config. |
Hi @bencroker, sounds fair. We do install plugin and configure the settings in one go. |
Possibly. Perhaps @andris-sevcenko can chime in on this? |
If I’m reading this correctly, the DB backup workflow is really just to simulate deploying the project config changes to a new environment. In which case, expected behavior would be that the plugin gets installed and then its existing project config YAML settings get applied. @bencroker take a look at https://craftcms.com/docs/3.x/extend/migrations.html#setting-default-project-config-data which shows how your install migration should be handling potential incoming project config data. |
Thanks for the response @brandonkelly. I'm not making any project config changes in the Here is where I'm listening for changes to project config:
@jripmeester How exactly are you re-applying project config? |
@bencroker We take the following steps in our development enviroment.
After typing this i realise you only asked where do we run the project config changes; so that's step 5. In the admin / utilities / project config section. Shall i share the project config folder with you? This contains some API keys so i would preferably e-mail it to you. |
Thanks for clarifying, no need to send anything over, I'll run some local tests and let you know what I find. Do you happen to use Commerce? I'm wondering if the process you followed is working with Commerce product types. |
@bencroker We don't use commerce. This is our composer file { |
So after investigating further, it turns out that @brandonkelly was, unsurprisingly, right about it being caused by a conflict in the incoming project config data. In this case, it wasn't in the install migration but in the main plugin file, which threw me off initially. Fixed in 2229110 and released in 1.17.5 for your Friday updating pleasure. |
Describe the bug
We added Campaign to a existing website. We rely heavy on the project config files. After updating the database from the live enviroment to our dev enviroment we run the project config update tool. All changes are made perfectly except we needed to re-configure all Campaign settings. Campaign itself was installed though.
To reproduce
Steps to reproduce the behaviour:
Expected behaviour
We expect that all campaign settings present in the project config files are processed when project config tool is run.
Versions
The text was updated successfully, but these errors were encountered: