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

vocdoni / saas-backend / 26830057939
60%

Build:
DEFAULT BRANCH: main
Ran 02 Jun 2026 03:31PM UTC
Jobs 1
Files 92
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

02 Jun 2026 03:27PM UTC coverage: 60.194% (+0.09%) from 60.105%
26830057939

push

github

emmdim
feat(csp): add token-only census membership check endpoint

Add POST /process/bundle/{bundleId}/check so the UI can verify, using only the
stored CSP auth token, whether a voter belongs to a bundle's census — mirroring
client.isInCensus() for non-CSP censuses. Previously the CSP vote button was
gated on mere token presence, so it was wrongly shown when the stored token
belonged to a different bundle than the election being viewed.

The endpoint returns {belongs, weight, hasVoted}. belongs is true only for a
verified token issued for this same bundle whose user is a participant of the
bundle's census (and non-zero weight on weighted censuses). Ineligibility is
reported as belongs:false with HTTP 200, not as an error, so the UI can consume
it the same way it consumes isInCensus.

Composes existing DB methods (CSPAuth, OrgMember, Census, CensusParticipant,
CSPProcessByUserAndProcess); no new query logic.

54 of 72 new or added lines in 2 files covered. (75.0%)

7930 of 13174 relevant lines covered (60.19%)

42.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
18
52.2
3.21% csp/handlers/handlers.go
Jobs
ID Job ID Ran Files Coverage
1 26830057939.1 02 Jun 2026 03:31PM UTC 92
60.19
GitHub Action Run
Source Files on build 26830057939
  • Tree
  • List 92
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4d9c51f7 on github
  • Prev Build on main (#26810548954)
  • Next Build on main (#26831553845)
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