Say what a database or log target's attempt did, without a status (closes #388) #484

Merged
clawbot merged 1 commits from issue-388-target-own-terms into next 2026-10-03 02:41:17 +02:00
Collaborator

In the event log and on an event's page, every attempt of a database or log target read "success Status: — (no response)". Those targets send no HTTP request, and for an http target the same words mean the connection failed.

The one shared attempt template, templates/delivery_attempts.html, now reads a successful database attempt as "archived" and a successful log attempt as "written to the log", and shows no status for either. http and slack attempts are unchanged, and so are the paused-target lines from #478.

One test per target type checks both pages. The README's DeliveryResult section says the same in one sentence.

Judgement call: a failed database or log attempt keeps the word "failure", since its error line already says what went wrong.

Model: opus-5-5

In the event log and on an event's page, every attempt of a `database` or `log` target read "success Status: — (no response)". Those targets send no HTTP request, and for an `http` target the same words mean the connection failed. The one shared attempt template, `templates/delivery_attempts.html`, now reads a successful `database` attempt as "archived" and a successful `log` attempt as "written to the log", and shows no status for either. `http` and `slack` attempts are unchanged, and so are the paused-target lines from https://git.eeqj.de/sneak/webhooker/pulls/478. One test per target type checks both pages. The README's DeliveryResult section says the same in one sentence. Judgement call: a failed `database` or `log` attempt keeps the word "failure", since its error line already says what went wrong. Model: opus-5-5
clawbot added the needs-review label 2026-10-03 02:16:16 +02:00
clawbot self-assigned this 2026-10-03 02:16:16 +02:00
Author
Collaborator

Review: FAIL, needs-rework.

  1. internal/handlers/delivery_attempts_test.go, the cases table: the database and log cases are only successful attempts, so nothing checks that a failed database attempt shows no status. If the template hid the status only for successful attempts, a failed archive would read "Status: — (no response)" again, and the whole suite would still pass. Acceptable: add a failed database case (success false, with an error set) that checks both pages show "failure" and its error line, and no "Status:".

Judgement call: keeping "failure" for a failed database attempt is fine. Its error line says what went wrong, and it shows no status.

Model: opus-5-5

Review: FAIL, `needs-rework`. 1. `internal/handlers/delivery_attempts_test.go`, the cases table: the `database` and `log` cases are only successful attempts, so nothing checks that a failed `database` attempt shows no status. If the template hid the status only for successful attempts, a failed archive would read "Status: — (no response)" again, and the whole suite would still pass. Acceptable: add a failed `database` case (success false, with an error set) that checks both pages show "failure" and its error line, and no "Status:". Judgement call: keeping "failure" for a failed `database` attempt is fine. Its error line says what went wrong, and it shows no status. Model: opus-5-5
clawbot added needs-rework and removed needs-review labels 2026-10-03 02:29:01 +02:00
clawbot added 1 commit 2026-10-03 02:36:15 +02:00
A database or log target sends no HTTP request, yet each of its attempts
read "success  Status: — (no response)", which for an http target means
a failed connection. The shared attempt template now reads a successful
database attempt as "archived" and a successful log attempt as "written
to the log", and shows no status for either, in the event log and on the
event's page. http and slack attempts are unchanged. One test per target
type, plus one for a failed database attempt, checks both pages.

Model: opus-5-5
clawbot force-pushed issue-388-target-own-terms from e67ac700c4 to 8514c1e042 2026-10-03 02:36:15 +02:00 Compare
Author
Collaborator
  1. Added a failed database attempt (success false, with an error set) to the cases table in internal/handlers/delivery_attempts_test.go. The event's page and the event log must both show "failure" and its error line, and no "Status:". With the template changed to hide the status only for successful attempts, this case fails and every other case still passes.

Rebased onto current next.

Model: opus-5-5

1. Added a failed `database` attempt (success false, with an error set) to the cases table in `internal/handlers/delivery_attempts_test.go`. The event's page and the event log must both show "failure" and its error line, and no "Status:". With the template changed to hide the status only for successful attempts, this case fails and every other case still passes. Rebased onto current `next`. Model: opus-5-5
clawbot added needs-review and removed needs-rework labels 2026-10-03 02:36:23 +02:00
Author
Collaborator

Review: PASS. The failed database case now covers the earlier finding.

Model: opus-5-5

Review: PASS. The failed `database` case now covers the earlier finding. Model: opus-5-5
clawbot merged commit bcdd4791ec into next 2026-10-03 02:41:17 +02:00
clawbot deleted branch issue-388-target-own-terms 2026-10-03 02:41:17 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/webhooker#484