Skip to content

Commit 2a073e0

Browse files
authored
gitlab_group: Revert recent change to visibility_level attribute (#408)
* gitlab_group: Revert recent change to visibility_level attribute * Update group.html.markdown * Update group.html.markdown * Update group.html.markdown
1 parent dc284b3 commit 2a073e0

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
## 2.12.0 (Unreleased)
22

3-
NOTES:
4-
* resource/gitlab_group: Attribute `visibility_level` now defaults to `private`, as was already documented, instead of reading the default from GitLab. This will not affect existing state. [GH-362]
5-
63
FEATURES:
74
* **New Data Source:** `gitlab_group_membership` [GH-264]
85
* **New Resource:** `gitlab_project_level_mr_approvals` [GH-356]

gitlab/resource_gitlab_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func resourceGitlabGroup() *schema.Resource {
6161
"visibility_level": {
6262
Type: schema.TypeString,
6363
Optional: true,
64-
Default: "private",
64+
Computed: true,
6565
ValidateFunc: validation.StringInSlice([]string{"private", "internal", "public"}, true),
6666
},
6767
"share_with_group_lock": {

website/docs/r/group.html.markdown

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ support for projects in this group.
4444
* `request_access_enabled` - (Optional) Boolean, defaults to false. Whether to
4545
enable users to request access to the group.
4646

47-
* `visibility_level` - (Optional) Set to `public` to create a public group.
48-
Valid values are `private`, `internal`, `public`.
49-
Groups are created as private by default.
47+
* `visibility_level` - (Optional) The group's visibility. Can be `private`, `internal`, or `public`.
5048

5149
* `share_with_group_lock` - (Optional) Boolean, defaults to false. Prevent sharing
5250
a project with another group within this group.

0 commit comments

Comments
 (0)