Problem/Motivation

I found a missed key in config schema.

MR incoming.

Command icon 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

grimreaper created an issue. See original summary.

grimreaper’s picture

Assigned: grimreaper » Unassigned
Status: Active » Needs review

Maybe not finished, as I am fixing config schema on my website and Sobki now that it is merged in UIP2.

grimreaper’s picture

StatusFileSize
new113.94 KB

I also have the following miss, see attached screenshot, with the following yaml:

core.entity_view_display.node.article.search_result.yml

uuid: e6ac36f6-5d6b-45e4-af38-15ddc73febab
langcode: fr
status: true
dependencies:
  config:
    - core.entity_view_mode.node.search_result
    - field.field.media.image.field_copyright
    - field.field.media.image.field_media_image
    - field.field.node.article.body
    - field.field.node.article.comment
    - field.field.node.article.field_metatag
    - field.field.node.article.field_tags
    - field.field.node.article.field_teaser_image
    - node.type.article
  module:
    - ctools
    - layout_builder
    - responsive_image
    - text
    - ui_patterns
    - ui_patterns_blocks
    - ui_patterns_field_formatters
    - ui_patterns_layouts
    - user
  theme:
    - ui_suite_bootstrap
third_party_settings:
  layout_builder:
    enabled: true
    allow_custom: false
    sections:
      -
        layout_id: 'ui_patterns:ui_suite_bootstrap:card'
        layout_settings:
          label: ''
          context_mapping:
            entity: layout_builder.entity
          ui_patterns:
            component_id: null
            variant_id:
              source_id: select
              source:
                value: horizontal
            props:
              attributes:
                source_id: attributes
                source:
                  value: ''
              image_position:
                source_id: select
                source:
                  value: ''
              header_attributes:
                source_id: attributes
                source:
                  value: ''
              footer_attributes:
                source_id: attributes
                source:
                  value: ''
              row_attributes:
                source_id: attributes
                source:
                  value: 'class="g-0"'
              image_col_attributes:
                source_id: attributes
                source:
                  value: 'class="col-md-5 text-center"'
              content_col_attributes:
                source_id: attributes
                source:
                  value: 'class="col-md-7"'
            slots: {  }
        components:
          eccb2551-496a-4235-9255-667ad36e58aa:
            uuid: eccb2551-496a-4235-9255-667ad36e58aa
            region: content
            configuration:
              id: 'entity_view:node'
              label: 'Entity view (Contenu)'
              label_display: '0'
              provider: ctools
              view_mode: card_body
              context_mapping:
                entity: layout_builder.entity
            weight: 0
            additional:
              ui_styles_wrapper: {  }
              ui_styles_wrapper_extra: ''
              ui_styles_title: {  }
              ui_styles_title_extra: ''
              ui_styles: {  }
              ui_styles_extra: ''
          60f61b8d-e8ba-4fe2-ac9a-0dc08ca5796b:
            uuid: 60f61b8d-e8ba-4fe2-ac9a-0dc08ca5796b
            region: content
            configuration:
              id: 'extra_field_block:node:article:links'
              label: Liens
              label_display: '0'
              provider: layout_builder
              context_mapping:
                entity: layout_builder.entity
              formatter:
                settings: {  }
                third_party_settings: {  }
            weight: 1
            additional:
              ui_styles_wrapper:
                spacing_padding_top: pt-0
              ui_styles_wrapper_extra: card-body
              ui_styles_title: {  }
              ui_styles_title_extra: ''
              ui_styles: {  }
              ui_styles_extra: ''
          7b09625b-77b6-481d-8005-b1b8c1e56329:
            uuid: 7b09625b-77b6-481d-8005-b1b8c1e56329
            region: image
            configuration:
              id: 'ui_patterns_entity:ui_suite_bootstrap:figure'
              label: Figure
              label_display: '0'
              provider: ui_patterns_blocks
              context_mapping:
                entity: layout_builder.entity
              ui_patterns:
                component_id: null
                variant_id: null
                props:
                  attributes:
                    source_id: attributes
                    source:
                      value: ''
                  figcaption_attributes:
                    source_id: ui_styles_attributes
                    source:
                      styles:
                        selected:
                          text_text_alignment: text-end
                      extra: ''
                slots:
                  image:
                    sources:
                      -
                        source_id: entity_reference
                        source:
                          derivable_context: 'entity_reference:node:article:field_teaser_image:media:image'
                          'entity_reference:node:article:field_teaser_image:media:image':
                            value:
                              sources:
                                -
                                  source_id: entity_field
                                  source:
                                    derivable_context: 'field:media:image:field_media_image'
                                    'field:media:image:field_media_image':
                                      value:
                                        sources:
                                          -
                                            source_id: 'field_formatter:media:image:field_media_image'
                                            source:
                                              type: responsive_image
                                              settings:
                                                responsive_image_style: teaser
                                                image_link: ''
                                                image_loading:
                                                  attribute: lazy
                                              third_party_settings:
                                                fences:
                                                  fences_field_tag: none
                                                  fences_field_classes: ''
                                                  fences_field_items_wrapper_tag: none
                                                  fences_field_items_wrapper_classes: ''
                                                  fences_field_item_tag: none
                                                  fences_field_item_classes: ''
                                                  fences_label_tag: none
                                                  fences_label_classes: ''
                                            _weight: '0'
                                  _weight: '0'
                        _weight: '0'
                  caption:
                    sources:
                      -
                        source_id: entity_reference
                        source:
                          derivable_context: 'entity_reference:node:article:field_teaser_image:media:image'
                          'entity_reference:node:article:field_teaser_image:media:image':
                            value:
                              sources:
                                -
                                  source_id: entity_field
                                  source:
                                    derivable_context: 'field:media:image:field_copyright'
                                    'field:media:image:field_copyright':
                                      value:
                                        sources:
                                          -
                                            source_id: 'field_formatter:media:image:field_copyright'
                                            source:
                                              type: text_default
                                              third_party_settings:
                                                fences:
                                                  fences_field_tag: none
                                                  fences_field_classes: ''
                                                  fences_field_items_wrapper_tag: none
                                                  fences_field_items_wrapper_classes: ''
                                                  fences_field_item_tag: none
                                                  fences_field_item_classes: ''
                                                  fences_label_tag: none
                                                  fences_label_classes: ''
                                            _weight: '0'
                                  _weight: '0'
                        _weight: '0'
            weight: 1
            additional:
              ui_styles_wrapper: {  }
              ui_styles_wrapper_extra: ''
              ui_styles_title: {  }
              ui_styles_title_extra: ''
              ui_styles: {  }
              ui_styles_extra: ''
        third_party_settings: {  }
_core:
  default_config_hash: ChmU3AVqDKU32A_fyChG0W9dTRKmVBR58B6OClCLvZI
id: node.article.search_result
targetEntityType: node
bundle: article
mode: search_result
content: {  }
hidden:
  body: true
  comment: true
  field_metatag: true
  field_tags: true
  field_teaser_image: true
  langcode: true
  links: true
  search_api_excerpt: true

I have 3 other config in this case.

grimreaper’s picture

Status: Needs review » Needs work
grimreaper’s picture

Seems that:

ui_patterns_slot_source:
  type: mapping
  label: 'Slot source'
  mapping:
    source_id:
      type: string
      label: 'Slot source ID'
    source:
      type: ui_patterns_source.[%parent.source_id]
      label: 'Slot source configuration'
    _weight:
      type: string
      label: 'Slot source weight'

ui_patterns_source.[%parent.source_id] should be evaluated to ui_patterns_source.entity_field but it is not.

So it does not detect properly that: ui_patterns_source.entity_field is ignored.

grimreaper’s picture

Assigned: Unassigned » grimreaper

Ok, I misread the config tree.

What is missing is ui_patterns_source.entity_reference

grimreaper’s picture

Assigned: grimreaper » Unassigned
Status: Needs work » Needs review
grimreaper’s picture

Now I will update Sobki MR, maybe I will find other stuff.

grimreaper’s picture

No other problem found with Sobki.

grimreaper’s picture

StatusFileSize
new2.26 KB

Patch for Composer.

christian.wiedemann’s picture

thanks! we can merge it.

pdureau’s picture

Status: Needs review » Fixed
pdureau’s picture

Status: Fixed » Closed (fixed)