You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Create command type UncompleteTask in modules/shared/commands
Create UncompleteTaskApplicationCommand class in modules/shared/commands
Domain logic:
Create function uncompleteTask in modules/write/learning-materials-tasks/domain.
Return TaskWasUncompleted on every UncompleteTask just if task was already completed.
Extend function completeTask by taking into account TaskWasUncompleted
Application logic:
Create CommandHandler for UncompleteTaskApplicationCommand
Execute domain logic for uncomplete task. Event stream name should be in format LearningMaterialsTasks_${learningMaterialsId}
Presentation logic:
Extend ProcessStEventsRestController endpoint POST process-st/events/task-checked-unchecked with following behavior: Execute UncompleteTask command on TaskCheckedUnchecked webook event if task status is NotCompleted