Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
DanielleMaywood merged 24 commits intomainfromdm-fix-defaults-notifications
Nov 19, 2024

Conversation

DanielleMaywood
Copy link
Contributor

@DanielleMaywoodDanielleMaywood commentedNov 14, 2024
edited
Loading

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.

@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewNovember 14, 2024 13:13
Copy link
Member

@mafredrimafredri left a 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 👍🏻

Copy link
Member

@johnstcnjohnstcn left a 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
Copy link
ContributorAuthor

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 forCODER_EMAIL_SMARTHOST, although this shouldn't be a major issue as anyone using SMTP notifications will most likely have changed this setting anyway.

Copy link
Contributor

@dannykoppingdannykopping left a 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 👍

Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, thanks@DanielleMaywood!

@johnstcn
Copy link
Member

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 forCODER_EMAIL_SMARTHOST, although this shouldn't be a major issue as anyone using SMTP notifications will most likely have changed this setting anyway.

Gotcha! FYI, if we do a breaking change, we should indicate that in the commit message (e.g.feat!: ...

@DanielleMaywoodDanielleMaywood changed the titlefeat: allow disabling notificationsfeat!: allow disabling notificationsNov 19, 2024
@DanielleMaywoodDanielleMaywood added the release/breakingThis label is applied to PRs to detect breaking changes as part of the release process labelNov 19, 2024
@DanielleMaywoodDanielleMaywood merged commit576e1f4 intomainNov 19, 2024
32 of 33 checks passed
@DanielleMaywoodDanielleMaywood deleted the dm-fix-defaults-notifications branchNovember 19, 2024 15:05
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

@mafredrimafredrimafredri approved these changes

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@DanielleMaywoodDanielleMaywood

Labels

release/breakingThis label is applied to PRs to detect breaking changes as part of the release process

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Support disabling notifications

4 participants

@DanielleMaywood@johnstcn@mafredri@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp