-
Notifications
You must be signed in to change notification settings - Fork 394
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
Site Splits Broken #3674
Comments
Hi,
In our project setup we use a generic
the site split won't be applied since the site name variable is not set. Is that correct or am I reading this wrong? Thanks, |
What version of BLT? |
9.2.8. thanks, |
Site splits were fixed after the release of BLT 9.2.8. You either need to manually patch the fix (see #3675) or you need to update to 10.x! |
Perfect, thanks. |
One other question: if we are trying to move a BLT 9.x application off of Features to core CMI and config-split, apart from moving to BLT 10.x (based on your reply), do we need to pull in any other specific version of any other dependencies? thanks, |
not really, no. mostly it's just making sure config split is enabled and your configuration is moved out of the feature modules. |
Describe the bug
This is an issue impacting both BLT 9.2.x and 10.x (and perhaps previous versions as well).
Currently, config splits based on a site (or site splits) should be functional when a config split has the exact same name as a site on ACSF.
After #3362 got fixed (which resolved a site name detection issue) I had hoped we were good, but after extensive troubleshooting, this is still not working.
To Reproduce
Steps to reproduce the behavior, ideally starting from a fresh install of BLT:
drush php
print out the global $config arrayExpected behavior
I would expect an additional item in the config array above that corresponds with the site split. I could understand if the split wasn't getting activated for "some reason" but the fact that it's not in the config object at all is highly suspect given https://github.com/acquia/blt/blob/10.x/settings/config.settings.php#L89
Detailed error output
N/A
BLT doctor output
N/A
System information
Additional context
This issue fits into a broader issue with config splits and the current landscape. While not directly related, #3575 is a similar set of broken config split detection (but for profiles).
I think environment splits have been fine all along (because BLT can detect that). Site splits should also be fine, once we merge these PRs, as BLT can easily detect the site on ACSF (thanks to the post-sites factory hook). However, as mentioned, profile splits require bootstrapping Drupal (so are a slightly different ball of wax).
Solution
We tested this by adding a global $_acsf_site_name, re-deployed, and confirmed that the site splits were actually working.
The text was updated successfully, but these errors were encountered: