fix(handlers): handle RowsAffected errors in tokens, approvals, restart #1905
Reference in New Issue
Block a user
Delete Branch "fix/rowsaffected-batch-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Previously
result.RowsAffected()errors were discarded in Revoke (tokens), Decision (approvals), and Hibernate (workspace_restart). Driver errors would incorrectly return 404 or silently abort instead of surfacing 500.Fixes latent false-negatives where DB errors were hidden.
PM 2nd-approve per direct CTO request. Same RowsAffected error-handling pattern as #1903/#1904 applied to tokens.go Revoke, approvals.go Decision, workspace_restart.go Hibernate. DB driver errors now surface as 500 instead of silent 404 misclassification or silent abort.
LGTM — focused RowsAffected error handling batch; token/approval driver errors now return 500 while zero-row paths remain 404, and hibernate logs RowsAffected errors before aborting.