-
Notifications
You must be signed in to change notification settings - Fork 875
feat!: allow disabling notifications #15509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Danny Kopping <danny@coder.com>
temporarily using new branch from coder/serpent for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits but otherwise LGTM 👍🏻
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing blocking from my side!
I've made some changes to the approach taken here due to feedback in #15513. Rather than having a flag that enables/disables notifications, we figure it out based on if certain env variables are set. To do this we are making a breaking change by dropping the default for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, a couple more things to tweak and we can get this merged today 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @DanielleMaywood!
Gotcha! FYI, if we do a breaking change, we should indicate that in the commit message (e.g. |
Resolves #15513
Adds a new option ($CODER_NOTIFICATIONS_ENABLED
) that allows disabling notifications. This defaults totrue
to avoid disabling notifications for existing installations of Coder.Disables notifications when both
$CODER_NOTIFICATIONS_WEBHOOK_ENDPOINT
and$CODER_EMAIL_SMARTHOST
are unset.Drops the default value for
$CODER_EMAIL_SMARTHOST
.