fix(billing): drop the trial and participant tiers when payment grants tier_pro #132
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment!132
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/drop-trial-group-on-payment"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Closes #131
A trial user who paid kept
tier_trialnext totier_pro. Paying now removestier_trialandtier_participantright after thetier_progrant. Removal is idempotent, so a missing membership is fine. Expiry and cancellation still fall back as before.A failed removal does not block the payment. It logs
[grant] could not remove <group>: <error>and continues. The reconciler pickspaidwhile both groups are present, so quota stays correct. A failure to addtier_prostill rolls back, as before.The removal works once
bitborg-billingmay managetier_trialandtier_participant(bitborg/bitborg-infra#667). Until that is applied, payments succeed, the trial group stays and the warning is logged.Tests: a paid checkout calls
removeFromGroupfortier_trialandtier_participant, never fortier_pro. When removingtier_trialfails with a 403, the grant still succeeds and the charge is applied. Existing revocation tests counttier_proremovals only. 420 tests pass. Version 0.10.1.