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 coderd_organization data source#33

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

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedJul 17, 2024
edited
Loading

Whilst not really part of the MVP, this makes managing groups through Terraform (such as for our integration tests) a lot nicer, since we can reference the default organisation as a data source.
It does, however, require bumping the coder version tov2.13.

@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_group_data_source branch from29ca20a to614c77fCompareJuly 17, 2024 07:57
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_organization_data_source branch fromf95a970 to695f2f4CompareJuly 17, 2024 07:57
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_group_data_source branch from614c77f to393c5a9CompareJuly 17, 2024 08:12
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_organization_data_source branch from695f2f4 to7dc20ebCompareJuly 17, 2024 08:12
@ethanndicksonethanndickson marked this pull request as ready for reviewJuly 17, 2024 08:13
@ethanndickson
Copy link
MemberAuthor

Failing CI is due to the v2.13 tag being deleted and recreated, seeSlack.

},
"is_default": schema.BoolAttribute{
MarkdownDescription:"Whether the organization is the default organization of the deployment. This field will be populated if the organization is found by ID or name.",
Optional:true,
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I made a comment on the UX of this in#34

Optional:true,
Computed:true,
},
"is_default": schema.BoolAttribute{
Copy link
Member

Choose a reason for hiding this comment

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

I think is_default is going to become irrelevant very shortly, so we should just stick to ID and name since those will stick around. When orgs get actually released I don't think there will be a "default org" anymore as the concept only exists for placing users into the only existing org.

For now you should just allowid = "default" (rather thanname = "default")

coadler reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Even though it'll be irrelevant shortly, we need to stick with it for the time being. Terraform will always complain if you try to set an attribute to a value that differs from what it was configured to. In this case, we'd need to have a special case to not write the actual ID of the org to the id attribute.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I'm just going to keep theis_default for now, and we'll end up finalizing it with the rest of the organization implementation.

@ethanndicksonethanndickson mentioned this pull requestJul 18, 2024
3 tasks
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_group_data_source branch from393c5a9 to1894bd6CompareJuly 18, 2024 13:26
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_organization_data_source branch from7dc20eb to24a0fe9CompareJuly 18, 2024 13:26
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_group_data_source branch from1894bd6 to355058dCompareJuly 18, 2024 13:50
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_organization_data_source branch from24a0fe9 to962336fCompareJuly 18, 2024 13:50
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_group_data_source branch from355058d tobef1946CompareJuly 19, 2024 12:39
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_organization_data_source branch from962336f toadb48deCompareJuly 19, 2024 12:40
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_group_data_source branch frombef1946 to62ed2beCompareJuly 19, 2024 12:42
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_organization_data_source branch 2 times, most recently frome313323 to63f4357CompareJuly 19, 2024 12:44
@ethanndicksonethanndickson changed the base branch from07-17-feat_add_coderd_group_data_source tomainJuly 19, 2024 12:44
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_organization_data_source branch from63f4357 toae0d572CompareJuly 19, 2024 12:45
@ethanndicksonethanndicksonforce-pushed the07-17-feat_add_coderd_organization_data_source branch fromae0d572 toaa86273CompareJuly 22, 2024 12:59
@ethanndicksonethanndickson merged commit17513d7 intomainJul 22, 2024
@deansheatherdeansheather deleted the 07-17-feat_add_coderd_organization_data_source branchJuly 26, 2024 07:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@deansheatherdeansheatherdeansheather left review comments

+1 more reviewer

@coadlercoadlercoadler approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ethanndickson@coadler@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp