Skip to content
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

Use resourceGitlabGroupMembershipUpdate for both create and update #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ben-z
Copy link
Member

@ben-z ben-z commented Jan 29, 2023

This PR handles the case where a membership already exists (e.g. manually added member).

Previously, we get an HTTP error 409. Now we don't get that error and the create operation is idempotent.

Related issue:
https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/issues/993

GitHub provider's implementation (the inspiration for this PR):
https://github.com/integrations/terraform-provider-github/blob/f2aacaf90d290cc1826daec0dbed80f4a79c7657/github/resource_github_membership.go#L43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant