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

chore: add organization member api + cli#13577

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
Emyrk merged 6 commits intomainfromstevenmasley/add_orgmember_cli
Jun 20, 2024

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedJun 14, 2024
edited
Loading

coder organization members add <username | user_id>

@EmyrkEmyrkforce-pushed thestevenmasley/add_orgmember_cli branch from68a5b2b toa4a986dCompareJune 17, 2024 14:48
@EmyrkGraphite App
Copy link
MemberAuthor

Emyrk commentedJun 17, 2024
edited
Loading

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@Emyrk and the rest of your teammates onGraphiteGraphite

@EmyrkEmyrk marked this pull request as ready for reviewJune 17, 2024 16:49
@EmyrkEmyrkforce-pushed thestevenmasley/add_orgmember_cli branch from47b1864 tobf3bfd0CompareJune 17, 2024 17:46
@EmyrkEmyrkforce-pushed thestevenmasley/add_orgmember_cli branch 2 times, most recently frome488414 to909a7ceCompareJune 17, 2024 20:00
@EmyrkEmyrk requested a review fromf0sselJune 17, 2024 20:16
Copy link
Contributor

@f0sself0ssel left a comment

Choose a reason for hiding this comment

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

:+1, nothing blocking

r.Use(
// Adding a member requires "read" permission
// on the site user. So limited to owners and user-admins.
// TODO: Allow org-admins to add users via some new permission? Or give them
Copy link
Contributor

Choose a reason for hiding this comment

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

For a future PR: I think a new permission would be nice here, I don't think it's intuitive for developers to know that a read permission on a site user grants them access to add new org members.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@f0ssel one option is just to not require the read permission to add a user, using the system context to fetch a user.

I agree it is not intuitive at present. Since orgs are still a ways out, I'm not spending too much time on these details atm.

f0ssel reacted with thumbs up emoji
func TestAddMember(t *testing.T) {
t.Parallel()

t.Run("OK", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think testing to error cases like missing user and org 404, etc for posterity could be good as well

Emyrk reacted with thumbs up emoji
@EmyrkEmyrkforce-pushed thestevenmasley/add_orgmember_cli branch from909a7ce toce367e5CompareJune 18, 2024 20:36
@EmyrkEmyrk merged commit8e06ad4 intomainJun 20, 2024
28 checks passed
@EmyrkEmyrk deleted the stevenmasley/add_orgmember_cli branchJune 20, 2024 14:19
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 20, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@f0sself0sself0ssel approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Emyrk@f0ssel@bpmct

[8]ページ先頭

©2009-2025 Movatter.jp