Flag Store
Component Detail
Data Layer
medium complexity
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Persistence layer for flag records associated with activities. Stores reason codes, notes, timestamps, creator identity, and resolution state.
flag-store
Sources & reasoning
Required by §8 canonical taxonomy under Activity Oversight area. Supports the Bufdir-etterprøving need from §3.2 (NHF). Not in MVP admin scope (§5) which is restricted to user admin and basic overview; aligns to Core Product alongside the rest of the oversight workflow.
-
docs/source/likeperson.md · line 375admin-activity-oversight | Activity Oversight | Activity Review & Approval, Activity Flagging, Duplicate Activity Detection
-
docs/source/likeperson.md · line 68Dokumentvedlegg til aktiviteter: Invitasjoner, Facebook-skjermbilder m.m. - viktig for Bufdir-etterprøving.
Responsibilities
- Persist flag records linked to activity IDs
- Query flags by activity, status, reason, or reviewer
- Update flag status on resolution
- Maintain audit trail of flag creation and resolution events
- Index flags for efficient panel rendering and export filtering
Interfaces
insertFlag(flag): FlagId
getFlagsByActivity(activityId): Flag[]
getFlagsByStatus(status): Flag[]
updateFlagStatus(flagId, status, resolvedBy): void