- Notifications
You must be signed in to change notification settings - Fork1.1k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Co-authored-by: Danny Kopping <danny@coder.com>
temporarily using new branch from coder/serpent for this
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
mafredri left a comment
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 👍🏻
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
johnstcn left a comment
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!
DanielleMaywood commentedNov 19, 2024
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 |
dannykopping left a comment
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 👍
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
dannykopping left a comment
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!
Uh oh!
There was an error while loading.Please reload this page.
johnstcn commentedNov 19, 2024
Gotcha! FYI, if we do a breaking change, we should indicate that in the commit message (e.g. |
576e1f4 intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Resolves#15513
Adds a new option ($CODER_NOTIFICATIONS_ENABLED) that allows disabling notifications. This defaults totrueto avoid disabling notifications for existing installations of Coder.Disables notifications when both
$CODER_NOTIFICATIONS_WEBHOOK_ENDPOINTand$CODER_EMAIL_SMARTHOSTare unset.Drops the default value for
$CODER_EMAIL_SMARTHOST.