Problem/Motivation
I have notices there are sometimes unexpected third_party_settings and node_id (always empty, of course, they don't make sense here) in the ComponentSource internal data.
node_id: 699714c9b5736
source_id: component
source:
component:
component_id: 'ui_suite_daisyui:avatar'
variant_id: {}
props: {}
slots: {}
third_party_settings: ''
node_id: ''Proposed resolution
Find where they are added and remove them.
Added to display_builder-1.0.0-beta3 scope because I hope it will be a little innocent fix.
Issue fork display_builder-3574548
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
Comment #3
pdureau commentedThis little issue may have 2 distinct causes:
node_idis added because of a leftover of the introduction ofSourceWithSlotsInterfacein #3531521: Layout plugins support with this part in Instance entity hardcofdngComponentSourcelogic:It need to be replaced by a generic behaviour, so we need to add a
parentkey in the path index, and we will also get rid of some now useless logic.A mechanism adding
third_party_settings, not found yet.Comment #4
pdureau commentedComment #5
pdureau commentedIndeed, there is a second mechanism in play, adding unexpected
node_idandthird_party_settingsempty values, but it is on UI Patterns' side: #3574820: Unexpected properties in ComponentSource dataWhat can be done in Display Builder has been done in the MR, so OK to review.
Comment #6
pdureau commentedComment #7
mogtofu33 commented