Missing Config Schema

Created on 3 October 2024, about 2 months ago

Problem/Motivation

The module does have a schema file, but it seems to be missing some keys. With configuration inspector installed, and the send email field added to a view, I get undefined config entries like:

display.page_5.display_options.fields.views_send_bulk_form.action_title

display.page_5.display_options.fields.views_send_bulk_form.include_exclude

display.page_5.display_options.fields.views_send_bulk_form.selected_actions

display.page_5.display_options.fields.views_send_bulk_form.enable_excluded_fields

Steps to reproduce

Install the module with config inspector. Add a send email field to a view. It will generate the config with undefined schema entries.

Proposed resolution

Add to the existing schema file, or another file in the schema folder, something like:

views.field.views_send_bulk_form:
  type: views_field
  label: "Views send bulk form"
  mapping:
    action_title:
      type: label
      label: "Action title"
    include_exclude:
      type: label
      label: "Include / Exclude"
    selected_actions: {}
    enable_excluded_fields:
      type: boolean
      label: "Use excluded fields as tokens"

I'm just starting to learn more about how config schemas work, so there might be ways to make that better - at least write better labels - but it did resolve all of the errors except selected_actions. Not sure what I'm missing with that one. I'm also not even sure what most of these keys are doing, because the only one that I can see on the form is enable_excluded_fields.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada ryanrobinson_wlu

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

Comments & Activities

Production build 0.71.5 2024