-
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
datasource: gitlab_projects #279
Conversation
Much appreciated - I currently use an external provider to retrieve the list of project_ids in a given group that I want to manage. |
I still do not understand why the acceptance tests I added detect a state drift, I guess I'll have to read the docs more thoroughly, any help would be appreciated! |
@roidelapluie I would definitely love having your input on datasources state drift resolution, I could not make it work. EDIT: so I got it, it seems using explicit depends_on on a datasource does not prevent the related state object to exist, albeit empty, and therefore cause a false state drift detection. Anyways that's how I understand it, it was really informative :) |
Ready for review, this is essentially done. |
Pinging @ringods if I can do anything else to make this PR merged, please let me know, cheers :) |
4d3af60
to
cd2c249
Compare
Hey there, any chance for a review? |
What's required to get this merged ?? |
Hello @oboukili & @thapakazi, I became a maintainer of this provider not so long ago. I'm going over the pull requests backlog one by one. Yesterday, I merged in another PR. While the PR build results were succesful, after merging, the commit on https://github.com/terraform-providers/terraform-provider-gitlab/runs/710870254 I hope you understand that I want to see the |
Totally understandable 👍 , anything we can help you up with? |
@oboukili & @thapakazi the May I ask to rebase your PR, meanwhile also squashing some commits? The current list of commits is quite extensive and I'm not sure it adds to the clarity. |
Tnx for your contribution. I will try to get this in a release later this week. |
Awesome, many thanks for the review @ringods ! |
Released in v2.9.0 |
datasource: gitlab_projects
Picked up the work of https://github.com/terraform-providers/terraform-provider-gitlab/pull/161, as this is a critical missing datasource.
Most credit goes to @enieuw and the original PR contributors.
EDIT: I ended up redoing everything after all, the datasource now supports fully all group and project listProject APIs parameters exposed by the go-gitlab package.