Content Moderation should only validate its own workflow type

Created on 22 January 2024, 9 months ago
Updated 15 March 2024, 7 months ago

Problem/Motivation

\Drupal\content_moderation\EventSubscriber\ConfigImportSubscriber::onConfigImporterValidate() prevents some invalid workflow config changes, but it applies these checks broadly to every workflow type.

Steps to reproduce

Create a workflow that's not using the content_moderation workflow type plugin with an empty type_settings configuration, store it in config, then update the workflow to populate the type_settings property and try to import that config.

Proposed resolution

Restrict the validation to the content_moderation workflow type plugin.

Merge request link

Remaining tasks

Review.

User interface changes

Nope.

API changes

Nope.

Data model changes

Nope.

Release notes snippet

Nope.

πŸ› Bug report
Status

Fixed

Version

11.0 πŸ”₯

Component
Content moderationΒ  β†’

Last updated about 14 hours ago

  • Maintained by
  • πŸ‡¦πŸ‡ΊAustralia @Sam152
Created by

πŸ‡·πŸ‡΄Romania amateescu

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