Files
portainer/api
agent_coder 2f939203f7 fix(#28 review): restore stack-name producer for container notifications (F3)
F3: removing the stack-redeploy path dropped every producer of Event.StackName,
leaving the webhook stack-notification branch + 3 formatter tests dead and silently
regressing recreated stack members to 'Container [x]' instead of 'Stack [name]'
(#19 behaviour). Thread the compose-project label (consts.ComposeStackNameLabel)
into Event.StackName at every member event: updateStandalone (recreate success +
failure), rollback (its 3 events, via a new stackName param), and autoheal
(EventHealRestarted). Empty label -> StackName='' -> formatter falls back to the
Container branch, so non-stack containers are unregressed. The recreate regression
test now asserts StackName is populated end-to-end (live producer, not hand-set).
F-doc: reworded 3 stale redeploy comments (notify.go, service.go, seams.go).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 22:05:56 +03:00
..