fix(idempotency): use compatible PostgreSQL JSON operations - #6510
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Lease expiry on claim: The in-progress reclaim check now uses Retry failure delete: When deleting a failed row for retry, the WHERE clause now compares Tests assert the conflict Reviewed by Cursor Bugbot for commit ac15ba4. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR fixes PostgreSQL type compatibility in database-backed idempotency operations.
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The changed SQL operations match the declared PostgreSQL
|
| Filename | Overview |
|---|---|
| apps/sim/lib/core/idempotency/service.ts | Aligns lease-expiry inspection with the column's PostgreSQL json type and makes retry-fence equality valid by casting both operands to jsonb. |
| apps/sim/lib/core/idempotency/service.test.ts | Adds focused regression assertions covering the corrected JSON type function and symmetric retry-fence casts. |
Reviews (1): Last reviewed commit: "fix(idempotency): use compatible Postgre..." | Re-trigger Greptile
Summary
Type of Change
Testing
Checklist