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

vocdoni / saas-backend / 29747085882
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%. First build
29747085882

Pull #583

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)
Pull Request #583: feat: stage upgrade

1566 of 2652 new or added lines in 38 files covered. (59.05%)

11798 of 18897 relevant lines covered (62.43%)

45.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
319
39.35
api/processes_publish.go
173
61.89
api/processes.go
151
55.59
csp/handlers/processes.go
113
52.72
api/processes_admin.go
51
68.52
db/voting_processes.go
50
55.36
db/processes_questions.go
31
66.32
subscriptions/subscriptions.go
30
57.75
api/processes_census.go
24
68.97
test/voconed.go
19
85.56
db/org_members_groups.go
18
61.7
api/processes_census_validate.go
15
70.15
api/jobs.go
13
55.6
api/users.go
12
0.0
scripts/fundaccount/main.go
10
38.07
api/process_vote.go
8
78.95
migrations/0017_voting_processes.go
7
72.73
api/jobqueue.go
6
84.62
account/batch.go
6
81.63
account/process.go
6
77.68
db/types.go
5
54.32
account/account.go
4
83.44
db/census.go
3
94.81
db/verifications.go
3
0.0
scripts/defaultplan/main.go
2
90.42
api/apicommon/types.go
2
4.51
api/stripe_handlers.go
2
86.81
db/jobs.go
1
55.0
api/apikeys_handlers.go
1
70.66
api/org_members.go
1
69.82
api/organizations.go
Jobs
ID Job ID Ran Files Coverage
1 29747085882.1 20 Jul 2026 01:47PM UTC 127
62.43
GitHub Action Run
Source Files on build 29747085882
  • Tree
  • List 127
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #583
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