-
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
TF-5568 add support for project custom permissions #745
TF-5568 add support for project custom permissions #745
Conversation
eb9d82b
to
253869a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing @rberecka!
7f7ceb4
to
d423935
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of observations related to the name changes, but this looks really good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
@rberecka Great work on this PR ✨ I noticed there is a TeamProjectAccess struct, and a TeamProjectAccesses interface. The naming is almost identical and I'm wondering if it's too late to propose something like a
Not to mention this is customer-facing. What do you think? How can I support? |
Unfortunately given go-tfe's v1.0 nature and this interface being exported, we can't rename |
This would be a breaking change for v1.0 but what are your thoughts for v2.0? Or is it not worth it at that point? @sebasslash |
I think over time if we can identify multiple quirks with our naming conventions as well as other potentially breaking changes that would improve the DX, we can build a good case for a v2.0. For the time being, v2.0 in go-tfe is in the way distant future. |
Fair! Thanks for weighing-in @sebasslash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work 🔥 ! My comments are mostly regarding code organization and testing
6ed29fe
to
c8d742c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR has my approval pending the naming changes to scope these permission structs to the parent resource TeamProjectAccess
. Awesome work @rberecka !!
I ran the tests locally ✅
a83a11c
to
4b3e1c7
Compare
444c2a5
to
a86268b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we capitalize here
Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes. |
Description
Add ability to choose custom access for team projects. Once selected, users can then choose to set a variety of customizable permissions to different levels of access. For example, if I add a team project and set the
TeamProjectAccessAddOptions
to includeaccess: "custom"
I can then also configure different permissions that will apply to either the project itself (project-access
) or all workspace in the project (workspace-access
).Authored with @jbonhag
Testing plan
Pull down locally
Run tests below and comment out the
skipUnlessBeta(t)
flag. Once we have roll out the feature to TFE and remove the feature flag, we'll remove these skips as well.External links
Output from tests
If you run atlas locally you can run the tests with the
ENABLE_BETA=1
environment variable.