Skip to content

Conversation

@leeandher
Copy link
Member

@leeandher leeandher commented Oct 30, 2021

See API-2206

This PR will allow for users to unlink teams from slack channels through the UI. If the channel is deleted, or they're unable to run /sentry unlink team for any other reason, they'll still be able to go through the UI to remove the mapping.

TODO

  • Send the "This channel will no longer receive issue alert notifications for the {sentry-team} team." message after unlinking.
  • Ensure that other external actor deletions are unaffected
  • Upload demo clips or screenshots

DEMOS

link.+.unlink.team.demo.mov
existing.ext-team.deletion.mov

@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2021

size-limit report

Path Base Size (31d5c37) Current Size Change
src/sentry/static/sentry/dist/entrypoints/app.js 52.73 KB 52.73 KB -0.01% 🔽
src/sentry/static/sentry/dist/entrypoints/sentry.css 70.89 KB 70.89 KB 0%

Comment on lines 43 to 44
install.notify_remove_external_team(external_team=self, team=self.actor.resolve())
install.remove_notification_settings(actor_id=self.actor_id, provider=self.provider)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgaeta So I was trying to do the noop for these functions but since I've built them into a separate mixin (src/sentry/integrations/notifications.py) and import it for the Slack integration (L69 in src/sentry/integrations/slack/integration.py on this PR), the noops are overriding the actual functions in the mixin file. Is there a way around this?

@mgaeta mgaeta assigned leeandher and unassigned mgaeta Nov 2, 2021
@leeandher leeandher merged commit 4ba8c62 into master Nov 3, 2021
@leeandher leeandher deleted the slack-unlink/API-2206 branch November 3, 2021 17:13
leeandher added a commit that referenced this pull request Nov 5, 2021
See #29682

The previous PR included all the business logic for unlinking slack identities from the UI, but I reused an endpoint that was behind a feature flag I was opted in to, so I didn't notice it would 403 unless you had that feature (CODEOWNERS).

The delete methods for external actor endpoints are now NOT feature flagged.
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants