-
Notifications
You must be signed in to change notification settings - Fork 319
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
resource/gitlab_application_settings: New experimental resource #1201
resource/gitlab_application_settings: New experimental resource #1201
Conversation
01bc29f
to
8f324cf
Compare
@PatrickRice-KSC can you do me a favor and check if you can reproduce the CI failure locally? |
Hey @timofurrer - for sure. I tried this out on both GitPod (Failed, see first image below), and on a local ubuntu 21.04 vagrant machine (Failed, see second image below) |
@timofurrer As I was looking through the code I don't think I saw anything specific but does there need to be anything done specifically to handle the setting that only appear once someone has an EE license vs a CE |
8f324cf
to
904d17c
Compare
The fields which are unavailable because of the license are "just not working" - you may set the attribute in the config, but will get an upstream error message - you may also access the attribute, but it won't have a value in it. I think for a first version that's good enough. Actually, we do the same in many resources - which is only not really optimal. |
@timofurrer | @Shocktrooper - Is this PR ready for review now? Happy to take a look yet today or tomorrow! |
@PatrickRice-KSC yes, it is :) |
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.
@timofurrer That is a huge PR, I'll probably need to take a second pass through it after you changes just to double check all the sets and everything in the schema file; my brain was getting a bit sketchy partway through reviewing it!
Lots of comments, but they really boil down to 2 topics: Do we really want to support already deprecated attributes that are almost a year deprecated in some cases, and just fixing minor grammar in descriptions.
Thanks!
@PatrickRice-KSC I think those are left in because of the auto generation script. We should probably tweak that to leave those out of anything. An ignorelist persay |
@Shocktrooper @PatrickRice-KSC Yes, that's exactly what happened here. Also the verbiage alignments and ending sentences with a dot etc are because they are not really aligned in the GitLab docs itself. |
@Shocktrooper | @timofurrer - whew, I'm glad most of that code was generated. I got about 1/3 of the way through the PR and thought you guys had written that by hand 😮💨 . That makes sense - thanks! |
918af2f
to
814ca3a
Compare
@Shocktrooper @PatrickRice-KSC I've updated the resource and removed all deprecated fields and did some alignment on the attribute descriptions. However, it's far from perfect, but addressing everything is just too much effort given the size of the resource. I suggest that we experiment with it as-is and in the future increase alignment in attributes and testing - again, maybe we can even provide some OpenAPI specs or something upstream to easily generate this resource. WDYT? 🏓 |
This change set implements the new `gitlab_application_settings` resource which provides a way to change the GitLab Application Settings using the API at https://docs.gitlab.com/ee/api/settings.html#change-application-settings. Even though I suggest that we can merge this first experimental version of the resource there are still quite some open questions for me. I'd like to tackle them over at https://github.com/gitlabhq/terraform-provider-gitlab/issues/957 and give the community the change to take part in the discussion on how to move forward with this. Refs: #957 #1187
814ca3a
to
6432168
Compare
@timofurrer - Makes sense to me, given it's experimental I think we can align to standards a bit more in a next push. I can go through and resolve threads and take another look at it here in a bit to merge. |
This functionality has been released in v3.17.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! |
This change set implements the new
gitlab_application_settings
resource which provides a way to change the GitLab Application Settings
using the API at
https://docs.gitlab.com/ee/api/settings.html#change-application-settings.
Even though I suggest that we can merge this first experimental version
of the resource there are still quite some open questions for me.
I'd like to tackle them over at
https://github.com/gitlabhq/terraform-provider-gitlab/issues/957 and
give the community the change to take part in the discussion on how to
move forward with this.
Refs: #957 #1187