Problem/Motivation

Seems the configuration of block entity has been changes since block.block.*.* schema created which is causing 'access denied' at #1998600: Block config translation fails
Currrent config for a sample block is this:

id: bartik.help
uuid: ffe30071-4298-436f-a900-d7da9bb4d144
weight: '0'
status: '1'
langcode: en
region: help
plugin: system_help_block
settings:
  label: 'System Help'
  module: system
  label_display: '0'
  cache: '-1'
visibility:
  path:
    visibility: '0'
    pages: ''
  role:
    roles: {  }
  node_type:
    types:
      article: '0'
      page: '0'
  visibility__active_tab: edit-visibility-path

Where as config schema is this:

# Schema for the configuration files of the Block module.

block.block.*.*:
  type: mapping
  label: 'Block'
  mapping:
    id:
      type: string
      label: 'ID'
    uuid:
      type: string
      label: 'UUID'
    label:
      type: label
      label: 'Title'
    label_display:
      type: string
      label: 'Display title'
    region:
      type: string
      label: 'Region'
    weight:
      type: integer
      label: 'Weight'
    module:
      type: string
      label: 'Module'
    status:
      type: boolean
      label: 'Status'
    visibility:
      type: mapping
      label: 'Visibility settings'
      mapping:
        path:
          type: mapping
          label: 'Pages'
          mapping:
            visibility:
              type: integer
              label: 'Visibility'
            pages:
              type: string
              label: 'Show block on specific pages'
        role:
          type: mapping
          label: 'Roles'
          mapping:
            roles:
              type: sequence
              label: 'Show block for specific roles'
              sequence:
                - type: string
                  label: 'Role'
        node_type:
          type: mapping
          label: 'Content types'
          mapping:
            types:
              type: sequence
              label: 'Show block for specific content types'
              sequence:
               - type: string
                 label: 'Node type'
        visibility__active_tab:
          type: string
          label: 'Visibility active tab'
    plugin:
      type: string
      label: 'Plugin'
    settings:
      type: mapping
      label: 'Block settings'
      mapping:
        admin_label:
          type: label
          label: 'Description'
        cache:
          type: integer
          label: 'Cache'
        status:
          type: boolean
          label: 'Status'
        info:
          type: label
          label: 'Admin info'
        view_mode:
          type: string
          label: 'View mode'
    langcode:
      type: string
      label: 'Language code'

Proposed resolution

Update block.schema.yml to make it align with current block config.

Files: 
CommentFileSizeAuthor
#1 2035839-block-schema-1.patch870 bytesvijaycs85
PASSED: [[SimpleTest]]: [MySQL] 56,506 pass(es). View

Comments

vijaycs85’s picture

FileSize
870 bytes
PASSED: [[SimpleTest]]: [MySQL] 56,506 pass(es). View

Initial patch...

vijaycs85’s picture

Status: Active » Needs review
Gábor Hojtsy’s picture

Admin label not saved anymore with config?

Gábor Hojtsy’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix, +sprint, +blocker

Cross-checked with current config. This causes the bug seen in #2044389: [META] Fix broken configuration translation pages.

Gábor Hojtsy’s picture

Issue tags: +language-config

Moar tags!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 982488c and pushed to 8.x. Thanks!

Gábor Hojtsy’s picture

Issue tags: -sprint

Yay, thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.