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

vocdoni / saas-backend / 28363210535
63%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 09:52AM UTC
Jobs 1
Files 113
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

29 Jun 2026 09:45AM UTC coverage: 62.475% (+0.001%) from 62.474%
28363210535

push

github

web-flow
feat(api): meter relayed votes and cap elections by vote allowance (#562)

Votes are metered for billing rather than blocked at cast time (the
integrator is billed for what is relayed). Enforcement happens at election
publish: a group census cannot be published when its size could exceed the
remaining vote allowance, mirroring the SMS/email allowance gate.

Built on #557: the allowance resolves through limitsOwner, so a managed
org draws on the integrator's shared vote pool (summed across all its
managed orgs via SumSentVotesManagedBy); a standalone org uses its own
counter. MaxVotes of 0 means unlimited.

- db: OrganizationCounters.SentVotes, PlanLimits.MaxVotes;
  IncrementOrganizationSentVotesCounter, SumSentVotesManagedBy.
- subscriptions: vote allowance block in OrgCanPublishGroupCensus.
- api: POST /vote increments SentVotes on a chain-accepted relay
  (best-effort); SentVotes/MaxVotes added to the subscription API surface.
- errors: ErrProcessCensusSizeExceedsVoteAllowance (40162, 400).
- tests: extend the managed-org limit tests with the vote pool; assert the
  counter in TestRelayVote. Regenerate swagger.

12 of 19 new or added lines in 4 files covered. (63.16%)

10076 of 16128 relevant lines covered (62.48%)

45.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
78.52
-0.39% db/organizations.go
2
38.71
-0.09% api/process_vote.go
2
68.52
0.28% subscriptions/subscriptions.go
Jobs
ID Job ID Ran Files Coverage
1 28363210535.1 29 Jun 2026 09:52AM UTC 113
62.48
GitHub Action Run
Source Files on build 28363210535
  • Tree
  • List 113
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 345bc5c2 on github
  • Prev Build on main (#28360900997)
  • Next Build on main (#28366731294)
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