getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.48k stars 4.11k forks source link

Teams page incorrectly marks memberships as managed by identity provider and disallows management #71965

Open knorby opened 3 months ago

knorby commented 3 months ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

I'm a little unclear on exactly what's causing this issue, but our account is managed with a saml provider with a single team managed by it. All other team memberships are managed with the Sentry terraform provider. Our terraform team mapping doesn't seem capable of deleting memberships, hence why we look to the team page to remove members. This issue only seems to effect teams managed with this terraform provider.

  1. Create team in Terraform
  2. Locate the member's member ID from the organization member mapping
  3. Create the team membership mapping with the sentry_team_member resource
  4. View the team under /settings/teams/ and look for the membership

Expected Result

When viewing the team on the /settings/teams/ page, teams memberships created with Terraform should be removable. Only teams managed by the identity provider should have unremovalable members.

Actual Result

Team memberships created with the method described listed on team /settings/teams/ page have grayed out remove button indicating that the team member cannot be removed as it is managed by the identity provider. This issue seems to be an issue with the teams page in particular, as the team can be removed from the /settings/members/ page (with the exception of the actual identity provider managed team).

Screenshot 2024-06-03 at 18 12 20

Product Area

Settings - Teams

Link

No response

DSN

No response

Version

No response

┆Issue is synchronized with this Jira Improvement by Unito

getsantry[bot] commented 3 months ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 3 months ago

Routing to @getsentry/product-owners-settings-teams for triage ⏲️

Dhrumil-Sentry commented 3 months ago

The Sentry Terraform provider is sponsored by Sentry but we work with a contractor to maintain it, Please open a GH issue in this repo: https://github.com/jianyuan/terraform-provider-sentry/issues cc @irodrigues-git