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

fix(merges): Derive projects from group IDs #81434

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented Nov 28, 2024

The developer may be viewing multiple projects, however, they may merge issues belonging to the same project.

If all groups belong to the same project, support merging them.

Fixes #81433

The developer may be viewing multiple projects, however, they may merge issues belonging to the same project.

If all groups belong to the same project, support merging them.

Fixes #81433
@armenzg armenzg self-assigned this Nov 28, 2024
@armenzg armenzg marked this pull request as ready for review November 28, 2024 19:20
@armenzg armenzg requested a review from a team as a code owner November 28, 2024 19:20
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 28, 2024
"""Even if the UI calls with multiple projects, if the groups belong to the same project, we should merge them."""
projects = [self.create_project(), self.create_project()]
proj1 = projects[0]
groups = [self.create_group(proj1), self.create_group(proj1)]
Copy link
Member Author

Choose a reason for hiding this comment

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

Notice that both groups are created for the same project even though the API is going to be called with multiple project ids.

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/api/helpers/group_index/update.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #81434      +/-   ##
==========================================
+ Coverage   78.45%   80.39%   +1.94%     
==========================================
  Files        7227     7229       +2     
  Lines      319545   319736     +191     
  Branches    20803    20803              
==========================================
+ Hits       250703   257056    +6353     
+ Misses      68449    62287    -6162     
  Partials      393      393              

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Issues Product Area: Issues Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support merging issues for the same project even when viewing many projects
2 participants