Skip to content

Stripe Branch - #227

Open
rafizamankhan wants to merge 10 commits into
mainfrom
stripe
Open

Stripe Branch#227
rafizamankhan wants to merge 10 commits into
mainfrom
stripe

Conversation

@rafizamankhan

@rafizamankhan rafizamankhan commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Resolves #3

rafizamankhan and others added 5 commits July 3, 2026 14:59
Restore .env.example, drop BILLING_ENABLED, optimize nav middleware,
fix webhook retry semantics, use custom Stripe exceptions, standardize
has_permission checks, and revert unrelated footer redesign.
Resolve conflicts: keep stripe dep in pyproject.toml, combine Stripe
test env with main's CSRF browser fixtures, adopt main's utc_naive helpers.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rafizamankhan rafizamankhan self-assigned this Jul 7, 2026
chriscarrollsmith and others added 4 commits July 14, 2026 17:44
…n-to-stripe-20260714213411

Propagate main to stripe
* chore: release v1.1.8 [skip ci]

Automatically generated by python-semantic-release

* fix: engine too many connections (#231)

* fix: engine too many connections

Fix create_engine() connection leaks per request/call

* refactor: use lru cached engine

Use lru cached engine

* add pool_pre_ping and dispose()

* fix: address review feedback on engine cache

- Route rate_limit.py through the shared get_engine() cache instead of
  its own module-level singleton, so no second unmanaged pool survives
  clear_engine_cache() or goes stale when the connection URL changes.
- Guard the engine cache with a threading.Lock: sync dependencies run in
  FastAPI's threadpool, so concurrent first requests could race in
  get_engine() and orphan an undisposed engine, and clear_engine_cache()
  could hit a dict-mutated-during-iteration error.
- Remove the clear_engine_cache() side effect from tear_down_db(); test
  fixtures that relied on it now call it explicitly in their teardown.
- Make engine-cache tests isolation-safe via an engine_cache fixture so
  cleanup runs even when an assertion fails mid-test.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Rafiuzzaman Khan <rafiuzzamank@gmail.com>
Co-authored-by: chriscarrollsmith <chriscarrollsmith@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: github-actions <actions@users.noreply.github.com>
Co-authored-by: Biruk Haileye Tabor <biruk.haileye@gmail.com>
Co-authored-by: Rafiuzzaman Khan <rafiuzzamank@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Christopher Carroll Smith <chriscarrollsmith@users.noreply.github.com>
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.

Add payments/billing system

2 participants