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: add notification for suspended/activated account#14367

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
mtojek merged 20 commits intomainfrom17-suspended-reactivated
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
20 commits
Select commitHold shift + click to select a range
000a917
migrations
mtojekAug 20, 2024
62cf15f
notify
mtojekAug 20, 2024
323680c
fix
mtojekAug 20, 2024
bbfb296
TestNotifyUserSuspended
mtojekAug 21, 2024
e1b6c28
TestNotifyUserReactivate
mtojekAug 21, 2024
9ef46de
Merge branch 'main' into 17-suspended-reactivated
mtojekAug 21, 2024
c7783ac
post merge
mtojekAug 21, 2024
55e4e13
fix escape
mtojekAug 21, 2024
38bca28
TestNotificationTemplatesCanRender
mtojekAug 21, 2024
37add7d
links and events
mtojekAug 22, 2024
baf1a95
notifyEnq
mtojekAug 22, 2024
a674476
findUserAdmins
mtojekAug 22, 2024
96611b1
notifyUserStatusChanged
mtojekAug 22, 2024
fabba3c
go build
mtojekAug 22, 2024
e72bf2a
your and admin
mtojekAug 22, 2024
80b227a
tests
mtojekAug 22, 2024
d27bc78
refactor
mtojekAug 22, 2024
a9d8fb6
Merge branch 'main' into 17-suspended-reactivated
mtojekAug 22, 2024
b789a53
247
mtojekAug 22, 2024
9931bbf
Danny's review
mtojekAug 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
migrations
  • Loading branch information
@mtojek
mtojek committedAug 20, 2024
commit000a91778a0f570c446484ca0ddcf43d0898adeb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
DELETE FROM notification_templates WHERE id = 'b02ddd82-4733-4d02-a2d7-c36f3598997d';
DELETE FROM notification_templates WHERE id = '9f5af851-8408-4e73-a7a1-c6502ba46689';
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
INSERT INTO notification_templates (id, name, title_template, body_template, "group", actions)
VALUES ('b02ddd82-4733-4d02-a2d7-c36f3598997d', 'User account suspended', E'User account "{{.Labels.suspended_account_name}}" suspended',
E'Hi {{.UserName}},\n\User account **{{.Labels.suspended_account_name}}** has been suspended.',
'Workspace Events', '[
{
"label": "View accounts",
"url": "{{ base_url }}/deployment/users?filter=status%3Aactive"
}
]'::jsonb);
INSERT INTO notification_templates (id, name, title_template, body_template, "group", actions)
VALUES ('9f5af851-8408-4e73-a7a1-c6502ba46689', 'User account reactivated', E'User account "{{.Labels.reactivated_account_name}}" reactivated',
E'Hi {{.UserName}},\n\User account **{{.Labels.reactivated_account_name}}** has been reactivated.',
'Workspace Events', '[
{
"label": "View accounts",
"url": "{{ base_url }}/deployment/users?filter=status%3Aactive"
}
]'::jsonb);

[8]ページ先頭

©2009-2025 Movatter.jp