Add support for groups of config values

Created on 14 April 2025, 10 days ago

Problem/Motivation

Some configs contain inner groups of values, but the module just ignores them and do not show on the form.

Steps to reproduce

Try to render a form for the schema like this:

my_module.api_settings:
  type: config_object
  label: 'My API Settings'
  translatable: false
  mapping:
    use_api_calls:
      type: boolean
      label: 'Use API Calls'
    api_general:
      type: config_object
      label: 'General API Config'
      mapping:
        endpoint:
          type: string
          label: 'Endpoint'
        username:
          type: string
          label: 'Username'
        password:
          type: string
          label: 'Password'
    api_astigmatism:
      type: config_object
      label: 'Additional API Config'
      mapping:
        endpoint:
          type: string
          label: 'Endpoint'
        api_key:
          type: string
          label: 'API Key'

Proposed resolution

We can handle the config_object type as a fieldset and render all inner values inside it.

Remaining tasks

I'll prepare an MR with this feature.

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡¦πŸ‡²Armenia murz Yerevan, Armenia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024