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

vocdoni / saas-backend / 29349677713
62%

Build:
DEFAULT BRANCH: main
Ran 14 Jul 2026 04:37PM UTC
Jobs 1
Files 125
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

14 Jul 2026 04:26PM UTC coverage: 62.165% (-0.7%) from 62.9%
29349677713

push

github

web-flow
feat: multi-question /processes API (#571)

* chore(deps): pin dvote to the tx-batch (#1420) commit; build the linter with go1.26

Pin go.vocdoni.io/dvote to the vocdoni-node #1420 (feat/tx-batch) head for the batch
transaction endpoint the /processes publish path uses; the dep declares go 1.26.1, so the
module go directive follows. Bump golangci-lint (action) to a build compiled with go1.26 so it
can lint the 1.26 module.

* feat(processes): db layer for multi-question voting processes

Two new collections — votingProcesses (container) and processesQuestions (one question =
one on-chain election) — with CRUD, ordered hydration, draft counting, a resumable publishing
marker (timestamp, stale-reclaimable) and a unique partial index on the on-chain upstreamId.
DelCensus now cascades its participants. Migration 0017 creates the collections and indexes.

* feat(processes): account batch publish and ballot translation

Submit a NEW_PROCESS tx per question in one node batch (SubmitSignedTxBatch, explicit
contiguous nonces, fail-fast result mapping) and translate a question's type/typeSetup/
ballotProtocol into the on-chain VoteType/ElectionType. Singlechoice MaxValue derives from the
actual choice values.

* feat(processes): subscription quotas, voting-type gating and publish preflight

Draft quota and per-question voting-type gating for voting processes, plus the synchronous
publish-preflight helpers (OrgCanPublishProcess, OrgCanPublishCensus split into notify vs vote
counts, CanReserveManagedPublish) so publish denials surface up front instead of async.

* feat(processes): decoupled CSP handlers for the voter flow

Process-scoped CSP auth/resend/sign/weight/check: authenticate once per process against the
census, authorize per question via its eligibility subset, and sign per election. CanVote
requires census membership; DB errors are classified (500) rather than masked as unauthorized.

* feat(processes): http api — authoring, publish, status, results, v... (continued)

1165 of 2054 new or added lines in 21 files covered. (56.72%)

6 existing lines in 3 files now uncovered.

11493 of 18488 relevant lines covered (62.16%)

44.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
329
37.45
api/processes_publish.go
177
60.84
api/processes.go
129
55.36
csp/handlers/processes.go
62
61.73
db/voting_processes.go
50
55.36
db/processes_questions.go
31
66.32
-1.09% subscriptions/subscriptions.go
30
57.75
api/processes_census.go
24
68.97
-22.46% test/voconed.go
12
0.0
0.0% scripts/fundaccount/main.go
10
38.07
-0.64% api/process_vote.go
8
78.95
migrations/0017_voting_processes.go
7
72.73
-4.42% api/jobqueue.go
6
84.62
account/batch.go
5
54.32
-1.68% account/account.go
4
83.44
-2.09% db/census.go
3
0.0
0.0% scripts/defaultplan/main.go
2
81.61
0.43% account/process.go

Coverage Regressions

Lines Coverage ∆ File
3
68.97
-22.46% test/voconed.go
2
72.73
-4.42% api/jobqueue.go
1
0.0
0.0% scripts/fundaccount/main.go
Jobs
ID Job ID Ran Files Coverage
1 29349677713.1 14 Jul 2026 04:37PM UTC 125
62.16
GitHub Action Run
Source Files on build 29349677713
  • Tree
  • List 125
  • Changed 16
  • Source Changed 0
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f79aef98 on github
  • Prev Build on main (#29321625102)
  • Next Build on main (#29398189696)
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