Merge Single and multiple choice plugins into one configurable

Created on 12 September 2025, 24 days ago

Problem/Motivation

Now that we have the ability to configure Activity - Answer plugins, we can have one selection plugin with single / multiple choice configuration instead of two serving the same purpose.

Proposed resolution

  1. Merge the two plugins into one plugin class.
  2. Add an update hook that will change the plugin and add relevant configuration for existing activity type entities.
  3. Update QA data in /tests/data: add activity_types.yml file with configured QA activity types used in automated tests.
  4. Update Drupal\lms\LmsContentImporter::installActivityTypes() to use the config from the activity_types.yml file.
  5. Update automated tests (Drupal\Tests\lms\FunctionalJavascript\GeneralLmsTest::adminTest()) to use configuration from the activity_types.yml file when creating activity types.

User interface changes

Instead of two plugin options (in addition to other plugins) when selecting a plugin on activity type add form we'll have only one but with a configuration of single or multiple choice.

Remaining tasks

📌 Task
Status

Active

Version

1.1

Component

Activities and answers

Created by

🇵🇱Poland Graber

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.

Production build 0.71.5 2024