
Problem/Motivation
When I import or revert a jsonapi_resources config in an update hook (let's call it jsonapi_extras.jsonapi_resource_config.paragraph--example.yml), I get the following error: Undefined index: label in Drupal\config_sync\ConfigSyncLister->getExtensionChangelist().
Stack trace shows that the the jsonapi_resources config type specifies that a label exists, but this is untrue for jsonapi_extras configs, which only have an ID.
Steps to reproduce
- Install Config Sync module.
- Install Jsonapi Extras and Jsonapi Resources modules.
- Create an override in Jsonapi Extras.
- Export the resulting config file.
- Make a change to the config file and add it to a new module.
- Create an update hook that imports or reverts the config.
- Run this update hook using Devel PHP execute.
Proposed resolution
Either add a label to the config or make sure that the jsonapi_resources config type no longer expects a label.
Issue fork jsonapi_extras-3265286
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Toggle MR activity (3 comments)Comment #2
guypaddock CreditAttribution: guypaddock at Inveniem commentedadded 1 commit
Compare with previous version
added 1 commit
Compare with previous version
Comment #4
guypaddock CreditAttribution: guypaddock at Inveniem commentedComment #5
guypaddock CreditAttribution: guypaddock at Inveniem commentedTest failures are unrelated. Ready for review!
added 22 commits
project:8.x-3.x
Compare with previous version
Comment #7
bbralaGood catch, thank you, sorry for the delay :x
Comment #9
bbrala