mirror of
https://github.com/coder/coder.git
synced 2026-06-03 13:08:25 +00:00
ef62e626c8
Currently the `targets` column in `inbox_notifications` doesn't get filled. This PR fixes that. Rather than give targets special treatment, we should put it in the payload like everything else. This correctly propagates notification targets to the inbox table without much code change.
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.2",
|
|
"notification_name": "Workspace Manually Updated",
|
|
"notification_template_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_email": "bobby@coder.com",
|
|
"user_name": "Bobby",
|
|
"user_username": "bobby",
|
|
"actions": [
|
|
{
|
|
"label": "View workspace",
|
|
"url": "http://test.com/@bobby/bobby-workspace"
|
|
},
|
|
{
|
|
"label": "View template version",
|
|
"url": "http://test.com/templates/bobby-organization/bobby-template/versions/alpha"
|
|
}
|
|
],
|
|
"labels": {
|
|
"initiator": "bobby",
|
|
"organization": "bobby-organization",
|
|
"template": "bobby-template",
|
|
"version": "alpha",
|
|
"workspace": "bobby-workspace"
|
|
},
|
|
"data": null,
|
|
"targets": null
|
|
},
|
|
"title": "Workspace 'bobby-workspace' has been manually updated",
|
|
"title_markdown": "Workspace 'bobby-workspace' has been manually updated",
|
|
"body": "Hello Bobby,\n\nA new workspace build has been manually created for your workspace bobby-workspace by bobby to update it to version alpha of template bobby-template.",
|
|
"body_markdown": "Hello Bobby,\n\nA new workspace build has been manually created for your workspace **bobby-workspace** by **bobby** to update it to version **alpha** of template **bobby-template**."
|
|
} |