When #1447686: Allow importing and synchronizing configuration when files are updated lands, we'll have a simple config_sync() mechanism.

however, we deferred handling module dependencies and a other issues of ordering of reload operations.

this issue will track that and implement these features.

Files: 
CommentFileSizeAuthor
#8 drupal8.config-defer.8.patch9.68 KBsun
PASSED: [[SimpleTest]]: [MySQL] 39,802 pass(es).
[ View ]
#6 1605460_6.patch3.02 KBchx
FAILED: [[SimpleTest]]: [MySQL] 39,519 pass(es), 3 fail(s), and 20,892 exception(s).
[ View ]
#4 1605460_4.patch2.39 KBchx
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1605460_4.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

Issue tags:+Configuration system

Title:Implement dependencies and defer process for config_sync()Implement dependencies and defer process for importing configuration

The last patch that implemented the dependency handling and DEFER flag was #105 on
#1447686-105: Allow importing and synchronizing configuration when files are updated

Personally, I think this issue should be postponed until we actually have any config objects with interdependencies though.
(which is blocked on #1668820: Concept, base class, and interface for Configurables (e.g., node types, image styles, vocabularies, views, etc))

Somewhat related to dependencies, there is also:
#1677258: Configuration system does not account for API version compatibility between modules

It's filed as a separate issue, because

1) this issue here is mainly talking about interdependencies between multiple config objects

2) that issue is mainly about 1 config object, and 1 module API/version; whereas the config object might have been exported on a site that had a previous module API version installed and the config object is imported on a site that has a different/incompatible module API version installed.

Status:Active» Needs review
StatusFileSize
new2.39 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1605460_4.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

I talked to heyrocker about this and he said that each module should deal on the inside with its own dependencies on the outside we just use the module dependency order. So...

Status:Needs review» Needs work

The last submitted patch, 1605460_4.patch, failed testing.

Status:Needs work» Needs review
StatusFileSize
new3.02 KB
FAILED: [[SimpleTest]]: [MySQL] 39,519 pass(es), 3 fail(s), and 20,892 exception(s).
[ View ]

That's weird , I thought my HEAD was up-to-date. Anyways, the above recalculated modules thrice. Hardly what we want.

Status:Needs review» Needs work

The last submitted patch, 1605460_6.patch, failed testing.

StatusFileSize
new9.68 KB
PASSED: [[SimpleTest]]: [MySQL] 39,802 pass(es).
[ View ]

Attached patch is a 1:1 plain restore of the DEFER code from #1447686: Allow importing and synchronizing configuration when files are updated, extracted from git history.

The code needs to be adjusted all over the place to be functional and compatible with the current config code in HEAD.

However, I think we should definitely base further work on this code, since the defer/dependencies topic actually was the one we discussed most and spent the most time on to figure out. The solution @davidstrauss came up with still makes most sense to me.

Status:Needs work» Needs review

I do not get it. This code adds calling MODULE_config_sync but does not remove the existing MODULE_config_import_$op callbacks. I think the latter is now superceded?