Skip to content

feat(transit): change transit key deletion to use name instead of UUID#120

Merged
allisson merged 1 commit intomainfrom
transit-key-fix
Mar 9, 2026
Merged

feat(transit): change transit key deletion to use name instead of UUID#120
allisson merged 1 commit intomainfrom
transit-key-fix

Conversation

@allisson
Copy link
Owner

@allisson allisson commented Mar 9, 2026

This change aligns the transit key deletion endpoint with the rest of the Transit Engine API, which uses the key name as the primary identifier rather than a UUID.

  • Updated TransitKeyRepository and TransitKeyUseCase interfaces to change the Delete signature from uuid.UUID to string (name).
  • Implemented soft-delete logic in PostgreSQL and MySQL repositories to mark all versions of a transit key as deleted by name.
  • Updated TransitKeyHandler and route registration to use DELETE /v1/transit/keys/:name.
  • Refactored unit, repository, and integration tests to support name-based deletion and verified that all versions are correctly soft-deleted.
  • Updated OpenAPI specification, Engine documentation, and Authorization policies to reflect the new endpoint signature.
  • Cleaned up unused UUID imports and variables across the transit module and test suites.

This change aligns the transit key deletion endpoint with the rest of the
Transit Engine API, which uses the key name as the primary identifier
rather than a UUID.

- Updated TransitKeyRepository and TransitKeyUseCase interfaces to change
  the Delete signature from uuid.UUID to string (name).
- Implemented soft-delete logic in PostgreSQL and MySQL repositories to
  mark all versions of a transit key as deleted by name.
- Updated TransitKeyHandler and route registration to use
  DELETE /v1/transit/keys/:name.
- Refactored unit, repository, and integration tests to support
  name-based deletion and verified that all versions are correctly
  soft-deleted.
- Updated OpenAPI specification, Engine documentation, and Authorization
  policies to reflect the new endpoint signature.
- Cleaned up unused UUID imports and variables across the transit module
  and test suites.
@allisson allisson merged commit 2d6b9c1 into main Mar 9, 2026
3 checks passed
@allisson allisson deleted the transit-key-fix branch March 9, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant