-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
fix: do not explicitly set the backdrop_drupal_compatibility and update_free_access settings, fixes #6090 #6091
base: master
Are you sure you want to change the base?
Conversation
Download the artifacts for this pull request:
See Testing a PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine with me. But it seems like it would be better to
- Include settings.local.php after settings.ddev.php (fixing that)
- In settings.ddev.php say "if not set then set them" and keep the settings.
But we really just want to do what works best for Backdrop folks. Glad to have you here.
Hoping to hear a response from you about this @klonos - I do think there's an easier way. If I don't hear back by May 15 or so I'll close this. |
Hey @rfay 👋🏼 ...apologies for the late reply here; we have been working on things in Backdrop core since today is the feature freeze for the upcoming 1.28.0 minor release, which is slated for May 15. There has been too much activity to keep up with, and there will continue to be a lot of effort/focus in the next couple of weeks on fixing bugs and improving all the features that got in before the feature freeze. I promise to loop back to this after all that "release frenzy" has subsided (if not sooner than that). |
I'll close this about June 15, 2024 if you don't get back to it. Thanks for your work on it, hope to see you successful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we just read if the value has been set before and use it?
I intentionally did not use the shorthand ??=
to make it clearer how the value is set.
I'm not sure why settings.local.php
doesn't override the value here:
ddev/pkg/ddevapp/drupal/backdrop/settings.php
Lines 438 to 445 in 28a5afc
// Automatically generated include for settings managed by ddev. | |
if (getenv('IS_DDEV_PROJECT') == 'true' && file_exists(__DIR__ . '/settings.ddev.php')) { | |
include __DIR__ . '/settings.ddev.php'; | |
} | |
if (file_exists(__DIR__ . '/settings.local.php')) { | |
include __DIR__ . '/settings.local.php'; | |
} |
…ity and update_free_access settings Fixes ddev#6090
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried the quickstart and saw some difference between the existing settings.php
and the generated one.
After research, I agree that these values should be removed as they already have the same values in settings.php
.
The only thing I added was copying settings.php
from a fresh Backdrop installation (with settings.ddev.php
at the end): this changes the order for settings.ddev.php
and settings.local.php
, but makes it the same as for a fresh quickstart, which removes the confusion I had initially.
@klonos if you're good with this it can go in. |
The Issue
As described in #6090, if these settings are explicitly set in settings.ddev.php, trying to set them in settings.php or settings.local.php never takes.
How This PR Solves The Issue
This PR removes the lines in settings.ddev.php that explicitly set these two settings, which allows the values to be set in settings.php or settings.local.php (which unlike Drupal is provided by default OOTB in Backdrop).
Manual Testing Instructions
settings.php
file or thesettings.local.php
file and set$settings['backdrop_drupal_compatibility'] = FALSE;
.settings_get('backdrop_drupal_compatibility')
(for instance using the devel module anddpm()
or something) -> regardless of how that setting is configured, it is always returned asTRUE
👎🏼settings.php
file or thesettings.local.php
file 👍🏼Automated Testing Overview
N/A
Related Issue Link(s)
Fixes #6090
Release/Deployment Notes
N/A