You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gitlab_topic resource allows to manage the lifecycle of topics that are then assignable to projects.
7
-
Topics are the successors for project tags. Aside from avoiding terminology collisions with Git tags, they are more descriptive and better searchable.
8
-
~> Deleting a resource doesn't delete the corresponding topic as the GitLab API doesn't support deleting topics yet. You can set soft_destroy to true if you want the topics description to be emptied instead.
7
+
-> Topics are the successors for project tags. Aside from avoiding terminology collisions with Git tags, they are more descriptive and better searchable.
8
+
~> Deleting a topic was implemented in GitLab 14.9. For older versions of GitLab set soft_destroy = true to empty out a topic instead of deleting it.
9
9
Upstream API: GitLab REST API docs for topics https://docs.gitlab.com/ee/api/topics.html
10
10
---
11
11
12
12
# gitlab_topic (Resource)
13
13
14
14
The `gitlab_topic` resource allows to manage the lifecycle of topics that are then assignable to projects.
15
15
16
-
Topics are the successors for project tags. Aside from avoiding terminology collisions with Git tags, they are more descriptive and better searchable.
16
+
-> Topics are the successors for project tags. Aside from avoiding terminology collisions with Git tags, they are more descriptive and better searchable.
17
17
18
-
~> Deleting a resource doesn't delete the corresponding topic as the GitLab API doesn't support deleting topics yet. You can set soft_destroy to true if you want the topics description to be emptied instead.
18
+
~> Deleting a topic was implemented in GitLab 14.9. For older versions of GitLab set `soft_destroy = true` to empty out a topic instead of deleting it.
19
19
20
20
**Upstream API**: [GitLab REST API docs for topics](https://docs.gitlab.com/ee/api/topics.html)
Description: `The `+"`gitlab_topic`"+` resource allows to manage the lifecycle of topics that are then assignable to projects.
17
17
18
-
Topics are the successors for project tags. Aside from avoiding terminology collisions with Git tags, they are more descriptive and better searchable.
18
+
-> Topics are the successors for project tags. Aside from avoiding terminology collisions with Git tags, they are more descriptive and better searchable.
19
19
20
-
~> Deleting a resource doesn't delete the corresponding topic as the GitLab API doesn't support deleting topics yet. You can set soft_destroy to true if you want the topics description to be emptied instead.
20
+
~> Deleting a topic was implemented in GitLab 14.9. For older versions of GitLab set `+"`soft_destroy = true`"+` to empty out a topic instead of deleting it.
21
21
22
22
**Upstream API**: [GitLab REST API docs for topics](https://docs.gitlab.com/ee/api/topics.html)
23
23
`,
@@ -39,7 +39,8 @@ Topics are the successors for project tags. Aside from avoiding terminology coll
39
39
"soft_destroy": {
40
40
Description: "Empty the topics fields instead of deleting it",
41
41
Type: schema.TypeBool,
42
-
Required: true,
42
+
Optional: true,
43
+
Deprecated: "GitLab 14.9 introduced the proper deletion of topics. This field is no longer needed.",
43
44
},
44
45
"description": {
45
46
Description: "A text describing the topic",
@@ -125,27 +126,43 @@ func resourceGitlabTopicUpdate(ctx context.Context, d *schema.ResourceData, meta
0 commit comments