-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: allow admins to modify notification template delivery method #14116
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
feat: allow admins to modify notification template delivery method #14116
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @dannykopping and the rest of your teammates on |
|
Meticulous was unable to execute a test run for this PR because the most recent commit is associated with multiple PRs. To execute a test run, please try pushing up a new commit that is only associated with this PR. Last updated for commit 33e9bc9. This comment will update as new commits are pushed. |
a38ce71 to
b7c9ca8
Compare
2105aa4 to
c4b8b31
Compare
4a0e0f2 to
8041cc7
Compare
6ea0336 to
2cc690c
Compare
0386dab to
8bec5b1
Compare
| dispatchMethod := s.defaultMethod | ||
| if metadata.CustomMethod.Valid { | ||
| dispatchMethod = metadata.CustomMethod.NotificationMethod |
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.
Here is where the new dispatch method is chosen
f2926a3 to
b3679fe
Compare
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
b3679fe to
d627fef
Compare
2cc690c to
c744d33
Compare
Signed-off-by: Danny Kopping <[email protected]>

Part of coder/internal#19
Admins must be able to modify which delivery method is set for each notification template. For all templates with a method not set, it falls back to the deployment-wide setting.
This PR enables the above functionality, and modifies the notification dispatch process to take custom dispatch methods per template into account.
Added two new routes:
PUT /notifications/templates/{notification_template}/methodGET /notifications/templates/systemsystemAlso made some small drive-by changes to the notification settings work recently implemented.