-
Notifications
You must be signed in to change notification settings - Fork 397
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
BLT's Config management nuance questions #3194
Comments
I don't think config-split will work the way you want. |
Why do you say that @wu-edward? |
@dpagini Do you have a link to that bug on d.o? |
@dpagini have you considered setting up a CI specific split that has all of the configuration in it that you want to test? i've done that on a few projects where i have competing things that i wouldn't normally have configured in all environments, but for CI we do it all so that we can run automation against it. just a thought. what else can we do to help on this issue? |
Sorry, I have been meaning to get back to @greylabel's question here, and still intend to. @mikemadison13 I guess I'm wondering if there is some logic behind requiring a user who wants to use the |
i "think" that you can do so... i haven't personally, but i believe there are some folks who are doing just this, where config/default basically has next to nothing in it and everything lives inside a split. @msherron i think showed me an example of this once, Michael do you have any docs we could share with @dpagini to help him out? i don't remember the nuance of getting config to import without a core.extension (or maybe it's just that there IS a core.extension but it's super duper minimal???) |
Hey just want to revisit this one again... I hadn't heard anything back after @mikemadison13's last post. @greylabel - Here is a d.o issue that highlights the problem in the So anyways, I did not intend the thread to turn into a features bashing session, but I'm looking for alternatives for using BLT without exporting the entire config of my site. @mikemadison13 mentioned above there might be users using BLT without exporting the entire site into I guess just as a basic question... if I set |
This discussion has been interesting to follow and has produced a few potential ideas but no clear feature request except for #3345 (which was fixed), so I'm closing for now. |
With this issue, I suppose I'm still wondering if there is any reason that BLT requires a |
@grasmash added the check for core.extension.yml in #1275. Presumably it was just a basic sanity check that configuration exists on disk prior to running an import. My understanding is that with a full config import (whether using config split or not), you need to have core.extension.yml (that file never gets "split"). If you can provide a valid use case for not requiring core.extension.yml to be present and some other way of gracefully handling the situation where configuration doesn't exist on disk, feel free to open a new issue or PR. |
So I imagine it makes sense to check for it with a full config import, right? But you cannot use Thanks for checking this closed issue.. I didn't quite think my comment would be acknowledged, but wanted to get it out there. |
I have been using BLT for quite a long time now, and have been stuck in the features workflow. Time after time there are issues with features, especially with multisite that have me evaluating a switch to
core-only
orconfig-split
methods.Due to using features, I have a whole bunch of modules that provide config. I have unit testing in these modules as well. We try to build our modules like they are going to be contributed back to the community, and our test coverage ensures our application stays well tested.
So I begin looking into the other two BLT config management options of
core-only
andconfig-split
. Core only seems pretty straightforward... you export ALL your sites config to a folder, and then import it as part of setup or update procedures, there's nothing I'm missing here, right? Then Config Split seems like it's become a favorite of the community recently. It seems config-split lets you activate certain config groupings based on things like environment or site or feature, to name a few. This seems pretty great... with one caveat. It seems that BLT requires you to use the full config import/export feature ofcore-only
in order to use config-split at all.These lines ensure that your config splits only run/work if you have the
core.extension.yml
file in your main site config directory.By using the full
core-only
config split, I'm afraid I'm going to lose a lot of that desired test coverage we have built into our site. Now config files in theconfig/
directory can change and break something and the tests won't catch it, because they are only testing the default config provided by the module.I would really like to use
config-split
for only a small subset of my config files... for example, providing agoogle_analytics.settings.yml
file per site that has the account ID in config/code. I don't want to then export my entirecore.extension.yml
file and ALL configuration for the site in order to have to use the config-split method.Thoughts? Does this make sense at all? Am I missing something basic in my understanding here and I can already do all of this?
The text was updated successfully, but these errors were encountered: