fix(settings): drop legacy DELETE /settings/{id} - matchit conflict with /settings/{category} #88
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-server!88
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/settings-route-conflict"
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?
The PMS-113 PR (#87) added
GET /settings/{category}for the new category-scoped tenant_settings endpoint but left the legacyDELETE /settings/{id}route registered. Axum 0.8's matchit router treats/settings/{id}and/settings/{category}as the same path shape (the param name doesn't matter, only the segment count) and refuses to register both at router build time. Every integration test that boots the router now panics:at src/modules/settings/routes.rs:44 - 10 of 10 auth tests fail in CI.
The new per-key
DELETE /settings/{category}/{key}(already shipped in PMS-113) is the canonical delete path; the legacy by-id form was redundant. Drop the route + the orphaneddelete_settinghandler + the orphanedSettingsService::delete_tenant_settingmethod (no other callers).Verified locally:
cargo test --test auth deferred to CI; the dev-01 dev stack is still down.
The mokosh-clients SPA does not consume
DELETE /api/v1/settings/{id}anywhere (verified by grep); the only/settings/...references in the SPA are client-side Dioxus router paths, not API consumers.