Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

[Write | LearningMaterialsTasks] Create slice UncompleteTask -> TaskWasUncompleted #230

@MateuszNaKodach

Description

@MateuszNaKodach

Dependencies (blockers)

Subtasks
Command definition:

  • 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

Screenshot from MIRO (Event Modeling):
CodersCamp App _ Event Storming - Frame 3 (2)

Metadata

Metadata

Labels

scope: 🛰 apiRequires changes in the api workspacetype: ✨ featAnother new, shiny thing we can have in our app

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions