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): Update bulk_subscribe to accept teams #55943

Merged
merged 10 commits into from
Sep 13, 2023

Conversation

isabellaenriquez
Copy link
Member

@isabellaenriquez isabellaenriquez commented Sep 8, 2023

This PR updates bulk_subscribe so that it can accept both teams and user IDs (or either).

❗ BLOCKED BY #55879 and #55825

Closes #55556

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

codecov bot commented Sep 8, 2023

Codecov Report

Merging #55943 (134febc) into master (c2f0c36) will decrease coverage by 0.01%.
Report is 11 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #55943      +/-   ##
==========================================
- Coverage   80.00%   80.00%   -0.01%     
==========================================
  Files        5066     5066              
  Lines      217914   217967      +53     
  Branches    36880    36885       +5     
==========================================
+ Hits       174337   174377      +40     
- Misses      38229    38243      +14     
+ Partials     5348     5347       -1     
Files Changed Coverage
...atic/app/utils/analytics/growthAnalyticsEvents.tsx ø
.../views/settings/projectDebugFiles/debugFileRow.tsx ø
...tic/app/views/settings/projectDebugFiles/index.tsx ø
.../projectDebugFiles/sources/builtInRepositories.tsx ø
...ectDebugFiles/sources/customRepositories/index.tsx ø
...views/settings/projectDebugFiles/sources/index.tsx ø
src/sentry/api/endpoints/debug_files.py 100.00%
src/sentry/models/groupsubscription.py 100.00%
src/sentry/notifications/notifications/digest.py 100.00%
src/sentry/notifications/notifications/rules.py 100.00%

@isabellaenriquez

This comment was marked as outdated.


def test_bulk_user_on_team(self):
"""
Test that ensures bulk_subscribe subscribes users and teams individually, even if one of those users is part of one of those teams.
Copy link
Member

Choose a reason for hiding this comment

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

great comment!

Copy link
Member

@roggenkemper roggenkemper left a comment

Choose a reason for hiding this comment

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

lgtm , but let's get one more approval before we merge

@isabellaenriquez isabellaenriquez merged commit 6f77d14 into master Sep 13, 2023
53 checks passed
@isabellaenriquez isabellaenriquez deleted the isabellaenriquez/bulk-subscribe-teams branch September 13, 2023 21:09
@github-actions github-actions bot locked and limited conversation to collaborators Sep 29, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add subscription for team in models/groupsubscription
4 participants