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!: remove deprecated items fromcoder_workspace data source#255

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
matifali merged 16 commits intomainfrommatifali/coder_workspace
Jul 5, 2024

Conversation

matifali
Copy link
Member

@matifalimatifali commentedJul 3, 2024
edited
Loading

The owner-related fields (owner,owner_email,owner_id,owner_name,owner_oidc_access_token,owner_groups,owner_session_token) in the workspace data source have been deprecated. This commit removes these fields from the codebase.

We should have done this beforehttps://github.com/coder/terraform-provider-coder/releases/tag/v1.0.0

contributes to#250

…urceThe owner-related fields (`owner`, `owner_email`, `owner_id`, `owner_name`, `owner_oidc_access_token`, `owner_groups`, `owner_session_token`) in the workspace data source have been deprecated. This commit removes these fields from the codebase.
@matifalimatifali self-assigned thisJul 3, 2024
Copy link
MemberAuthor

@matifalimatifali left a comment

Choose a reason for hiding this comment

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

self review.

@@ -13,11 +13,51 @@ Use this data source to get information for the active workspace build.
## Example Usage

```terraform
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Elaborated example usage. If its too much happy to simply it.

@@ -36,7 +34,7 @@ resource "coder_env" "git_author_name" {
}

resource "coder_env" "git_author_email" {
agent_id =var.agent_id
agent_id =coder_agent.dev.id
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

there was no var defined so used the already defined agent.

Comment on lines -81 to -87
"workspace.owner": `testing`,
"workspace.owner_email": `testing@coder\.com`,
"workspace.owner_groups": `\[\]`,
"workspace.owner_id": `[a-zA-Z0-9]+`,
"workspace.owner_name": `default`,
"workspace.owner_oidc_access_token": `^$`, // TODO: need a test OIDC integration
"workspace.owner_session_token": `[a-zA-Z0-9-]+`,
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

removed all owner related items from the integration test. We already have a separate integration test forcoder_workspace_owner.

@johnstcn
Copy link
Member

We will need to bump the major version after this change.

@matifalimatifali merged commit7ed088d intomainJul 5, 2024
12 checks passed
@matifalimatifali deleted the matifali/coder_workspace branchJuly 5, 2024 08:40
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 5, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@mtojekmtojekmtojek approved these changes

@stirbystirbyAwaiting requested review from stirby

Assignees

@matifalimatifali

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@matifali@johnstcn@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp