Skip to content

refactoring: rewrite sync to class (#137)#141

Closed
kevcodez wants to merge 2 commits intomainfrom
kevin/billing-1390-disable-request-logging-and-log-events-in-stripe-sync-engine
Closed

refactoring: rewrite sync to class (#137)#141
kevcodez wants to merge 2 commits intomainfrom
kevin/billing-1390-disable-request-logging-and-log-events-in-stripe-sync-engine

Conversation

@kevcodez
Copy link
Copy Markdown
Collaborator

@kevcodez kevcodez commented Jun 1, 2025

Refactor to having a single class for syncing Stripe entities - while the class itself is a bit large, it avoids having to do parameter drilling through many methods and actually reduces overall code by quite a bit.

Additionally

  • Reduced boilerplate for backfills (generic function)
  • Reduced boilerplate for deletions
  • Reduced boilerplate for auto-expanding lists
  • Migrated from jest to vitest
  • Sped up CI
  • Config option to enable/disable automatic backfills
  • Configurable max connections
  • Migrate to pnpm

Refactor to having a single class for syncing Stripe entities - while the class itself is a bit large, it avoids having to do parameter drilling through many methods and actually reduces overall code by quite a bit.

Additionally
- Reduced boilerplate for backfills (generic function)
- Reduced boilerplate for deletions
- Reduced boilerplate for auto-expanding lists
- Migrated from jest to vitest
- Sped up CI
- Config option to enable/disable automatic backfills
- Configurable max connections
- Migrate to pnpm
@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Jun 1, 2025

Snyk checks have failed. 2 issues have been found so far.

Icon Severity Issues
Critical 0
High 0
Medium 2
Low 0

code/snyk check is complete. 2 issues have been found. (View Details)

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Comment thread src/stripeSync.ts
Comment thread src/stripeSync.ts
@kevcodez kevcodez closed this Jun 1, 2025
@kevcodez kevcodez deleted the kevin/billing-1390-disable-request-logging-and-log-events-in-stripe-sync-engine branch June 1, 2025 16:49
tonyxiao pushed a commit that referenced this pull request Apr 15, 2026
* feat: support non-default sync schema names

This lets installs and eval baselines target a configured schema name instead of hard-coding `stripe` in the bootstrap path. It replaces the old migration rewrite flow with explicit SQL placeholders and tests so custom schema names stay safe and repeatable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants