Deleting a target blanks its name on every historical delivery in the event log #211
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Deletes are soft (
internal/database/base_model.go:16,deleteChildResourceatinternal/handlers/source_management.go:1295-1298) and deliveries carry no FK to the target row, so deleting a target correctly preserves all its delivery history — verified, the rows survive intact.But
loadTargetMap(source_management.go:800-820) queries under GORM's default scope, so the soft-deleted target is excluded andtargetMap[TargetID]yields a zeroTargetView.templates/source_logs.html:26-30then renders{{.Target.Name}}: {{.Status}}as:Verified before and after: the target name disappeared from the log page while its delivery rows remained. The history survives; its label does not.
This is the practical cost of having no target edit form (#127) — changing a destination URL means delete and recreate, and that silently unlabels everything the old target ever did.
Definition of done:
loadTargetMapincludes soft-deleted targets (Unscoped(), or a dedicated lookup) so historical deliveries keep their nameecho-sink (deleted)Not milestoned to 1.0.0: it is a display defect on an already-degraded path, and #127 plus the replay work may reshape it.
clawbot referenced this issue2026-08-20 05:56:52 +02:00