Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
configuration system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
23 Sep 2013 at 01:51 UTC
Updated:
21 Sep 2021 at 20:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedtagging.
Comment #2
Anonymous (not verified) commentedhere's the patch.
i didn't git rm ConfigInstaller yet, that can be done after #2095115: delete ViewTestConfigInstaller and have ViewTestData create views, not 'import' them lands.
Comment #4
Anonymous (not verified) commented#2: 2095489-2.patch queued for re-testing.
Comment #6
Anonymous (not verified) commentednow with less durp durp durpal.
Comment #8
tim.plunkettThen you can straight up remove the ConfigInstaller class
Comment #9
tayzlor commentedNew patch which removes the ConfigInstaller class and should hopefully fix the broken test in ConfigInstallTest.
I also added another line to reset the static cache (via the ConfigFactory) for the config name being imported in config_install_default_config() as other tests were failing and it seemed like this was because it was retrieving stale config items from there.
Comment #10
Anonymous (not verified) commentedtayzlor++ i think this is RTBC, but it would be good to get alexpott to have a look at it.
Comment #11
alexpottWe need to call the ConfigFactory->enterContext before we do anything with config and we need to call ConfigFactory->leaveContext
Comment #12
tayzlor commentedNew patch attached which switches in and out of context around the config saving.
Comment #13
tayzlor commentedComment #14
tayzlor commentedWrong interdiff uploaded but the patch is still good - so ignore the interdiff in #12
Comment #16
tayzlor commented#12: 2095489-12.patch queued for re-testing.
Comment #18
Anonymous (not verified) commentedbump.
Comment #19
Anonymous (not verified) commentedanother reason to do this: #2069373: Race conditions on import if CUD on ConfigEntity A triggers changes in ConfigEntity B can't do the obvious thing, because we run import code during install, so the 'don't create fields' flag gets set, and no default config entities get extra fields, breaking all the things.
Comment #20
alexpottFinally got a pass let's get this done
Comment #21
catchCommitted/pushed to 8.x, thanks!
Comment #22
swentel commentedSo this is fixed then I guess :)
Comment #24
xjm