Skip to content

Commit d7f64b7

Browse files
chore: add todo comment
1 parent c9df480 commit d7f64b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

coderd/notifications/enqueuer.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ type StoreEnqueuer struct {
5252
// NewStoreEnqueuer creates an Enqueuer implementation which can persist notification messages in the store.
5353
func NewStoreEnqueuer(cfg codersdk.NotificationsConfig, store Store, helpers template.FuncMap, log slog.Logger, clock quartz.Clock) (*StoreEnqueuer, error) {
5454
var method database.NotificationMethod
55-
// We do not allow setting Coder Inbox as the default method.
55+
// TODO(DanielleMaywood):
56+
// Currently we do not want to allow setting `inbox` as the default notification method.
57+
// As of 2025-03-25, setting this to `inbox` would cause a crash on the deployment
58+
// notification settings page. Until we make a future decision on this we want to disallow
59+
// setting it.
5660
if err := method.Scan(cfg.Method.String()); err != nil || method == database.NotificationMethodInbox {
5761
return nil, InvalidDefaultNotificationMethodError{Method: cfg.Method.String()}
5862
}

0 commit comments

Comments
 (0)