Add config schema for field copy

Created on 21 January 2020, over 5 years ago
Updated 30 July 2025, 3 days ago

Configuration Inspector (and Drupal status) shows some warning/errors when loading/syncing Display Field Copy configs form a YAML file. Reason is the 'type' this module provides is not defined and DS depends on [%parent.type] to assign a type to the properties config for its settings. Fix is quite simple, attaching a patch.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States diegopino

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

Merge Requests

Comments & Activities

Not all content is available!

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

  • πŸ‡¦πŸ‡ΊAustralia jannakha Brisbane!

    The patch is incomplete:

    - example of config for field copy:

    id: spec_id_copy
    label: 'Spec ID copy'
    ui_limit: 'some_content_type|*'
    type: display_field_copy
    type_label: 'Copy field'
    entities:
      node: node
    properties:
      field_id: node.some_content_type.field_specification_id
    

    - use example from DS on how to define schema for a field ./ds/config/schema/ds.field.schema.yml

  • πŸ‡¦πŸ‡ΊAustralia jannakha Brisbane!

    I take it back - patch is complete and was ported to an MR. Thank you @diegopino for your contribution!

    MR is good for review.

Production build 0.71.5 2024