• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

raystack / frontier / 32450484349
49%
main: 49%

Build:
Build:
LAST BUILD BRANCH: org-delete-check-api
DEFAULT BRANCH: main
Ran 21 Aug 2026 05:30AM UTC
Jobs 1
Files 305
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Aug 2026 05:25AM UTC coverage: 48.919% (+0.1%) from 48.804%
32450484349

Pull #1857

github

whoAbhishekSah
feat(deleter): clear or report org delete blockers up front

The delete first checks everything that blocks it and returns all the
reasons together as one failed_precondition response: a running
subscription on a paid plan (the caller downgrades it to the standard
plan), invoices that still ask for money, and a negative token balance
which support has to settle. Plans resolve lazily, only when a running
subscription references one. When nothing blocks, subscriptions still
running on a free plan are canceled immediately with unbilled usage
invoiced on the spot — tolerating copies already gone on the provider —
and the invoice check runs again so a final invoice still blocks. The
plan is judged again in that pass, so a paid subscription created
mid-delete blocks instead of being canceled. Unused tokens do not
block: the delete forfeits them and writes the amount to an audit
record. An already-deleted org returns not found before any checks run.

Invoices are judged straight from the billing provider through a new
cheap ListPayableOnProvider (three status-filtered pages, no local
writes) instead of a full sync, and drafts with a non-zero amount now
block too: the provider finalizes them shortly, and deleting inside
that window would silently lose the charge.
Pull Request #1857: feat(deleter): clear or report org delete blockers up front

172 of 244 new or added lines in 5 files covered. (70.49%)

2 existing lines in 1 file now uncovered.

19728 of 40328 relevant lines covered (48.92%)

15.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
37
8.02
-0.5% billing/invoice/service.go
27
80.0
2.97% core/deleter/service.go
6
0.0
core/deleter/deleter.go
1
0.0
0.0% cmd/serve.go
1
96.97
-3.03% internal/api/v1beta1connect/deleter.go

Coverage Regressions

Lines Coverage ∆ File
2
80.0
2.97% core/deleter/service.go
Jobs
ID Job ID Ran Files Coverage
1 32450484349.1 21 Aug 2026 05:30AM UTC 305
48.92
GitHub Action Run
Source Files on build 32450484349
  • Tree
  • List 305
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1857
  • PR Base - org-delete-preflight-mocks (#32450482289)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc