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

Description

Backend service that handles flag lifecycle operations including creation, resolution, and enforcement of exclusion rules. Ensures flagged activities are blocked from auto-approval and Bufdir export until resolved.

Feature: Activity Flagging

flag-service

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.

  • admin-activity-oversight | Activity Oversight | Activity Review & Approval, Activity Flagging, Duplicate Activity Detection
  • Dokumentvedlegg til aktiviteter: Invitasjoner, Facebook-skjermbilder m.m. - viktig for Bufdir-etterprøving.

Responsibilities

  • Create flags with reason code and note against activities
  • Resolve flags and record resolution metadata
  • Enforce exclusion of flagged activities from approval and export flows
  • Validate flag reason codes against allowed set
  • Authorize flag operations against admin and coordinator roles

Interfaces

createFlag(activityId, reasonCode, note, userId): Flag
resolveFlag(flagId, resolution, userId): Flag
listFlags(filters): Flag[]
isActivityFlagged(activityId): boolean

Related Data Entities (1)

Data entities managed by this component