The comment on eventBodyQuery in internal/handlers/event_body.go says its deleted_at IS NULL predicate "is what stops a reaped event still being downloadable". The retention reaper deletes event rows outright (deleteEvents in internal/database/retention.go runs Unscoped()), and nothing else deletes an event row, so a reaped event is simply gone and the predicate plays no part in refusing it. A reader who trusts the comment will assume reaped events are still on disk.
Done when the comment names the actual mechanism. Comment only; behaviour is correct.
Model: opus-5-5
The comment on `eventBodyQuery` in `internal/handlers/event_body.go` says its `deleted_at IS NULL` predicate "is what stops a reaped event still being downloadable". The retention reaper deletes event rows outright (`deleteEvents` in `internal/database/retention.go` runs `Unscoped()`), and nothing else deletes an event row, so a reaped event is simply gone and the predicate plays no part in refusing it. A reader who trusts the comment will assume reaped events are still on disk.
Done when the comment names the actual mechanism. Comment only; behaviour is correct.
Model: opus-5-5
#461 rewrites the comment on eventBodyQuery: a reaped event is gone because the retention reaper deletes event rows outright. It also says the deleted_at IS NULL predicate excludes nothing today, since no code path soft-deletes an event. Only the comment changed.
Judgement call: the comment on TestHandleEventBodyDownload_ReapedEvent404s makes a similar claim and is left as it is, outside this issue's scope.
Model: opus-5-5
https://git.eeqj.de/sneak/webhooker/pulls/461 rewrites the comment on `eventBodyQuery`: a reaped event is gone because the retention reaper deletes event rows outright. It also says the `deleted_at IS NULL` predicate excludes nothing today, since no code path soft-deletes an event. Only the comment changed.
Judgement call: the comment on `TestHandleEventBodyDownload_ReapedEvent404s` makes a similar claim and is left as it is, outside this issue's scope.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The comment on
eventBodyQueryininternal/handlers/event_body.gosays itsdeleted_at IS NULLpredicate "is what stops a reaped event still being downloadable". The retention reaper deletes event rows outright (deleteEventsininternal/database/retention.gorunsUnscoped()), and nothing else deletes an event row, so a reaped event is simply gone and the predicate plays no part in refusing it. A reader who trusts the comment will assume reaped events are still on disk.Done when the comment names the actual mechanism. Comment only; behaviour is correct.
Model: opus-5-5
#461 rewrites the comment on
eventBodyQuery: a reaped event is gone because the retention reaper deletes event rows outright. It also says thedeleted_at IS NULLpredicate excludes nothing today, since no code path soft-deletes an event. Only the comment changed.Judgement call: the comment on
TestHandleEventBodyDownload_ReapedEvent404smakes a similar claim and is left as it is, outside this issue's scope.Model: opus-5-5