First of all, thank you for an awesome module. I have a feature request. There are use cases where it is important to know what was merged and what was ignored or substituted. In combination with config_sync this module is a very powerful tool, so it would be nice to have some report on how the process went through.
I suggest to add static variable and add some log info there and also add some event classes to dispatch events so other modules can react.
The patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3038347-config_merge_logs-10.patch | 4.17 KB | a.dmitriiev |
| #6 | 3038347-config_merge_logs-6.patch | 6.2 KB | a.dmitriiev |
| config_merge_logs.patch | 6.3 KB | a.dmitriiev |
Comments
Comment #2
a.dmitriiev commentedComment #3
nedjo@a.dmitriiev apologies, I wasn't properly subscribed to issues on this project so didn't see this when you posted it. This looks like a good idea.
More generally, I am looking for help maintaining the Configuration Synchronizer module set, including Configuration Merge, Configuration Normalizer, Configuration Provider, and Configuration Snapshot. Please contact me if you're potentially interested in co-maintaining some or all of these modules.
Comment #4
a.dmitriiev commented@nedjo, please take a look at the patch, does it seem reasonable to have this? What is your opinion?
Comment #5
nedjoLooking good! Here are some suggestions.
Unneeded line return.
Should give description of static.
Needs documentation of method and return value.
Should give description of return value.
White space issue.
White space issue.
Let's pull this and other $operation strings ('update', 'substitute') into defines in this class.
Should be camel case ($providerType) and have description.
Please add description.
Should be camel case ($providerType) and have description.
Please add description.
UUID seems wrong for $config_name?
Comment #6
a.dmitriiev commentedThe patch was updated. Please check.
Comment #7
nedjoLooks great, thanks!
One final detail .I wasn't remembering that the Drupal standard is to use
constrather thandefine(), see the relevant coding standard:So if before applying this you could switch the defines to consts (and also add PHPdoc for the consts per the coding standard I linked to) that would be great, thx!
Comment #8
nedjoSorry, I see you already used const rather than my outdated suggestion of define! Ignore that!
Comment #9
a.dmitriiev commentedI will add the constants descriptions.
Comment #10
a.dmitriiev commentedUpdated patch, descriptions to constants were added. Please review.
Comment #12
a.dmitriiev commented