mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
feat(coderd): add new dispatch logic for coder inbox (#16764)
This PR is [resolving the dispatch part of Coder Inbocx](https://github.com/coder/internal/issues/403). Since the DB layer has been merged - we now want to insert notifications into Coder Inbox in parallel of the other delivery target. To do so, we push two messages instead of one using the `Enqueue` method.
This commit is contained in:
@ -114,7 +114,7 @@ func TestUpdateNotificationTemplateMethod(t *testing.T) {
|
||||
require.Equal(t, "Invalid request to update notification template method", sdkError.Response.Message)
|
||||
require.Len(t, sdkError.Response.Validations, 1)
|
||||
require.Equal(t, "method", sdkError.Response.Validations[0].Field)
|
||||
require.Equal(t, fmt.Sprintf("%q is not a valid method; smtp, webhook are the available options", method), sdkError.Response.Validations[0].Detail)
|
||||
require.Equal(t, fmt.Sprintf("%q is not a valid method; smtp, webhook, inbox are the available options", method), sdkError.Response.Validations[0].Detail)
|
||||
})
|
||||
|
||||
t.Run("Not modified", func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user