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

raystack / frontier / 32124090226
49%
main: 49%

Build:
Build:
LAST BUILD BRANCH: org-delete-forfeit-email
DEFAULT BRANCH: main
Ran 18 Aug 2026 10:00AM 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

18 Aug 2026 09:54AM UTC coverage: 48.816% (+0.08%) from 48.735%
32124090226

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

137 of 203 new or added lines in 5 files covered. (67.49%)

2 existing lines in 1 file now uncovered.

19663 of 40280 relevant lines covered (48.82%)

15.65 hits per line

Uncovered Changes

Lines Coverage ∆ File
33
8.07
-0.44% billing/invoice/service.go
25
78.17
1.14% 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
78.17
1.14% core/deleter/service.go
Jobs
ID Job ID Ran Files Coverage
1 32124090226.1 18 Aug 2026 10:00AM UTC 305
48.82
GitHub Action Run
Source Files on build 32124090226
  • Tree
  • List 305
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1857
  • PR Base - org-delete-preflight-mocks (#32124085071)
  • 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