Compare commits
base: eho:feat/75-approval-flow
eho:main
eho:feat/13-behandel-decision-model
eho:chore/release-2026.07.0
eho:feat/78-reference-correlation
eho:feat/75-approval-flow
eho:feat/10-openbaar-portal
eho:chore/73-ci-speedups
eho:feat/68-e2e
eho:feat/67-self-service-form
eho:feat/66-api-client
eho:feat/65-nx-workspace
eho:feat/8-bff
eho:feat/6-domain-service
eho:feat/7-event-subscriber-projection
eho:feat/56-nrc-notification-wiring
eho:test/46-acl-openzaak-integration
eho:feat/47-acl-mutation-baseline
eho:ci/30-gitea-actions-ci
eho:feat/5-acl-open-zaak
eho:feat/4-flowable
eho:feat/3-keycloak
eho:feat/2-opennotificaties
eho:feat/2-catalogus-seed
eho:feat/10-openzaak-compose
eho:feat/32-docs-scaffold
eho:feat/31-contributor-workflow
eho:feat/30-gitea-actions-ci
eho:feat/29-bff-docker-compose
eho:chore/remove-bootstrap-scripts
eho:feat/28-bff-health
eho:docs/split-s00
..
compare: eho:1c185e6686a6c6b20f4d6d445c4d85814cd519d1
eho:feat/13-behandel-decision-model
eho:main
eho:chore/release-2026.07.0
eho:feat/78-reference-correlation
eho:feat/75-approval-flow
eho:feat/10-openbaar-portal
eho:chore/73-ci-speedups
eho:feat/68-e2e
eho:feat/67-self-service-form
eho:feat/66-api-client
eho:feat/65-nx-workspace
eho:feat/8-bff
eho:feat/6-domain-service
eho:feat/7-event-subscriber-projection
eho:feat/56-nrc-notification-wiring
eho:test/46-acl-openzaak-integration
eho:feat/47-acl-mutation-baseline
eho:ci/30-gitea-actions-ci
eho:feat/5-acl-open-zaak
eho:feat/4-flowable
eho:feat/3-keycloak
eho:feat/2-opennotificaties
eho:feat/2-catalogus-seed
eho:feat/10-openzaak-compose
eho:feat/32-docs-scaffold
eho:feat/31-contributor-workflow
eho:feat/30-gitea-actions-ci
eho:feat/29-bff-docker-compose
eho:chore/remove-bootstrap-scripts
eho:feat/28-bff-health
eho:docs/split-s00
1 Commits
feat/75-ap
...
1c185e6686
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 1c185e6686 |
S-09b: Approval flow — temp admin endpoint + status transition to projection (#77)
All checks were successful
## What & why S-09b (#75, split from #10) — the **approval flow** that completes the walking skeleton. A behandelaar can now approve a submitted registration; the entry flips from `INGEDIEND` to `INGESCHREVEN` in the public register. Flow: `POST /registrations/{id}/approve` (domain) → ACL sets the zaak eindstatus (ZGW `/statussen`) → OpenZaak → NRC → event-subscriber → projection → openbaar. ## Changes (bottom-up, each red→green TDD) - **Domain** — `RegistrationStatus.Ingeschreven` + `Registration.Approve()` (guards: opened zaak, only from INGEDIEND); `ApproveRegistration` use case (idempotent) + temp `POST /registrations/{id}/approve` endpoint; `IAclClient.ApproveZaakAsync`. - **ACL** — resolves the zaaktype's **eindstatus** from the catalogus (`isEindstatus` / highest volgnummer) and POSTs a ZGW status; exposed as `POST /statussen`. Unit + real-OpenZaak integration test. - **Event-subscriber** — binds NRC `hoofdObject`, projects a `status`/`create` as `INGESCHREVEN` keyed on the zaak (updates the existing row), **without reading OpenZaak** (§8.1). Retains the ZGW `resource` in the log (new column + EF migration) so a rebuild reproduces the status. - **e2e** — extended: submit → public INGEDIEND → approve → public INGESCHREVEN. - **Docs** — ADR-0011 (the two non-obvious decisions + the walking-skeleton assumption) + demo note. ## Key decisions (see ADR-0011) - **ACL discovers the eindstatus** (chosen over injecting a statustype URL): no new config/seed plumbing, domain stays ZGW-ignorant. - **Any post-creation status-set ⇒ INGESCHREVEN**: in the walking skeleton the only status ever set after creation is the approval, and the subscriber may not read ZGW — documented to tighten when more transitions arrive (S-12+). ## Verification - All .NET unit suites green locally (domain 47, acl 11, event-subscriber 14, bff 16, acceptance 7); Release build + `dotnet format` clean. - No new compose config (the eindstatus-discovery approach avoided it). - The real-OpenZaak integration test (ACL status-set) and the full submit→approve→visible e2e run in CI `verify-stack` (live NRC→projection + selectielijst egress, not reproducible locally). closes #75 Reviewed-on: #77 |