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

vocdoni / saas-backend / 29747082380
62%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2026 01:47PM UTC
Jobs 1
Files 127
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

20 Jul 2026 01:37PM UTC coverage: 62.433% (+0.3%) from 62.167%
29747082380

push

github

web-flow
chore(api): /processes migration cleanup — deprecations, RESTful shapes, jobs/apikeys consolidation, param standardization (#582)

* chore(processes): deprecate legacy /process endpoints; add missing /processes replacements

Mark every legacy single-election /process, CSP /process/bundle, and org-level
process list endpoint @Deprecated in swagger (21 operations → deprecated: true),
now that the multi-question /processes API (#571) supersedes them. POST /vote is
shared and untouched.

Add the three /processes replacements for capabilities that had no equivalent
yet, so nothing is deprecated without an alternative:
- DELETE /processes/{processId}: delete a draft (rejects published), Manager/Admin.
- POST /processes/{processId}/participants/check: Manager/Admin lookup of org
  members by field intersected with the census, with per-question voted status.
- POST /processes/{processId}/sign-info: a voter's per-question consumed address,
  nullifier and timestamp (the /processes form of the single-election sign-info).

Endpoints that already have /processes equivalents (auth, auth/resend, sign,
weight, check, participant info, create/get/update/publish/status/results/list)
are deprecated only. Metadata is intentionally dropped (handled by the new API).

Reuses existing helpers (authorizeStatusChange, OrgMembersByField,
CensusParticipantsByMemberIDs, MembersWithUsedCSPProcess, CSPProcessByUserAndProcess,
state.GenerateNullifier). Tests: TestVotingProcessDelete and TestProcessCSP
(extended with sign-info + participants/check on a real consumed vote).

* docs(processes): document the /processes CSP voter auth flow in swagger

The process-scoped CSP handlers (ProcessAuthHandler, ProcessAuthResendHandler,
ProcessSignHandler, ProcessWeightHandler, ProcessCheckHandler) were registered
and working but had no swagger annotations, so the OpenAPI spec never described
the voter auth/sign/weight/check flow for the new /processes API. With the
legacy /process/bundle CSP e... (continued)

348 of 554 new or added lines in 20 files covered. (62.82%)

3 existing lines in 2 files now uncovered.

11798 of 18897 relevant lines covered (62.43%)

45.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
113
52.72
api/processes_admin.go
22
55.59
0.22% csp/handlers/processes.go
19
85.56
-2.5% db/org_members_groups.go
18
61.7
api/processes_census_validate.go
15
70.15
-6.04% api/jobs.go
6
77.68
-4.4% db/types.go
4
81.63
0.02% account/process.go
2
90.42
0.64% api/apicommon/types.go
2
4.51
0.0% api/stripe_handlers.go
2
86.81
-1.83% db/jobs.go
1
55.0
0.0% api/apikeys_handlers.go
1
70.66
2.45% api/org_members.go
1
69.82
-1.48% api/organizations.go

Coverage Regressions

Lines Coverage ∆ File
2
86.81
-1.83% db/jobs.go
1
70.66
2.45% api/org_members.go
Jobs
ID Job ID Ran Files Coverage
1 29747082380.1 20 Jul 2026 01:47PM UTC 127
62.43
GitHub Action Run
Source Files on build 29747082380
  • Tree
  • List 127
  • Changed 24
  • Source Changed 0
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2dd01f11 on github
  • Prev Build on main (#29569019730)
  • Next Build on main (#29813731602)
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