-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(slack): Allow team unlinking from slack in the UI #29682
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
Conversation
size-limit report
|
src/sentry/models/externalactor.py
Outdated
| install.notify_remove_external_team(external_team=self, team=self.actor.resolve()) | ||
| install.remove_notification_settings(actor_id=self.actor_id, provider=self.provider) |
There was a problem hiding this comment.
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?
e99866d to
c8caa5a
Compare
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.
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 teamfor any other reason, they'll still be able to go through the UI to remove the mapping.TODO
DEMOS
link.+.unlink.team.demo.mov
existing.ext-team.deletion.mov