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

raystack / frontier / 32705925645
49%
main: 49%

Build:
Build:
LAST BUILD BRANCH: sdk-org-delete-guards
DEFAULT BRANCH: main
Ran 24 Aug 2026 08:26AM 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

24 Aug 2026 08:21AM UTC coverage: 49.086% (+0.09%) from 48.993%
32705925645

Pull #1880

github

whoAbhishekSah
feat(deleter): email the org owners when a delete forfeits tokens

Deleting an organization forfeits any unused tokens. The owners now get
an email saying how many tokens were left, how many of those came from
purchases (complimentary grants count as spent first, refunded
purchases are taken back out), and that support can transfer the
purchased amount. The subject and body come from the billing config
(billing.token_forfeit_notice.subject/body) as Go templates with
.Amount, .Purchased, .Org, .User, and .DeletedBy, falling back to plain
built-in text — the same pattern the PAT expiry alerts use.

The notice is collected before teardown (balances, purchased shares,
and owners are gone after) and sent only after the delete fully
succeeded; a retry that lost the balances mid-teardown recovers the
amounts from the audit records the earlier attempt wrote. The owner
lookup is best-effort so the delete never depends on the policy
machinery, a forfeit with no reachable owner logs a warning, and the
per-account numbers thread into the teardown so the forfeit audit
records (amount plus purchased) match what the pre-check read without
reading balances twice. Send and render failures are logged per owner
and never fail the delete.

The org lookup at the start switched from Get to GetRaw so a disabled
org keeps its title in the email and stays deletable without a special
case.
Pull Request #1880: feat(deleter): email the org owners when a delete forfeits tokens

158 of 222 new or added lines in 3 files covered. (71.17%)

19860 of 40460 relevant lines covered (49.09%)

15.7 hits per line

Uncovered Changes

Lines Coverage ∆ File
61
65.73
core/deleter/forfeit_notice.go
2
80.36
0.85% core/deleter/service.go
1
0.0
0.0% cmd/serve.go
Jobs
ID Job ID Ran Files Coverage
1 32705925645.1 24 Aug 2026 08:26AM UTC 305
49.09
GitHub Action Run
Source Files on build 32705925645
  • Tree
  • List 305
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1880
  • PR Base - org-delete-preflight-blockers (#32705925463)
  • 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