Problem/Motivation

There are some inconsistences between configurations that have support to load info from default hooks and configs that cannot do that.

For example, if users run drush config-load they will expect no changes in the Active Store, however, if a content type is loaded, and is doens't exist before in the ActiveStore, it will be automatically available because it is provided by a default hook.

Also, it doesn't really make sense keep using default hooks since we are not really loading the config from code but from the staging area.

Proposed resolution

Replace the defaultHook implementations for rebuildHook implementations. Explicity save the objects using *_save.

Then, rename rebuildHook with saveToActiveStore, wich makes more sense for this module.

Remaining tasks

TODO

User interface changes

None

API changes

Replace defaultHook with rebuildHook.
Replace rebuildHook with saveToActiveStore.

CommentFileSizeAuthor
#1 1776646-remove-defaultHook.patch12.49 KBdagmar

Comments

dagmar’s picture

Status: Active » Needs review
StatusFileSize
new12.49 KB

Here is the patch

dagmar’s picture

Status: Needs review » Fixed

Committed d0c9ff9

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.