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
Add SAML Group link resource #1215
Conversation
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.
Welcome @mhodgson 👋
It looks like this is your first submission to the Terraform GitLab Provider! If you haven’t already done so, please make sure you have checked out our CONTRIBUTING.md guide to make sure your contribution has all the necessary elements in place for a successful approval.
Thanks again, and welcome to the community! 😃
nice @mhodgson - thanks for the submission! I've thrown a watch on the xanzy repo upstream to see when that's merged. @timofurrer - were you added a maintainer there for reviews? I know we'd talked about that in one of the community hours. |
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.
Hey @mhodgson 👋
Thanks for the contribution! I think it's going into the right direction 🎉
I've added a few suggestions and things to align with the other recently added resources and styles and a some nitpicks.
Back to you 🏓
No, I haven't unfortunately. However, I've just given the change set here an initial review! @PatrickRice-KSC feel free to add your comments to and @mhodgson let us know if you need anything! I'm looking forward to have this resource in the provider 🎉 |
@timofurrer just as a general FYI, I mostly copied the |
Yeah ... Unfortunately, some resources are quite old and desperately need some love. Sorry for the inconvenience 🙏 |
@mhodgson @PatrickRice-KSC see my comment here: xanzy/go-gitlab#1527 (comment) I think if the upstream MR can get into 15.3 we can simplify this resource a bit and don't have to search for the proper saml group link in response from the list endpoint. If it doesn't make it - we can merge as-is I guess. |
@mhodgson - in case you didn't see the comment thread on the upstream gitlab issue, the API has been updated to accept the integer values instead of the string values to match other APIs 🙂 |
While working on gitlabhq/terraform-provider-gitlab#1215 I have noticed that the access level type introcued in xanzy#1527 is wrong.
@mhodgson I've added an additional fix in go-gitlab: xanzy/go-gitlab#1531 Could you please enable that maintainer of this repository can change the PR change set? I've added some cleanup things on a commit on this branch: https://github.com/gitlabhq/terraform-provider-gitlab/pull/new/feature/saml-group-links |
@timofurrer do you know how I enable that? I don't see that permission. |
@timofurrer I'm very sorry, but I do not see anything that resembles what the document you link suggests. |
@timofurrer I cherry-picked your commit. |
@mhodgson you also need to rebase to latest |
43fb2cf
to
6a43bd9
Compare
@timofurrer how do we exclude < 15.3 from the acceptance test matrix for the tests for this resource? |
@mhodgson Good point! You can use this pattern: terraform-provider-gitlab/internal/provider/data_source_gitlab_cluster_agent_test.go Line 15 in 47e8ddd
|
@timofurrer I think it's good to go now. Looks like it just needs approval from your review. |
@mhodgson btw. something went wrong with your latest rebase I think (looking at the diff) 🤔 |
6d68d16
to
857a9c4
Compare
Conflicts are resolved. Thank you! 😀 |
@timofurrer sorry, rebased against origin instead of upstream. Rookie mistake... I wouldn't say this is super urgent, but not sure on timeline for next release. I'd like to try to get it in the next few weeks if possible. |
@mhodgson AFAIK, this will get into a bug fix release 15.3.2 - not sure when it's released though. You may follow it a little here: |
I think it makes sense to push it with a bugfix version just because it's so widely used, and would be extremely nice to use within the provider (we plan to use it as soon as it's available too 🙂 ). |
@mhodgson false alarm :'( I've just learned that apparently this didn't make it into 15.3.2 as was planned: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/96117#note_1083680405 |
While working on gitlabhq/terraform-provider-gitlab#1215 I have noticed that the access level type introcued in xanzy#1527 is wrong.
While working on gitlabhq/terraform-provider-gitlab#1215 I have noticed that the access level type introcued in xanzy#1527 is wrong.
This functionality has been released in v3.18.0 of the Terraform GitLab Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue. Thank you! |
Description
Closes #503, #1214
BLOCKED: Note this requires an update to the Gitlab Go Client. a PR for the required update is here: xanzy/go-gitlab#1527
PR Checklist Acknowledgement
//lintignore
comments were copied from existing code. (Linter rules are meant to be enforced on new code.)