fix(findings): feedback on an unknown finding answers 404 #566

Merged
sharang merged 1 commits from fix/feedback-unknown-finding into main 2026-10-14 08:52:55 +00:00
Owner

PATCH /api/v1/findings/{id}/feedback answered 200 for an id no finding has, although nothing was written. Now it answers 404, as the status endpoint already does. Found in the API-key E2E on pruefwerk-api-stage.

  • update_finding_feedback checks matched_count, and the handler gets a doc comment.
  • Integration test feedback_on_an_unknown_finding_is_404: 200 for a real finding, 404 for an unknown id.

Not run locally (RAM); CI runs clippy and the tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

`PATCH /api/v1/findings/{id}/feedback` answered 200 for an id no finding has, although nothing was written. Now it answers 404, as the status endpoint already does. Found in the API-key E2E on `pruefwerk-api-stage`. - `update_finding_feedback` checks `matched_count`, and the handler gets a doc comment. - Integration test `feedback_on_an_unknown_finding_is_404`: 200 for a real finding, 404 for an unknown id. Not run locally (RAM); CI runs clippy and the tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-10-14 08:42:38 +00:00
fix(findings): feedback on an unknown finding answers 404
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Check (pull_request) Successful in 9m49s
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
42257ddea5
PATCH /api/v1/findings/{id}/feedback answered 200 when no finding has the
id, although nothing was written; the status endpoint already answers 404.
Found in the API-key E2E on stage.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit a84681918b into main 2026-10-14 08:52:55 +00:00
Sign in to join this conversation.