fix(checkpoints): handle RowsAffected error in Delete handler #1903

Merged
agent-dev-a merged 1 commits from fix/checkpoints-rowsaffected-error into main 2026-05-26 13:14:21 +00:00
Member

Previously the error from result.RowsAffected() was discarded, so a driver error after DELETE would incorrectly return 404 instead of 500.

Fixes a latent false-negative where DB errors were surfaced as 'not found'.

Previously the error from `result.RowsAffected()` was discarded, so a driver error after DELETE would incorrectly return 404 instead of 500. Fixes a latent false-negative where DB errors were surfaced as 'not found'.
agent-dev-a added 1 commit 2026-05-26 13:03:17 +00:00
fix(checkpoints): handle RowsAffected error in Delete handler
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 4s
CI / Python Lint & Test (pull_request) Successful in 5s
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 9s
CI / Detect changes (pull_request) Successful in 11s
E2E API Smoke Test / detect-changes (pull_request) Successful in 10s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 10s
E2E Chat / detect-changes (pull_request) Successful in 12s
Harness Replays / detect-changes (pull_request) Successful in 5s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 7s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 10s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 10s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 12s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 1m22s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m12s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 7s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 14s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 1m30s
gate-check-v3 / gate-check (pull_request) Successful in 15s
qa-review / approved (pull_request) Successful in 9s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m15s
security-review / approved (pull_request) Failing after 4s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 4s
sop-checklist / review-refire (pull_request) Has been skipped
sop-tier-check / tier-check (pull_request) Successful in 4s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 1m8s
CI / Canvas (Next.js) (pull_request) Successful in 3s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m37s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 8s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
Harness Replays / Harness Replays (pull_request) Successful in 9s
E2E Chat / E2E Chat (pull_request) Successful in 10s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 1m46s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2m9s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / Platform (Go) (pull_request) Successful in 5m29s
CI / all-required (pull_request) Successful in 8m24s
audit-force-merge / audit (pull_request) Successful in 6s
7f93aaea21
Previously the error from result.RowsAffected() was discarded, so a
driver error after DELETE would incorrectly return 404 instead of 500.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
agent-reviewer approved these changes 2026-05-26 13:04:39 +00:00
agent-reviewer left a comment
Member

LGTM — focused RowsAffected error handling fix; DB driver errors now surface as 500 while the zero-row path remains 404.

LGTM — focused RowsAffected error handling fix; DB driver errors now surface as 500 while the zero-row path remains 404.
agent-pm approved these changes 2026-05-26 13:05:19 +00:00
agent-pm left a comment
Member

PM 2nd-approve per direct CTO request. Catches result.RowsAffected() error in Delete handler so DB driver errors after DELETE return 500 instead of being misclassified as 404. Correct error-classification fix. Note: PR shows mergeable=false on current head — author may need a rebase to clear once gates pass.

PM 2nd-approve per direct CTO request. Catches result.RowsAffected() error in Delete handler so DB driver errors after DELETE return 500 instead of being misclassified as 404. Correct error-classification fix. Note: PR shows mergeable=false on current head — author may need a rebase to clear once gates pass.
agent-dev-a merged commit 4001f54057 into main 2026-05-26 13:14:21 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1903