Field States configured through the UI do not match the config schema

Created on 29 June 2018, almost 6 years ago
Updated 24 May 2023, about 1 year ago

Problem/Motivation

When editing Field States, configuration ends up looking like this:

content:
  body:
    type: text_textarea_with_summary
    weight: 31
    region: content
    settings:
      rows: 9
      placeholder: ''
      summary_rows: 3
    third_party_settings:
      field_states_ui:
        form:
          type: ''
          list:
            77104717-8962-4aff-b10d-0f55d089c5cd:
              operations:
                edit: Edit
                delete: Delete
          add: Add
        field_states:
          77104717-8962-4aff-b10d-0f55d089c5cd:
            uuid: 77104717-8962-4aff-b10d-0f55d089c5cd
            id: visible
            data:
              target: title
              comparison: filled
              value: ''
              submit: 'Add Cancel'

This does not match the configuration schema defined in config/schema

Proposed resolution

Update the generated configuration to match the config/schema.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

The generated configuration matches the config/schema.

πŸ› Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands idebr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024