Skip to content

Console: 'Enabled' checkbox on channel *create* is silently ignored #600

Description

@badbread

Found in the v0.2.0 cross-surface audit. Minor UX correctness bug, not a security or data issue.

The new-notification-channel form renders an Enabled checkbox (services/api/src/admin.html:11350) and the create payload includes enabled (admin.html:11573, sent at :11594). But CreateChannelRequest (services/api/src/notifications.rs:470-490) has no enabled field, so serde drops it, and create hardcodes enabled: true (notifications.rs:653). An operator who unchecks Enabled while creating a channel gets an enabled channel anyway.

The update PUT does accept enabled, so toggling after creation works.

Fix (either): drop the Enabled checkbox from the create form, or add an enabled field (default true) to CreateChannelRequest and honor it in create. The latter matches the form's apparent intent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiBackend HTTP API (services/api)bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions