Recreate team resource on change to list of members. This allows a user to be deleted along with team membership(s). #35
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/terraform-provider-gitea#35
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "tobiasbp/terraform-provider-gitea:recreate-team-on-membership-change"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR recreates a team resource whenever the list of team members change.
This change is needed, as the deletion of a user who has a team membership will fail otherwise. This is because the user can not be deleted because it is a member of a team. The issue is described here: #30
Longer term, I think we should have a gitea_team_membership resource representing a user's membership of a team. That should make us able to not recreate the team on membership change.
I believe the recreating the team as proposed in this PR is not the best solution as:
This PR will no longer be relevant if the following PR is accepted: #36
Thanks for all the PRs. Closing as 36 has been merged :)
Pull request closed