fix(tenants): Setting the current status again is a no-op #75

Merged
sharang merged 1 commits from fix/status-unchanged-noop into main 2026-10-14 11:09:30 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 34783ec3e0 fix(tenants): Setting the current status again is a no-op
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 25m40s
ci / image (pull_request) Skipped
POST /v1/tenants/{id}/status with the status the tenant already has wrote
an update, a tenant.status_changed audit entry ("trial" → "trial") and a
Keycloak sync. Staff picking "Apply" instead of "Extend" on a trial then saw
an audit entry but no change. Now the call answers 200 with the unchanged
tenant and does nothing else, so repeating it stays harmless.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-14 12:29:07 +02:00