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: notify about created user account#14010

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 26 commits intomainfrom17-account-notifs
Jul 30, 2024
Merged

feat: notify about created user account#14010

mtojek merged 26 commits intomainfrom17-account-notifs
Jul 30, 2024

Conversation

mtojek
Copy link
Member

@mtojekmtojek commentedJul 25, 2024
edited
Loading

Related:coder/internal#17

This PR extendsapi.CreateUser to notify owners and user admins when somebody manually creates a new user.

@mtojekmtojek self-assigned thisJul 25, 2024
@mtojekmtojek marked this pull request as ready for reviewJuly 29, 2024 14:35
Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looking good! Mostly small comments and nits.

@alwaysmeticulousalwaysmeticulous
Copy link

alwaysmeticulousbot commentedJul 30, 2024
edited
Loading

🤖 Meticulous spotted visual differences in 11 of 1069 screens tested:view and approve differences detected.

Last updated for commit 77c0c28. This comment will update as new commits are pushed.

@mtojekmtojek mentioned this pull requestJul 30, 2024
5 tasks
Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, with non-blocking nit 👍

require.Contains(t, notifyEnq.Sent[0].Targets, workspace.OrganizationID)
require.Contains(t, notifyEnq.Sent[0].Targets, workspace.OwnerID)
require.Len(t, notifyEnq.Sent, 2)
// notifyEnq.Sent[0] is an event for created user account
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nit: would be safer to validate this

Copy link
MemberAuthor

@mtojekmtojekJul 30, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I left it like this on purpose, this is not the aim of this test. Less chance that it will require refining if we alter something in Notifications Enqueuer logic

@mtojekmtojek merged commitcf1fcab intomainJul 30, 2024
29 of 30 checks passed
@mtojekmtojek deleted the 17-account-notifs branchJuly 30, 2024 13:37
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 30, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

Assignees

@mtojekmtojek

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mtojek@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp