Repository navigation
Commit 7db689a
committed
fix(teams): Keep a team's issue subscriptions when removing a pending invite
Removing a member from a team unsubscribes them from the team's issues with
GroupSubscription.filter(user_id=member.user_id). A pending invite has no
user, so user_id=None matched the team's own subscriptions (user_id is NULL on
those rows) and deleted them.1 parent cbc4755 commit 7db689a
2 files changed
Lines changed: 23 additions & 0 deletions
File tree
- src/sentry/core/endpoints
- tests/sentry/core/endpoints
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
589 | 592 | | |
590 | 593 | | |
591 | 594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
803 | 823 | | |
804 | 824 | | |
805 | 825 | | |
| |||
0 commit comments