NEC-142: Portal plan or seat changes on a fulfilled order may never reach the shard #202
No reviewers
Labels
No labels
area:docs
area:identity
area:ops
area:plugin
area:server
channel:community
channel:direct
channel:owned
channel:press
channel:social
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda!202
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-nec-142-portal-plan-or-seat-changes-on-a-fulfill"
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?
Task: NEC-142 — https://projectron.nerchure.com/tasks/142
Billing webhooks applied every change to the order row and discarded what the shard had to hear, so on a live order a seat or plan bought in the provider's portal was charged and never granted, and past-due notices, dispute suspensions and cancellations never reached the shard. Changes are now queued in shard_intents in the webhook's transaction and delivered by the hourly tick, oldest first per organisation. A refused change holds its organisation with no time limit (user decision): it is reported after a day, gauged, and can be abandoned by an operator with a reason via /api/admin/billing/intents; docs/support-runbook.md has the recovery steps. Changes from a superseded order are not sent, a drop to free falls back to any order still being paid for, drops clear the paid seat cap, and a scheduled change that crosses a webhook no longer overwrites the row. Rides along NEC-145: changes now go to the shard the directory says the account lives on, and wait while it is mid-move.
Spec:
docs/changes/NEC-142-portal-changes-reach-shard/spec.mdAlso fixes NEC-145: Billing changes go to the old shard after an account moves
Changelog
Seat and plan changes made in the billing portal now reach your organisation, as do payment-failure notices and cancellations, including after the organisation moves to another server.