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

vocdoni / saas-backend
57%
main: 60%

Build:
Build:
LAST BUILD BRANCH: feat/draft-process
DEFAULT BRANCH: main
Repo Added 06 May 2025 10:31AM UTC
Files 74
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 f/stripe-rewrite
branch: f/stripe-rewrite
CHANGE BRANCH
x
Reset
  • f/stripe-rewrite
  • 219-fix-duplicate-members-warning-for-census-creation
  • b/docker-minor-issues
  • c/docker-compose-watch
  • c/promo-codes
  • 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/add-census-size
  • f/better-telephone-parsing
  • 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/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/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-upgrade-v82
  • f/unify-pagination
  • f/update-process-flow
  • feat/100_org_participants_api
  • feat/105_support_email
  • feat/111_stripe_phoneSupport
  • feat/asserts-always-commentf
  • feat/cline-rules
  • feat/coverage
  • feat/csp-use-db-package
  • feat/draft-process
  • feat/drop-unused-code
  • feat/extend-members-job-to-report-errors
  • feat/more-db-refactors
  • feat/noop-refactors
  • feat/refactor-CheckGroupMembersFields
  • 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/sanitize-hex-addresses
  • fix/test-max-users-reached
  • hotfix-add-members-job
  • hotfix/2fa-field-phone
  • hotfix/bson-omitempty
  • hotfix/missing-return
  • hotfix/orgMembersByIDs
  • hotfix/orgmembers
  • hotfix/phone-normalization-bug
  • i/extend_errors
  • main
  • small-cleanup
  • stage
  • templates

11 Sep 2025 09:02AM UTC coverage: 57.118% (-1.9%) from 59.0%
17639576981

Pull #225

github

altergui
stripe: rewrite from scratch

Complete Stripe Architecture Rewrite
Key Improvements Made:

    Clean Architecture Implementation
        Separated concerns with distinct layers: stripe/client.go (API wrapper), stripe/service.go (business logic), api/stripe_handlers.go (HTTP handlers)
        Dependency injection pattern for better testability
        Configuration-driven setup replacing hardcoded values

    Concurrency & Performance Fixes
        Replaced global mutex bottleneck with per-organization locking using stripe/locks.go
        Implemented idempotent webhook processing with event store (stripe/eventstore.go)
        Added proper context support throughout the codebase

    Type Safety & Error Handling
        Fixed golangci-lint type assertion issues by replacing unsafe map[string]any with proper struct unmarshaling
        Created structured error types in stripe/errors.go with proper error codes
        Intelligent HTTP status code handling without manual intervention requirements

    Configuration & Environment Management
        Environment-based configuration system in stripe/config.go
        Support for different plan types (Essential, Premium, Free, Custom)
        Removed hardcoded product IDs and made system configurable

    Database Integration Improvements
        Removed static assets/plans.json file dependency
        Dynamic plan loading from Stripe API or database
        Fixed test failures by ensuring default plans are available during organization creation
Pull Request #225: stripe: rewrite from scratch

34 of 773 new or added lines in 13 files covered. (4.4%)

1 existing line in 1 file now uncovered.

5641 of 9876 relevant lines covered (57.12%)

31.28 hits per line

Relevant lines Covered
Build:
Build:
9876 RELEVANT LINES 5641 COVERED LINES
31.28 HITS PER LINE
Source Files on f/stripe-rewrite
  • Tree
  • List 70
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
17639576981 f/stripe-rewrite stripe: rewrite from scratch Complete Stripe Architecture Rewrite Key Improvements Made: Clean Architecture Implementation Separated concerns with distinct layers: stripe/client.go (API wrapper), stripe/service.go (business logic), a... Pull #225 11 Sep 2025 12:11PM UTC altergui github
57.12
17639536238 f/stripe-rewrite unneeded ctx 2 Pull #225 11 Sep 2025 09:03AM UTC altergui github
57.09
17639366016 f/stripe-rewrite unneeded ctx Pull #225 11 Sep 2025 08:55AM UTC altergui github
57.08
17638700275 f/stripe-rewrite finish Pull #225 11 Sep 2025 08:28AM UTC altergui github
57.08
17608634432 f/stripe-rewrite remove tests, need to rethink InitializeStripeService Pull #225 10 Sep 2025 09:01AM UTC altergui github
57.33
17489961101 f/stripe-rewrite stripe: drop price tiers Pull #225 05 Sep 2025 09:59AM UTC altergui github
55.72
17489129800 f/stripe-rewrite drop mock CensusSizeTiers Pull #225 05 Sep 2025 09:21AM UTC altergui github
55.55
17399738524 f/stripe-rewrite fix plan Pull #225 02 Sep 2025 09:49AM UTC altergui github
54.54
17398084123 f/stripe-rewrite stripe: rewrite from scratch Complete Stripe Architecture Rewrite Key Improvements Made: 1. __Eliminated Global Mutex Bottleneck__: Replaced the global mutex with per-organization locking using `sync.Map`, allowing concurrent processing of webh... Pull #225 02 Sep 2025 08:41AM UTC altergui github
54.54
17397831673 f/stripe-rewrite drop a.initializeStripe Pull #225 02 Sep 2025 08:30AM UTC altergui github
54.55
See All Builds (510)
  • 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

© 2025 Coveralls, Inc