Service Layer medium complexity backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Backend service that processes a mentor's resume request, updating the status record from paused to active and re-enabling all module-gated capabilities suspended during the pause period. It orchestrates coordinator notification via the push-notifications integration and ensures the mentor is reinstated in assignment pools and coordinator dashboards. No coordinator approval is required; the action is applied immediately upon request.

Feature: Resume Function

resume-status-service

Sources & reasoning

The pause-resume lifecycle is a single conceptual requirement from §2.3. Resume is the explicit return path; without it, pause is a one-way door and the retention goal is not met. The blueprint assigns [v1.0] matching Fase 2, consistent with the pause feature. The low complexity reflects that it reuses the same status service and notification infrastructure as pause.

  • docs/source/likeperson.md · line 80
    Likepersoner skal kunne sette seg på pause (midlertidig deaktivering) uten å melde seg ut. Koordinator må varsles.

Responsibilities

  • Update mentor status from paused to active in the database
  • Re-enable all capabilities that were gated during the pause period
  • Trigger coordinator notification on successful resumption
  • Restore mentor visibility in assignment pools and coordinator dashboards
  • Validate that the requesting mentor is currently in a paused state before processing

Interfaces

resumeMentor(mentorId: string): Promise<MentorStatus>
notifyCoordinator(mentorId: string): Promise<void>
restoreCapabilities(mentorId: string): Promise<void>
getMentorPauseState(mentorId: string): Promise<PauseState>

Related Data Entities (1)

Data entities managed by this component