Don't store answers for no answer activities

Created on 10 September 2024, 3 months ago

Problem/Motivation

Some activities (currently only the "no answer" one but there can potentially be more) don't store any answer data and are basically read-only. We shouldn't need to store answer entities for them.

Proposed resolution

Don't store answer entities for activities with answer plugins that don't store data.
Update Drupal\lms\TrainingManager::updateLessonStatus() to account for that. If possible, don't instantiate all the answer plugins to check but have that information stored in their definitions instead.

📌 Task
Status

Active

Version

1.0

Component

Activities and answers

Created by

🇵🇱Poland Graber

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

Comments & Activities

Production build 0.71.5 2024