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: addsharing remove command to the CLI#19767

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
brettkolodny merged 8 commits intomainfrombrett/i861
Sep 11, 2025
Merged

Conversation

brettkolodny
Copy link
Contributor

@brettkolodnybrettkolodny marked this pull request as ready for reviewSeptember 10, 2025 16:28
Copy link
Member

@aslilacaslilac left a comment

Choose a reason for hiding this comment

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

mostly looks good! main concern is just that we should not take an--org flag

)
clitest.SetupConfig(t,workspaceOwnerClient,root)

out:=bytes.NewBuffer(nil)
Copy link
Member

Choose a reason for hiding this comment

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

nit:

Suggested change
out:=bytes.NewBuffer(nil)
out:=new(bytes.Buffer)

https://pkg.go.dev/bytes#NewBuffer

brettkolodny reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Resolved inthis commit

Comment on lines 2219 to 2220
// `GetGroups` returns all groups in the org if `GroupIds` is empty so we check
// the length before making the DB call.
Copy link
Member

Choose a reason for hiding this comment

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

oops! good catch!

are you sure it's just all groups in the org tho? how would it know which org? looking at the query it seems like it would just return every group regardless of org.

Suggested change
// `GetGroups` returns all groups in the org if `GroupIds` is empty so we check
// the length before making the DB call.
// `GetGroups` returns all groups if `GroupIds` is empty so we check the length first.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Resolved inthis commit

Comment on lines 215 to 218
org,err:=orgContext.Selected(inv,client)
iferr!=nil {
returnerr
}
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should take--org as a flag. we can already uniquely identify the organization just from thecodersdk.Workspace which hasOrganizationID andOrganizationName fields. this just makes it likely that someone will accidentally pass in the wrong org and cause problems. from looking through this file it seems like those are the only twoorg values that get used anyway, so it also saves us a network round trip!

same for the share/add command.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Good point! I didn't realize that the workspaces had that information already

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Resolved inthis commit

@brettkolodnybrettkolodny merged commit8d5c566 intomainSep 11, 2025
31 checks passed
@brettkolodnybrettkolodny deleted the brett/i861 branchSeptember 11, 2025 20:22
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 11, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@aslilacaslilacaslilac approved these changes

Assignees

@brettkolodnybrettkolodny

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

coder sharing remove command
2 participants
@brettkolodny@aslilac

[8]ページ先頭

©2009-2025 Movatter.jp