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

vocdoni / saas-backend / 28449634629
63%
main: 63%

Build:
Build:
LAST BUILD BRANCH: feat/embedded-meta
DEFAULT BRANCH: main
Ran 30 Jun 2026 02:00PM UTC
Jobs 1
Files 115
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

30 Jun 2026 01:53PM UTC coverage: 62.788% (+0.04%) from 62.75%
28449634629

Pull #565

github

emmdim
fix(api): enforce integrator process quota on the /transactions path

PR #557 added an `if !managed(org)` skip in HasTxPermission, deferring the
managed-org process-count check to the integrator's aggregate ManagedProcesses
quota (ReserveManagedPublish) "at publish time". But that reservation was only
wired into publishProcessHandler (/process/{id}/publish); the remote-signer
/transactions path (signTxHandler) — the primary SDK flow — was left calling
HasTxPermission with the check skipped and never reserving.

Result: managed orgs could mint unlimited non-test elections via /transactions,
bypassing the integrator cap, and /integrator under-reported ManagedProcesses.

Extract the reserve logic from publishProcessHandler into a shared
reserveManagedProcessSlot helper and call it from both NEW_PROCESS entry points
so they cannot drift apart again. signTxHandler rolls the reservation back if
signing fails, mirroring the publish path.

Adds TestIntegratorProcessQuotaViaTransactions covering the counter increment,
the aggregate cap, and the test-sized exemption on /transactions.
Pull Request #565: fix(api): enforce integrator process quota on the /transactions path

36 of 52 new or added lines in 2 files covered. (69.23%)

10301 of 16406 relevant lines covered (62.79%)

44.98 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
56.13
0.49% api/process.go
5
57.35
4.67% api/transaction.go
Jobs
ID Job ID Ran Files Coverage
1 28449634629.1 30 Jun 2026 02:00PM UTC 115
62.79
GitHub Action Run
Source Files on build 28449634629
  • Tree
  • List 115
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #565
  • PR Base - main (#28381058341)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc