feat(api): family relations between persons (spec 063 T001-T002) #1236

Merged
chris merged 1 commit from feat/063-person-relations-api into main 2026-10-15 19:02:55 +02:00
Owner

Spec 063 — family relations between persons (backend lane).

  • Migration V164: person_relations table (13 storable types, CHECK constraint, UNIQUE(subject, related, type), inverse types derived at read time, never stored)
  • PersonRelationService + PersonRelationController: GET/POST/DELETE under /api/persons/{id}/relations, session auth like SelfPerson, visibility-checked on both ends (404 no existence leak), 409 exact or inverse duplicate with conflictKind, 400 unknown type / same instance
  • 409 ProblemDetail body: detail = human message, conflictKind + conflictingRelationType properties (en/de/da messages)
  • Tests: controller 7, Testcontainers Postgres incl. full Flyway chain through V164 9, migration file checks 3 — all green; SelfPerson/ApiExceptionHandler/MigrationTest regression green

Closes spec 063 T001, T002. Wire contract consumed by feat/063-person-relations-web (merge API first).

Spec 063 — family relations between persons (backend lane). - Migration V164: person_relations table (13 storable types, CHECK constraint, UNIQUE(subject, related, type), inverse types derived at read time, never stored) - PersonRelationService + PersonRelationController: GET/POST/DELETE under /api/persons/{id}/relations, session auth like SelfPerson, visibility-checked on both ends (404 no existence leak), 409 exact or inverse duplicate with conflictKind, 400 unknown type / same instance - 409 ProblemDetail body: detail = human message, conflictKind + conflictingRelationType properties (en/de/da messages) - Tests: controller 7, Testcontainers Postgres incl. full Flyway chain through V164 9, migration file checks 3 — all green; SelfPerson/ApiExceptionHandler/MigrationTest regression green Closes spec 063 T001, T002. Wire contract consumed by feat/063-person-relations-web (merge API first).
feat(api): family relations between persons (spec 063 T001-T002)
All checks were successful
Wiki Sync / Sync wiki from docs (push) Has been skipped
Build and Deploy / Detect changed services and test scopes (push) Successful in 3s
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Build Android CI image (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Smoke people worker (push) Has been skipped
Build and Deploy / Build postgres image (push) Has been skipped
Build and Deploy / Android unit tests and debug APK (push) Has been skipped
Build and Deploy / Deploy postgres (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Successful in 11m39s
ea35a578ea
person_relations table (13 storable types, inverse derived at read time),
PersonRelationService + Controller (GET/POST/DELETE under
/api/persons/{id}/relations), visibility-checked both ends, 409 on exact
or inverse duplicates. Tests: controller (7), Testcontainers Postgres
incl. Flyway chain through V164 (9), migration file checks (3).
chris merged commit abb19393cb into main 2026-10-15 19:02:55 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories!1236
No description provided.