Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add owner group to workspace data #204

Merged
merged 7 commits into from
Apr 2, 2024
Merged

feat: add owner group to workspace data #204

merged 7 commits into from
Apr 2, 2024

Conversation

f0ssel
Copy link
Contributor

@f0ssel f0ssel commented Apr 2, 2024

Groundwork for coder/coder#8560

@f0ssel f0ssel requested review from kylecarbs and sreya April 2, 2024 20:07
provider/workspace_test.go Outdated Show resolved Hide resolved
@f0ssel f0ssel merged commit 176fb6a into main Apr 2, 2024
11 checks passed
@f0ssel f0ssel deleted the f0ssel/owner-groups branch April 2, 2024 23:01
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2024
Comment on lines +40 to +45
ownerGroupsText := os.Getenv("CODER_WORKSPACE_OWNER_GROUPS")
var ownerGroups []string
err := json.Unmarshal([]byte(ownerGroupsText), &ownerGroups)
if err != nil {
return diag.Errorf("couldn't parse owner groups %q", ownerGroupsText)
}
Copy link
Member

Choose a reason for hiding this comment

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

This isn't guaranteed to be set :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants