mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
fix: change notifications actions url (#17083)
Related to #17082 Some notifications ( workspace created and workspace manually updated ) are using wrong variables to build the Action URL. Fixing it.
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
UPDATE notification_templates
|
||||
SET
|
||||
actions = '[
|
||||
{
|
||||
"label": "View workspace",
|
||||
"url": "{{base_url}}/@{{.UserUsername}}/{{.Labels.workspace}}"
|
||||
}
|
||||
]'::jsonb
|
||||
WHERE id = '281fdf73-c6d6-4cbb-8ff5-888baf8a2fff';
|
||||
|
||||
UPDATE notification_templates
|
||||
SET
|
||||
actions = '[
|
||||
{
|
||||
"label": "View workspace",
|
||||
"url": "{{base_url}}/@{{.UserUsername}}/{{.Labels.workspace}}"
|
||||
},
|
||||
{
|
||||
"label": "View template version",
|
||||
"url": "{{base_url}}/templates/{{.Labels.organization}}/{{.Labels.template}}/versions/{{.Labels.version}}"
|
||||
}
|
||||
]'::jsonb
|
||||
WHERE id = 'd089fe7b-d5c5-4c0c-aaf5-689859f7d392';
|
@ -0,0 +1,23 @@
|
||||
UPDATE notification_templates
|
||||
SET
|
||||
actions = '[
|
||||
{
|
||||
"label": "View workspace",
|
||||
"url": "{{base_url}}/@{{.Labels.workspace_owner_username}}/{{.Labels.workspace}}"
|
||||
}
|
||||
]'::jsonb
|
||||
WHERE id = '281fdf73-c6d6-4cbb-8ff5-888baf8a2fff';
|
||||
|
||||
UPDATE notification_templates
|
||||
SET
|
||||
actions = '[
|
||||
{
|
||||
"label": "View workspace",
|
||||
"url": "{{base_url}}/@{{.Labels.workspace_owner_username}}/{{.Labels.workspace}}"
|
||||
},
|
||||
{
|
||||
"label": "View template version",
|
||||
"url": "{{base_url}}/templates/{{.Labels.organization}}/{{.Labels.template}}/versions/{{.Labels.version}}"
|
||||
}
|
||||
]'::jsonb
|
||||
WHERE id = 'd089fe7b-d5c5-4c0c-aaf5-689859f7d392';
|
Reference in New Issue
Block a user