-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when handling externally-deleted organization member #446
Comments
Thanks for this one 🙏 |
Hello, I feel this is not specific to team members but generic to multiple resources. resource "sentry_key" "this" {
organization = data.sentry_organization.this.id
project = sentry_project.this[0].slug
name = local.sentry_env
}
resource "sentry_issue_alert" "main" {
count = contains(local.tf_workspaces_for_sentry, terraform.workspace) ? 1 : 0
organization = data.sentry_organization.this.id
project = sentry_project.this[0].slug
name = "[${local.sentry_env}] Send a notification for high priority issues"
environment = local.sentry_env
filter_match = "all"
conditions = jsonencode([
{ "id" : "sentry.rules.conditions.high_priority_issue.NewHighPriorityIssueCondition" },
{ "id" : "sentry.rules.conditions.high_priority_issue.ExistingHighPriorityIssueCondition" }
])
frequency = 30
action_match = "any"
actions = jsonencode([
{
"id" : "sentry.mail.actions.NotifyEmailAction",
"targetType" : "Team",
"targetIdentifier" : tonumber(data.sentry_team.this.internal_id),
"fallthroughType" : "AllMembers",
},
{
"id" : "sentry.integrations.msteams.notify_action.MsTeamsNotifyServiceAction",
"team" : tonumber(data.sentry_organization_integration.msteams.id),
"channel" : var.project.alerts.notification.ms_teams.channel_name
}
])
}
|
I've encountered the same issue for
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the provider doesn't appear to handle unexpected organization member deletions well. For example:
An unexpected organization member removal would cause:
This seems to happen when a member doesn't accept their invite for an extended period of time and Sentry appears to remove the invite.
The text was updated successfully, but these errors were encountered: