Data Layer medium complexity backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Persistent data layer holding mentor activation state and pause history. Provides authoritative status queries for matching, rosters, and visibility checks across the system.

Feature: Pause Function

mentor-status-store

Sources & reasoning

Phase 2 / Core Product per matrix row (Fase 2) and §5 Phase 2 listing 'Pausefunksjon og bulkregistrering for koordinatorer'. Three orgs flagged it as a retention need; coordinator notification is an explicit requirement.

  • Pausefunksjon for likepersoner (NHF + HLF + Barnekreftforeningen). Likepersoner skal kunne sette seg på pause (midlertidig deaktivering) uten å melde seg ut. Koordinator må varsles.
  • Pausefunksjon for likepersoner | ✓ | ✓ | - | ✓ | ✓ | SHOULD HAVE | 2

Responsibilities

  • Persist active/paused state per mentor
  • Record pause and resume timestamps for audit
  • Expose status queries to matching and roster components
  • Maintain referential integrity with mentor profiles
  • Support batch status lookups for roster generation

Interfaces

setStatus(mentorId, status): void
getStatus(mentorId): MentorStatus
getStatusHistory(mentorId): StatusEvent[]
getActiveMentors(): MentorId[]