Skip to content

fix: block limiter usage if a transaction is open - #135

Merged
smudge merged 3 commits into
Betterment:mainfrom
smudge:smudge/rate-limiter-txn-protection
Oct 7, 2026
Merged

smudge merged 3 commits into
Betterment:mainfrom
smudge:smudge/rate-limiter-txn-protection

Conversation

@smudge

@smudge smudge commented Oct 7, 2026

Copy link
Copy Markdown
Member

While with_limit is unlikely to trip this footgun, manual usage of Delayed::Limit.within_limit would strongly benefit from this guard.

Going with a minor release since it could potentially break some existing code, but is also not a categorically breaking change for valid usages of these APIs.

smudge and others added 3 commits October 7, 2026 16:15
json 3.0 removed the `quirks_mode` keyword, but ActiveSupport 8.0.5.1 and
the EOL 6.0/6.1/7.0/7.1 lines still pass it to `JSON.generate`, so every
worker error path raised `unknown keyword: quirks_mode` in CI. Rails 7.2.4
and 8.1 no longer pass the keyword and need no pin.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@smudge
smudge force-pushed the smudge/rate-limiter-txn-protection branch from d3e7921 to 6db2467 Compare October 7, 2026 20:16
@smudge
smudge changed the base branch from main to smudge/pin-json-below-3 October 7, 2026 20:16
@smudge
smudge changed the base branch from smudge/pin-json-below-3 to main October 7, 2026 20:22

@samandmoore samandmoore left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me

@smudge
smudge merged commit 0ddbeec into Betterment:main Oct 7, 2026
72 checks passed
@smudge
smudge deleted the smudge/rate-limiter-txn-protection branch October 7, 2026 20:49
@smudge smudge mentioned this pull request Oct 7, 2026
smudge added a commit that referenced this pull request Oct 7, 2026
Due to an absolutely clean merge, #135 didn't actually bump the gem's version number. 😅
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