Commit 9cb611d
committed
refactor(webapp): cloud-driven basin sync, drop reconcile worker
The cloud billing app now drives basin lifecycle operations via a
single webapp admin endpoint instead of the webapp enqueuing a
reconcile worker that called back into billing to resolve plan +
retention. Plan vocabulary now lives in cloud
(`Limits.streamBasinRetention`); S2 access stays in the webapp.
New: POST /admin/api/v1/orgs/:orgId/stream-basin
- { action: "ensure", retention } — provision or PATCH retention
- { action: "deprovision" } — null the column
Helpers: ensureBasinForOrg / deprovisionBasinForOrg in the
provisioner.
Removed:
- streamBasinRetentionByPlan.server.ts (plan vocabulary)
- v3.reconcileStreamBasinForOrg worker job
- enqueueStreamBasinReconcile from the three setPlan branches
- admin.api.v1.stream-basins.{backfill,reconfigure}.ts (replaced by
the per-org sync endpoint)
- REALTIME_STREAMS_BASIN_RETENTION_FREE/HOBBY/PRO env vars
The .server-changes entry stays accurate — feature behaviour is
unchanged from a customer's perspective.1 parent 684fc2e commit 9cb611d
9 files changed
Lines changed: 112 additions & 394 deletions
File tree
- .server-changes
- apps/webapp/app
- routes
- services
- realtime
- v3
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
1526 | | - | |
1527 | | - | |
1528 | | - | |
1529 | | - | |
1530 | | - | |
1531 | 1526 | | |
1532 | 1527 | | |
1533 | 1528 | | |
| |||
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
Lines changed: 0 additions & 146 deletions
This file was deleted.
Lines changed: 0 additions & 70 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
407 | 406 | | |
408 | 407 | | |
409 | 408 | | |
| |||
421 | 420 | | |
422 | 421 | | |
423 | 422 | | |
424 | | - | |
425 | 423 | | |
426 | 424 | | |
427 | 425 | | |
428 | 426 | | |
429 | 427 | | |
430 | 428 | | |
431 | | - | |
432 | 429 | | |
433 | 430 | | |
434 | 431 | | |
435 | 432 | | |
436 | 433 | | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | 434 | | |
457 | 435 | | |
458 | 436 | | |
| |||
0 commit comments