Skip to content
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

feat(team-workflow): Add subscription for team in GroupSubscription #55825

Merged
merged 10 commits into from
Sep 12, 2023

Conversation

isabellaenriquez
Copy link
Member

@isabellaenriquez isabellaenriquez commented Sep 6, 2023

Updates subscribe_actor to no longer read all the team's users and instead subscribe the Team itself if the team-workflow-notifications feature flag is enabled. Also updates subscribe so that it can accept a Team as a subscriber, not just Users or RpcUsers.

Part 1 of #55556

❗ BLOCKED BY #55879

@isabellaenriquez isabellaenriquez self-assigned this Sep 6, 2023
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 6, 2023
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #55825 (bb9d84c) into master (8a3850a) will decrease coverage by 1.70%.
Report is 5 commits behind head on master.
The diff coverage is 90.00%.

@@            Coverage Diff             @@
##           master   #55825      +/-   ##
==========================================
- Coverage   79.98%   78.29%   -1.70%     
==========================================
  Files        5063     5064       +1     
  Lines      217835   217881      +46     
  Branches    36878    36885       +7     
==========================================
- Hits       174241   170584    -3657     
- Misses      38247    41892    +3645     
- Partials     5347     5405      +58     
Files Changed Coverage
src/sentry/api/endpoints/group_notes.py ø
src/sentry/api/helpers/group_index/update.py ø
src/sentry/issues/status_change.py ø
src/sentry/receivers/releases.py ø
src/sentry/models/groupsubscription.py 90.00%

@isabellaenriquez

This comment was marked as outdated.

@@ -88,6 +97,23 @@ def test_actor_team(self):
# should not error
GroupSubscription.objects.subscribe_actor(group=group, actor=team)

@with_feature("organizations:team-workflow-notifications")
def test_subscribe_team(self):
Copy link
Member

Choose a reason for hiding this comment

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

nice! good test to add in!

@isabellaenriquez isabellaenriquez marked this pull request as ready for review September 12, 2023 17:29
@isabellaenriquez isabellaenriquez requested a review from a team as a code owner September 12, 2023 17:29
@isabellaenriquez isabellaenriquez merged commit e69b158 into master Sep 12, 2023
53 checks passed
@isabellaenriquez isabellaenriquez deleted the isabellaenriquez/subscribe-team-not-users branch September 12, 2023 18:31
@isabellaenriquez isabellaenriquez added the Trigger: Revert add to a merged PR to revert it (skips CI) label Sep 12, 2023
@getsentry-bot
Copy link
Contributor

PR reverted: 6efc462

getsentry-bot added a commit that referenced this pull request Sep 12, 2023
…ription` (#55825)"

This reverts commit e69b158.

Co-authored-by: isabellaenriquez <45607721+isabellaenriquez@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components Trigger: Revert add to a merged PR to revert it (skips CI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants