-
Notifications
You must be signed in to change notification settings - Fork 102
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
Workspaces.Read should return "locked-by" relationship #267
Comments
@rmadamanchi Hi and thank you for bringing this up! If you are interested in working on this change, we definitely welcome your initiative. As you are making your changes and if you need assistance, please feel free to ping me directly on your PR and I'll come to your help! Does that sound good? |
I have an update on this issue. The change you suggested will be included as part of this PR: https://github.com/hashicorp/go-tfe/pull/294/files . So no need to open a separate PR. Thank you for offering the help though! |
You have added the |
Previous commenter is correct — this is still an outstanding omission from the API! In fact, I just ran into a situation in Terraform's cloud integration where I needed it and couldn't have it. 😅 I'm going to re-open this, and make sure it gets a dupe on our jira board. A notable difficulty with implementing this:
(I just checked, and yes, org tokens are not allowed to lock a workspace, they get 404 even if they can read the ws.) So, the actual value of the LockedBy relationship field on the struct will probably have to be a new "faked-up sum type", similar to what I was doing with cloud plan files in Terraform core:
|
The Workspace struct currently does not have a field to capture the "locked-by" relationship
https://www.terraform.io/docs/cloud/api/workspaces.html#locked_by
Happy to do a PR
The text was updated successfully, but these errors were encountered: