Closed (fixed)
Project:
Features
Version:
8.x-3.x-dev
Component:
Generation Plugins
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2016 at 10:38 UTC
Updated:
23 Apr 2017 at 00:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
grimreaperHere is the patch.
Thanks for the review.
Comment #3
juanramonperez commentedIs a good idea remove this?
Comment #4
grimreaperHello juanramonperez,
I don't know if it is a good practice to remove the hash but in config_update (which Features depends on), there is a commit that skip the hash in the diff #2636514-3: ConfigUpdateTest is failing (finding spurious differences in some config).
So if we will not see diff on the hash I don't think it is needed to export it.
I change the status to Needs work as I need to test more because I think I still saw hash exported. Maybe the patch does not cover all export plugins.
Comment #5
nedjo@Grimreaper: thanks for filing this. Yep, looks like we should be stripping this out on export.
This issue is related: #2599278: Move export processing to a configurable plugin. Ideally I'd like to see these various types of export processing done via plugin, but meantime we can just add
This might be clearer if we consolidated with the existing processing:
Comment #6
grimreaperHello nedjo,
Thanks for the review.
As said in comment 4, I will test further the export (drush, download archive and write).
I will remake the patch this weekend.
Comment #7
grimreaperI found why I still get _core in exported config files.
For theme settings. $this->configManager->getEntityTypeIdByName($name) is null.
So uuid and _core are not unset.
And another thing stranged is that in the theme settings file there is no uuid...
I will see why and provide a patch to manage those files.
EDIT: ok when I see the config files export with core CMI, it seems that the config entities have uuid and _core. But "simple" config have only _core.
Comment #8
grimreaperHere is the patch with your recommandation nedjo.
Thanks for the review.
Comment #9
nedjoIn the original code here we're testing to ensure we have a config entity before unsetting the uuid, presumably on the assumption that otherwise a uuid could be valid. So we should retain that. TBD: is _core added to all config or only to config entities? If to all config, it should be removed outside the conditional.
Comment #10
grimreaperHello nedjo,
_core is added for both simple config and config_entities.
Here is a new patch based on your last comment.
Thanks for the review.
Comment #11
smazJust tested the patch in #10 with a full config export (i.e. all features) into an installation profile, and _core was not included.
Using config_update-8.x-1.1, it doesn't compare against the _core that is then in the database.
All looks good to me!
Comment #13
nedjoCommitted, thanks!
Comment #14
grimreaperThanks you all!
Comment #16
vdacosta@voidtek.com commentedHi,
The export configuration of "default_core_hash" and "UUID" is set in "alter" option for the bundle.
See more information: https://www.drupal.org/node/2856786