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

vocdoni / saas-backend
61%
main: 63%

Build:
Build:
LAST BUILD BRANCH: cli
DEFAULT BRANCH: main
Repo Added 06 May 2025 10:31AM UTC
Files 83
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

LAST BUILD ON BRANCH cli
branch: cli
CHANGE BRANCH
x
Reset
  • cli
  • 219-fix-duplicate-members-warning-for-census-creation
  • add-mocksms
  • adding-census-participant-after-census-created
  • api-test-refactor
  • b/docker-minor-issues
  • b/fix-mail-from
  • b/public-addresses
  • b/swagger
  • b/user-weight-get-handler
  • b/voter-no-login-weight-0
  • bi
  • bug/add-auth-2fa-json-unmarshalling
  • bug/fix-resend-verification-code
  • c/docker-compose-watch
  • c/promo-codes
  • cascade-member-update-to-censuses
  • ci-lint-commits
  • debug-mongodb-death-race
  • drop-dead-code
  • enforce-unique-login-hashes
  • f/101_org_participants_groups
  • f/106_handle_org_member
  • f/110_organization_meta
  • f/117_expose_memberid
  • f/126_resend_member_inivation
  • f/137-improve-members-crud
  • f/144-census-creation
  • f/146-email-clear-text
  • f/148-bis-rename-cenus-membership
  • f/148-memberID-not-unique
  • f/149-update-members-columns
  • f/150-members-filtering
  • f/227-2fa-warnings
  • f/244_national-id-validation
  • f/276-remove-deleted-members-from-groups
  • f/279-montly-subscriptions
  • f/370-endpoint-voter-weight
  • f/372-improve-csp-verification-msg
  • f/add-census-size
  • f/better-telephone-parsing
  • f/birthdate
  • f/bulk-members-ops
  • f/bulk_org_members_validation_errors
  • f/cascade-delete
  • f/ci-fix-golangci-lint
  • f/complete-census-creation-flow
  • f/complete-census-creation-flow-followup
  • f/csp-refactor
  • f/csp-refactor-fixes
  • f/csp-remove-membernumber
  • f/custom-plan-field
  • f/do-not-limit-processes-small-census
  • f/drat-delete
  • f/drop-unused-sendsms
  • f/empty-census-hotfixes
  • f/fix-2fa-mail-or-phone-login
  • f/fix-roles
  • f/fix-verification-template
  • f/fix_census_creation_flow
  • f/granular-write-access
  • f/hotfix-census-participant
  • f/lang-param
  • f/leave-empty-groups
  • f/list-org-member-group-pagination-bug
  • f/mongodb-migrations
  • f/move-stripe-webhook
  • f/multiple-oauth-providers-286
  • f/oauth-specific-error-286
  • f/pending-user-invitation-fixes
  • f/persistent-errors
  • f/qt-haslen
  • f/remove-price-tiers
  • f/rename-all
  • f/rename-org-members
  • f/rename-org-participants
  • f/review-more-hex
  • f/send-email-when-import-finished
  • f/sets_constant_max_vote_overwrite
  • f/small-lint
  • f/stripe-custom-checkout
  • f/stripe-declutter
  • f/stripe-rewrite
  • f/stripe-upgrade-v82
  • f/unify-pagination
  • f/update-process-flow
  • feat/100_org_participants_api
  • feat/105_support_email
  • feat/111_stripe_phoneSupport
  • feat/285-add-org-member-weight
  • feat/347-add-weight-to-census-csp
  • feat/358-csp-sign-return-weight
  • feat/asserts-always-commentf
  • feat/cc-support-email-to-user
  • feat/cline-rules
  • feat/coverage
  • feat/csp-use-db-package
  • feat/draft-process
  • feat/drop-unused-code
  • feat/enforce-draft-limits
  • feat/extend-members-job-to-report-errors
  • feat/more-db-refactors
  • feat/noop-refactors
  • feat/refactor-CheckGroupMembersFields
  • fix/add-invalid-login-error
  • fix/add-members-errors
  • fix/api-camelcase
  • fix/api-error-codes
  • fix/check-matched-count
  • fix/ci-api-retries
  • fix/ci-testCreateUser
  • fix/csp-lastcspauth-race
  • fix/errors-on-async-job
  • fix/leftover-renames
  • fix/make-swagger
  • fix/memberbase-partial-match
  • fix/orgaddress-is-now-a-common-address
  • fix/race-condition-org-users-counter
  • fix/remove-email-on-member-edit
  • fix/remove-redundant-birdhdate-parsing
  • fix/sanitize-hex-addresses
  • fix/test-max-users-reached
  • fix/verifation_flow
  • hotfix-0005_rename_verifications_code
  • hotfix-TestDecryptTokenFromHexErrors
  • hotfix-add-members-job
  • hotfix-migration-verifications-code
  • hotfix-weight-pointer
  • hotfix/2fa-field-phone
  • hotfix/bson-omitempty
  • hotfix/missing-return
  • hotfix/orgMembersByIDs
  • hotfix/orgmembers
  • hotfix/phone-normalization-bug
  • hotfix/wrong-error-voter-login
  • i/extend_errors
  • improve-lint
  • limit-process-creation
  • main
  • r/upgrade-testcontainers
  • remove-org-name-from-email
  • revert-hotfix
  • sentEmails-counter
  • small-cleanup
  • small-fixes-in-census-handlers
  • stage
  • templates
  • test-helper-funcs

16 Jan 2026 03:40PM UTC coverage: 60.974% (-1.9%) from 62.888%
21072035587

Pull #402

github

emmdim
refactor(csp): count distinct users instead of total documents

**What changed:**
- Modified CSP statistics counting methods to use distinct user IDs instead of total document
  counts
- Changed CountCSPAuthByBundle, CountCSPAuthVerifiedByBundle, and
  CountCSPProcessConsumedByProcess, to count unique users
- Added GetOrgMembersByProcess() and distinctCSPProcessVotersByProcess() to retrieve distinct
  voters for a process
- Updated CLI query output to display distinct voter IDs instead of census participants

**Why:**
These changes ensure CSP statistics accurately reflect the number of unique users involved in
authentication and voting processes, rather than counting duplicate operations by the same user.
This provides more meaningful metrics for process participation and engagement.
Pull Request #402: feat(cli): add voting process and voter information query tool

7 of 352 new or added lines in 2 files covered. (1.99%)

6887 of 11295 relevant lines covered (60.97%)

36.65 hits per line

Relevant lines Covered
Build:
Build:
11295 RELEVANT LINES 6887 COVERED LINES
36.65 HITS PER LINE
Source Files on cli
  • Tree
  • List 83
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
21072035587 cli refactor(csp): count distinct users instead of total documents **What changed:** - Modified CSP statistics counting methods to use distinct user IDs instead of total document counts - Changed CountCSPAuthByBundle, CountCSPAuthVerifiedByBundle, ... Pull #402 16 Jan 2026 03:43PM UTC emmdim github
60.97
21071931966 cli refactor(csp): count distinct users instead of total documents **What changed:** - Modified CSP statistics counting methods to use distinct user IDs instead of total document counts - Changed CountCSPAuthByBundle, CountCSPAuthVerifiedByBundle, an... Pull #402 16 Jan 2026 03:40PM UTC emmdim github
60.97
21071417499 cli refactor(csp): count distinct users instead of total documents **What changed:** - Modified CSP statistics counting methods to use distinct user IDs instead of total document counts - Changed CountCSPAuthByBundle, CountCSPAuthVerifiedByBundle, an... Pull #402 16 Jan 2026 03:22PM UTC emmdim github
60.97
21070955295 cli refactor(csp): count distinct users instead of total documents **What changed:** - Modified CSP statistics counting methods to use distinct user IDs instead of total document counts - Changed CountCSPAuthByBundle, CountCSPAuthVerifiedByBundle, an... Pull #402 16 Jan 2026 03:07PM UTC emmdim github
60.97
21037910437 cli refactor(db): move CSP process ID calculation into fetch function Move the `cspAuthTokenStatusID` calculation from all call sites into the `fetchCSPProcessFromDB` function itself. This refactoring: - Changes `fetchCSPProcessFromDB` signature to ... Pull #402 15 Jan 2026 04:10PM UTC emmdim github
61.14
21036819486 cli feat(cli): add voting process and voter information query tool Add a new CLI tool for querying voting process and voter information from MongoDB and Vocdoni API. The tool supports two operational modes: 1. Process-only mode: Displays comprehensiv... Pull #402 15 Jan 2026 03:36PM UTC emmdim github
61.12
21033152762 cli PR fixes Pull #402 15 Jan 2026 01:37PM UTC emmdim github
61.12
20965443478 cli feat(cli): add voting process and voter information query tool Add a new CLI tool for querying voting process and voter information from MongoDB and Vocdoni API. The tool supports two operational modes: 1. Process-only mode: Displays comprehensiv... Pull #402 13 Jan 2026 05:05PM UTC emmdim github
60.84
20965162947 cli feat(cli): add voting process and voter information query tool Add a new CLI tool for querying voting process and voter information from MongoDB and Vocdoni API. The tool supports two operational modes: 1. Process-only mode: Displays comprehensi... Pull #402 13 Jan 2026 04:56PM UTC emmdim github
60.82
20964472616 cli feat(cli): add voting process and voter information query tool Add a new CLI tool for querying voting process and voter information from MongoDB and Vocdoni API. The tool supports two operational modes: 1. Process-only mode: Displays comprehensi... Pull #402 13 Jan 2026 04:34PM UTC emmdim github
60.8
See All Builds (739)
  • Repo on GitHub
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