Problem/Motivation

Adding the G2 filters to the input formats on a Drupal 11 dev version triggers error 'stop_list' is an unknown key because filters.g2:automatic.id is g2:automatic (see config schema type filter_settings.*).

Steps to reproduce

  • Install D11
  • Composer install G2, which also installs contrib statistics and XMLRPC
  • Enable G2
  • Navigate to /admin/config/content/formats/manage/basic_html?destination=/admin/config/content/formats
  • Check the DFN filter
  • Submit
  • Observe the error

Note that the same problem does not happen on D10 with an identical workflow.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

None

API changes

None

Data model changes

Maybe a config schema change.

Issue fork g2-3439867

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fgm created an issue. See original summary.

fgm’s picture

Issue summary: View changes
fgm’s picture

The problem is the filter ID. In the existing version, the filter IDs are g2:def and g2:automatic, which does not match the schema names found to be g2_definition and g2_automatic. Aligning on those names removes this issue.

However fixing this shows that validation fails on the stop_list contents, which is expected to be a sequence but is stored as a string.

  • fgm committed e49d09ac on 8.x-1.x
    Issue #3439867 by fgm: fix filter schema for D11.
    
fgm’s picture

Status: Active » Fixed

Merged to current dev HEAD.

Status: Fixed » Closed (fixed)

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