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

raystack / frontier / 32462394554
49%
main: 49%

Build:
Build:
LAST BUILD BRANCH: org-delete-check-api
DEFAULT BRANCH: main
Ran 21 Aug 2026 08:21AM UTC
Jobs 1
Files 306
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 08:16AM UTC coverage: 49.004% (+0.09%) from 48.912%
32462394554

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 40527 relevant lines covered (49.0%)

15.67 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 32462394554.1 21 Aug 2026 08:21AM UTC 306
49.0
GitHub Action Run
Source Files on build 32462394554
  • Tree
  • List 306
  • 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 (#32462377017)
  • 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