-
Notifications
You must be signed in to change notification settings - Fork 8
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
Incopmatibility from BLT: The default value of $drs_override_config_directories is different from BLT's #72
Comments
@vishalkhode1 : Any ideas when we can land this, its blocking BLT removal for us? |
This bug was causing the config_sync_directory setting to come back different for our multisite environment. With BLT: With DRS:
Quick fix is to add $drs_override_config_directories = TRUE; in settings.php above the DRS require but the fix should be how BLT behaved if you want a nice migration path. |
I think if we make it like blt now, then this change will impact others as well (who are not using blt or not used blt till now). I think the quick solution would be, changing code
To
So, you just need to set one environment variable at your end i.e |
@vishalkhode1 I think a cleaner approach would be to add drs_override_config_directories to the $settings array. That way you can also move the comment about these settings to the settings.php template rather than the config.settings.php below: `
At the moment, the $drs_override_config_directories is a variable in the config.settings.php file unmodifiable by the end-user. In other words, how would the user set this flag besides setting the variable in the settings.php like we are doing right now? I think to make it consistent with how settings are currently set in the $settings variable, adding it as $settings['override_config_directories'] would be cleaner. Another thing the user can do to address this bug at the moment is to just set $settings['config_sync_directory'] = "../config/default"; in settings.php. |
@vishalkhode1 I am fine with any approach which replicates the same behaviour as BLT. But my only concern is that we have 150 plus sites and the solution should not make us change settings on a per site basis. To summarise the solution should have the following capabilities:
So, I will be happy with your proposed solution of setting one environment variable for all the sites. But if I were in your position, I would have created DRS 2.0 and changed the setting to TRUE in DRS and mentioned the same as breaking changes in the release notes. |
Update: In ACSF, one can workaround this bug by setting |
Describe the bug
The default value of
$drs_override_config_directories
is different from$blt_override_config_directories
.BLT:
https://github.com/acquia/blt/pull/4709/files#diff-f9a40a07d9a773b708777ca2e41c24519280d8ffc19f7379b56e2587d8e389ef
If
$blt_override_config_directories
is not set, it is set toTRUE
.Drupal Recommended Settings:
https://github.com/acquia/drupal-recommended-settings/blob/60a053a057e5b80fcb83c559ce8c5479f665eaaf/settings/config.settings.php
If
$drs_override_config_directories
is not set, it is set toFALSE
.To Reproduce
N/A
Expected behavior
According to the source code comment,
setting
FALSE
to$drs_override_config_directories
seems an exceptional case. Thus, the default value of it is expected to beTRUE
as it is in BLT.If this change is intended, it should be mentioned in the migration guide: https://dev.acquia.com/tutorial/you-dont-need-blt-acquia-cloud.
Screenshots
N/A
Environment
DRS v1.0.1 (the latest version).
Additional context
No.
The text was updated successfully, but these errors were encountered: