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

vocdoni / saas-backend / 28381058341
63%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 02:59PM 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

29 Jun 2026 02:52PM UTC coverage: 62.75% (+0.2%) from 62.577%
28381058341

push

github

web-flow
feat(integrator): expose pooled votes/SMS/email usage and caps on /integrator (#563)

* feat(integrator): expose pooled votes/SMS/email usage and caps on /integrator

The /integrator endpoint only returned managed orgs/processes/census usage and
the maxManagedOrgs limit. Extend it so the integrator dashboard can show the
shared-pool consumption across all of an integrator's managed organizations:

- usage: sentVotes, sentSMS, sentEmails (summed across managed orgs in a single
  aggregation, SumManagedCounters, instead of three separate sums — /integrator
  is hit frequently from the UI)
- limits: maxManagedProcesses, maxManagedCensusSize, maxVotes, maxSMS, maxEmails
  from the integrator's subscription plan (0 = unlimited, or unknown for an
  override-enabled integrator with no plan)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(integrator): drop managed-census-size from /integrator response

Stop exposing managedCensusSize / maxManagedCensusSize on the integrator
dashboard: the shared-pool capacity an integrator consumes across its
managed orgs is governed by the votes pool (maxVotes/sentVotes), so the
census-size aggregate is redundant on this surface and is being retired.

Also regenerates swagger, which still referenced db.IntegratorLimits
instead of the apicommon.IntegratorLimits this PR introduced.

* refactor(integrator): remove managed-census-size aggregate counter and gate

The integrator-wide ManagedCensusSize reservation is superseded by the
shared vote pool (MaxVotes/SentVotes), which already gates managed-org
publishing at the integrator level. The two were never the same metric —
census size was a released, point-in-time capacity reservation while
SentVotes is the monotonic billing tally — but the vote pool is the limit
the team actually meters on, so the census reservation is redundant.

Removes:
- OrganizationCounters.ManagedCensusSize and AddOrganizationManagedCensusSize
- the census branch of ReserveMa... (continued)

88 of 113 new or added lines in 5 files covered. (77.88%)

1 existing line in 1 file now uncovered.

10276 of 16376 relevant lines covered (62.75%)

44.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
67.41
-1.11% subscriptions/subscriptions.go
6
52.03
2.32% api/organizations_managed.go
6
80.3
1.78% db/organizations.go
4
81.82
migrations/0016_organizations_managed_by_index.go

Coverage Regressions

Lines Coverage ∆ File
1
67.41
-1.11% subscriptions/subscriptions.go
Jobs
ID Job ID Ran Files Coverage
1 28381058341.1 29 Jun 2026 02:59PM UTC 115
62.75
GitHub Action Run
Source Files on build 28381058341
  • Tree
  • List 115
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cc65da5f on github
  • Prev Build on main (#28367516223)
  • Next Build on main (#28458004928)
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