[VS-NfD] Add classification as a page field with migration and instance default
#204
Labels
No Label
area:auth
area:docs
area:export
area:ops
area:storage
area:supply-chain
auth
backend
blocked
collab
deployment
docs
effort:L
effort:M
effort:S
frontend
plugins
qa
vs-nfd
vs-nfd:blocker
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stwaidele/dorfteich#204
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan reference:
20-massnahmenplan.md-> P1-2ADR: ADR 0022
Effort: M (2 AT)
Depends on: —
Context
Marking classified content is the one VS-NfD requirement that genuinely
belongs in the application: only it knows which page carries which
level. Separating the levels stays outside (one instance per level,
ADR 0022) — this field is the marking, not a protection mechanism.
Current state
model Page(apps/api/prisma/schema.prisma:263–300) has noclassification field. Metadata is
title,slug,sortKey,parentId,timestamps and relations.
Label(:423–437) is pond-scoped (pondId), hierarchical anduser-editable — the reason ADR 0022 rejects labels as the carrier.
instance_settings(:17–23) is the established place for aninstance-wide default (pattern:
upload.svgPolicy,api.enabled).Acceptance criteria
Pagewith an explicit "unclassified" default;migration backfills existing pages to it.
documented and admin-visible.
metadata the frontend already loads (no extra request per page).
asserted by a test, because ADR 0022 makes the ACL claim explicitly
not a protection mechanism.
docs/architecture/data-model.mddocuments the field; ADR 0022 isreferenced from it.
Out of scope
Inheritance (#205), any output marking (#206–#212), and read auditing (M6).
Done in PR #263 (commit
183faf7, CI run 538 green, fast-forward merged on Stefan's standing merge instruction for this session).Evidence against the acceptance criteria: