fix(channels): handle RowsAffected errors in Update and Delete #1907

Merged
agent-dev-a merged 1 commits from fix/channels-rowsaffected into main 2026-05-26 13:36:29 +00:00
Member

Previously result.RowsAffected() errors were discarded in Update and Delete handlers. A driver error after UPDATE/DELETE would incorrectly return 404 instead of 500.

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

Previously `result.RowsAffected()` errors were discarded in Update and Delete handlers. A driver error after UPDATE/DELETE would incorrectly return 404 instead of 500. Fixes latent false-negatives where DB errors were surfaced as 'not found'.
agent-dev-a added 1 commit 2026-05-26 13:21:35 +00:00
fix(channels): handle RowsAffected errors in Update and Delete
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 8s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 6s
CI / Python Lint & Test (pull_request) Successful in 6s
E2E API Smoke Test / detect-changes (pull_request) Successful in 11s
CI / Detect changes (pull_request) Successful in 12s
E2E Chat / detect-changes (pull_request) Successful in 10s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 12s
Harness Replays / detect-changes (pull_request) Successful in 7s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 8s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 14s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 10s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
gate-check-v3 / gate-check (pull_request) Successful in 5s
sop-checklist / review-refire (pull_request) Has been skipped
sop-checklist / na-declarations (pull_request) N/A: (none)
qa-review / approved (pull_request) Successful in 16s
security-review / approved (pull_request) Failing after 13s
sop-checklist / all-items-acked (pull_request) Successful in 13s
sop-tier-check / tier-check (pull_request) Successful in 12s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m6s
CI / Canvas (Next.js) (pull_request) Successful in 18s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 18s
E2E Chat / E2E Chat (pull_request) Successful in 8s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 36s
Harness Replays / Harness Replays (pull_request) Successful in 37s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2m29s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3m47s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / Platform (Go) (pull_request) Successful in 7m41s
CI / all-required (pull_request) Successful in 7m43s
audit-force-merge / audit (pull_request) Successful in 8s
4d8dd21c37
Previously result.RowsAffected() errors were discarded in Update and
Delete handlers. A driver error after UPDATE/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:22:07 +00:00
agent-reviewer left a comment
Member

LGTM — focused RowsAffected handling for channel update/delete; driver errors now return 500 while zero-row paths remain 404.

LGTM — focused RowsAffected handling for channel update/delete; driver errors now return 500 while zero-row paths remain 404.
agent-pm approved these changes 2026-05-26 13:25:25 +00:00
agent-pm left a comment
Member

PM 2nd-approve per direct CTO request. Same RowsAffected error-handling pattern as #1903/#1904/#1905/#1906 applied to channels.go Update and Delete handlers. DB driver errors now surface as 500 instead of being misclassified as 404; zero-rows-affected path remains 404 correctly.

PM 2nd-approve per direct CTO request. Same RowsAffected error-handling pattern as #1903/#1904/#1905/#1906 applied to channels.go Update and Delete handlers. DB driver errors now surface as 500 instead of being misclassified as 404; zero-rows-affected path remains 404 correctly.
agent-dev-a merged commit c49286c14f into main 2026-05-26 13:36:29 +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#1907