Skip to content

Commit ecd9d11

Browse files
authored
Deprecate is_bookmarked (#17)
1 parent 5cafdb8 commit ecd9d11

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

sentry/resource_sentry_project.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ func resourceSentryProject() *schema.Resource {
5050
Computed: true,
5151
},
5252
"is_bookmarked": {
53-
Type: schema.TypeBool,
54-
Optional: true,
53+
Type: schema.TypeBool,
54+
Computed: true,
55+
Deprecated: "is_bookmarked is no longer used",
5556
},
5657
"call_sign": {
5758
Type: schema.TypeString,
@@ -124,7 +125,6 @@ func resourceSentryProjectRead(d *schema.ResourceData, meta interface{}) error {
124125
d.Set("slug", proj.Slug)
125126
d.Set("project_id", proj.ID)
126127
d.Set("is_public", proj.IsPublic)
127-
d.Set("is_bookmarked", proj.IsBookmarked)
128128
d.Set("call_sign", proj.CallSign)
129129
d.Set("color", proj.Color)
130130
d.Set("features", proj.Features)
@@ -147,10 +147,6 @@ func resourceSentryProjectUpdate(d *schema.ResourceData, meta interface{}) error
147147
Slug: d.Get("slug").(string),
148148
}
149149

150-
if v, ok := d.GetOk("is_bookmarked"); ok {
151-
params.IsBookmarked = Bool(v.(bool))
152-
}
153-
154150
if v, ok := d.GetOk("digests_min_delay"); ok {
155151
params.DigestsMinDelay = Int(v.(int))
156152
}

0 commit comments

Comments
 (0)