From 3d6076678b7b52093fce39673f7526f00a22582c Mon Sep 17 00:00:00 2001 From: Jian Yuan Lee Date: Thu, 19 Jan 2023 22:24:59 +0000 Subject: [PATCH] Add notice about omitting the name property --- docs/resources/issue_alert.md | 4 ++-- sentry/resource_sentry_issue_alert.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/resources/issue_alert.md b/docs/resources/issue_alert.md index 80e68c463..d813f01b3 100644 --- a/docs/resources/issue_alert.md +++ b/docs/resources/issue_alert.md @@ -3,12 +3,12 @@ page_title: "sentry_issue_alert Resource - terraform-provider-sentry" subcategory: "" description: |- - Sentry Issue Alert resource. Note that there's no public documentation for the values of conditions, filters, and actions. You can either inspect the request payload sent when creating or editing an issue alert on Sentry or inspect Sentry's rules registry in the source code https://github.com/getsentry/sentry/tree/master/src/sentry/rules. + Sentry Issue Alert resource. Note that there's no public documentation for the values of conditions, filters, and actions. You can either inspect the request payload sent when creating or editing an issue alert on Sentry or inspect Sentry's rules registry in the source code https://github.com/getsentry/sentry/tree/master/src/sentry/rules. Since v0.11.2, you should also omit the name property of each condition, filter, and action. --- # sentry_issue_alert (Resource) -Sentry Issue Alert resource. Note that there's no public documentation for the values of conditions, filters, and actions. You can either inspect the request payload sent when creating or editing an issue alert on Sentry or inspect [Sentry's rules registry in the source code](https://github.com/getsentry/sentry/tree/master/src/sentry/rules). +Sentry Issue Alert resource. Note that there's no public documentation for the values of conditions, filters, and actions. You can either inspect the request payload sent when creating or editing an issue alert on Sentry or inspect [Sentry's rules registry in the source code](https://github.com/getsentry/sentry/tree/master/src/sentry/rules). Since v0.11.2, you should also omit the name property of each condition, filter, and action. ## Example Usage diff --git a/sentry/resource_sentry_issue_alert.go b/sentry/resource_sentry_issue_alert.go index ec402f4ec..16a3bd871 100644 --- a/sentry/resource_sentry_issue_alert.go +++ b/sentry/resource_sentry_issue_alert.go @@ -18,7 +18,8 @@ func resourceSentryIssueAlert() *schema.Resource { Description: "Sentry Issue Alert resource. Note that there's no public documentation for the " + "values of conditions, filters, and actions. You can either inspect the request " + "payload sent when creating or editing an issue alert on Sentry or inspect " + - "[Sentry's rules registry in the source code](https://github.com/getsentry/sentry/tree/master/src/sentry/rules).", + "[Sentry's rules registry in the source code](https://github.com/getsentry/sentry/tree/master/src/sentry/rules). " + + "Since v0.11.2, you should also omit the name property of each condition, filter, and action.", CreateContext: resourceSentryIssueAlertCreate, ReadContext: resourceSentryIssueAlertRead,