fix: pass notification settings from create form to service #160
Reference in New Issue
Block a user
Delete Branch "fix/issue-157-notification-settings"
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?
Summary
HandleAppCreatewas not readingdocker_network,ntfy_topic, orslack_webhookform values from the create app form. These fields were silently dropped during app creation, even though:app_new.htmlhad the form fieldsCreateAppInputhad the corresponding struct fieldsCreateAppalready handled them correctlyThe edit/update flow was unaffected — the bug was exclusively in the create path.
Changes
docker_network,ntfy_topic,slack_webhookform values inHandleAppCreateCreateAppInputcloses #157
Review: PASS ✅
Single-file, 9-line fix in
internal/handlers/app.go— correctly addresses issue #157.Checklist
docker_networkform value read inHandleAppCreatentfy_topicform value read inHandleAppCreateslack_webhookform value read inHandleAppCreateCreateAppInputHandleAppUpdate) unchanged — no regressiondocker build .passes (all tests pass, lint clean, build succeeds)Analysis
The root cause was straightforward:
HandleAppCreateread only 4 form fields (name,repo_url,branch,dockerfile_path) but silently ignored the 3 optional settings fields. The service layer (CreateAppInputstruct andCreateAppmethod) already had full support forDockerNetwork,NtfyTopic, andSlackWebhook. The fix correctly wires the handler to read these form values and pass them through.The branch is already up-to-date with
main(no rebase needed). Clean, minimal, correct.