-
Notifications
You must be signed in to change notification settings - Fork 318
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 printing_merge_request_link_enabled attribute to projects #783
Conversation
Currently, the field seems to be only used on "Create" but as the documentation shows, GET/PUT methods also have it supported. More info: - https://docs.gitlab.com/ee/api/projects.html - https://gitlab.com/gitlab-org/gitlab/-/merge_requests/76938 - https://github.com/gitlabhq/terraform-provider-gitlab/issues/782 - gitlabhq/terraform-provider-gitlab#783
This requires xanzy/go-gitlab#1343 to be merged and released, together with an update of the go-gitlab client. |
Thanks for the PR @marceloboeira. Once that go-gitlab feature is merged, you can feel free to upgrade it as part of this PR. Could you also add that field to the test? |
41fed04
to
c0f8db0
Compare
I just added to the |
Yep, that works. Most of our tests set all the fields, and the in the subsequent "upgrade" test step they change all the fields. |
UPDATE 24.01.22 The PR on gitlab client side has been merged, but still need a release so that we can use a "final" release rather than a commit sha. Once the release is done I can update the code to point to that release and move it forward. |
This pull request has merge conflicts. Please rebase your branch onto |
@marceloboeira there has been a go-gitlab release some days ago, which we've already integrated. Therefore, I think you could continue here. Please make also sure to rebase before continuing as we've changed quite some things ;) |
c0f8db0
to
269da19
Compare
Conflicts are resolved. Thank you! 😀 |
269da19
to
4aceac6
Compare
thanks @timofurrer, I have rebased/adjusted accordingly hehe hopefully this time is a go |
1daf5ef
to
48bb8e0
Compare
f5dc2c5
to
9a9857c
Compare
@marceloboeira As a tip if you didn't know, you can run |
9a9857c
to
196ef54
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.
lgtm 🎉
@timofurrer I'm going to figure out the specs failing, I believe it's something related to defaults... |
4a44fb8
to
35a893a
Compare
somehow that fails, I have to review my gosetup on a new laptop :D |
Could you let us know if you find out, so we can fix or add it to the CONTRIBUTING.md 🙏 |
Yes, I want to ship this one and then I will take a look if the error I have is a local problem or general incompatibility + if its worth reporting too 👍🏼 |
This pull request has merge conflicts. Please rebase your branch onto |
35a893a
to
ef08e4b
Compare
Conflicts are resolved. Thank you! 😀 |
As mentioned on gitlabhq#782, the field is available on GitLab but still not possible to use on terraform Reference: - gitlabhq#782
0b73948
to
523b8f2
Compare
@timofurrer @armsnyder finally looking good ehhe |
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.
LGTM 🎉
This functionality has been released in v3.10.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! |
Currently, the field seems to be only used on "Create" but as the documentation shows, GET/PUT methods also have it supported. More info: - https://docs.gitlab.com/ee/api/projects.html - https://gitlab.com/gitlab-org/gitlab/-/merge_requests/76938 - https://github.com/gitlabhq/terraform-provider-gitlab/issues/782 - gitlabhq/terraform-provider-gitlab#783
As mentioned on #782, the field is available on GitLab but still not
possible to use on terraform
Reference: