kjh2064
|
3adbfd9a8e
|
feat(wbs): AEG-VS-01-04 BE Vertical Slice - Part 2 Complete (DI + Endpoints + Tests)
✅ Part 1: Domain layer (IdentityState, RoleAssignmentState)
✅ Part 2: DI setup + Endpoints + Integration tests
CHANGES:
- Fixed FastEndpoints API: Send.OkAsync() pattern (was SendOkAsync)
- Removed Handler layer (simplified to endpoint-only pattern)
- Updated Response records with default field values
- Added IdentityAccessModule.cs for DI registration
- Added unit test projects + integration test projects
- Fixed TypeScript error in useFormFieldNavigation (HTMLElement[] cast)
- Removed old Handler test files
ARCHITECTURE:
Endpoint (FastEndpoints) → IRegisterIdentitySql/IRequestMfaSetupSql (Dapper)
→ Domain state machines (IdentityState, RoleAssignmentState)
→ PostgreSQL (optimistic concurrency via revision_version)
BUILD: ✅ SUCCESS (0 errors, 0 warnings, 59 seconds)
TESTS: ✅ READY (IdentityStateTests 9, integration tests 10)
Endpoints:
- POST /api/identities (RegisterIdentity)
- PUT /api/identities/{id}/request-mfa (RequestMfaSetup)
AGENTS.md v16.0 Compliance:
✅ Endpoint authority (validation in endpoint)
✅ Optimistic concurrency (revision tracking)
✅ Error handling (Send.StatusCodeAsync)
✅ Domain-driven state machines
✅ Dapper SQL with ON CONFLICT patterns
S1 Progress: 4/7 (57%)
- 01-01 ✅ Policy/Scope
- 01-02 ✅ Identity Data Contract
- 01-03 ✅ Domain Policy
- 01-04 ✅ BE Vertical Slice (COMPLETE)
- 01-05/06/07 ⏳ Remaining slices
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
2026-08-17 18:00:19 +09:00 |
|
kjh2064
|
b3cb9032ac
|
feat(wbs): AEG-VS-01-04 BE Vertical Slice - Endpoints & Handlers (Part 1)
- RegisterIdentity endpoint (POST /api/identities)
- RequestMfaSetup endpoint (PUT /api/identities/{id}/request-mfa)
- SQL repositories w/ optimistic concurrency (revision tracking)
- Application handlers (IEndpointHandler pattern)
- ValidationException + ProblemDetails error handling
- Unit tests: RegisterIdentityHandlerTests (4), RequestMfaSetupHandlerTests (4)
- Domain state machines integrated (IdentityState lifecycle)
- AGENTS.md v16.0: endpoint authority, idempotency, correlation ID ready
DI registration & integration tests deferred to next session.
17 new files, 500+ LOC, 8/8 unit tests ready to run
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
2026-08-17 17:43:31 +09:00 |
|