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(escalating-issues): Handle issue states for merged groups #51048

Closed
wants to merge 29 commits into from

Conversation

jangjodi
Copy link
Member

@jangjodi jangjodi commented Jun 15, 2023

On group merge we should:

  • Delete the individual Issues EscalatingForecasts and create a new forecast for the combined Issue
  • Inherit on the GroupStatus, GroupInboxReason and GroupHistory of the primary Issue

closes #49891

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 15, 2023
@jangjodi jangjodi marked this pull request as ready for review June 15, 2023 20:27
@jangjodi jangjodi requested a review from a team as a code owner June 15, 2023 20:27
@jangjodi jangjodi requested a review from a team June 15, 2023 20:27
@@ -43,11 +44,25 @@ def handle_merge(
Group.objects.filter(id__in=group_ids_to_merge).update(status=GroupStatus.PENDING_MERGE)

transaction_id = uuid4().hex
has_escalating_flag = features.has(
"organizations:escalating-issues", primary_group.organization
Copy link
Contributor

Choose a reason for hiding this comment

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

this feature should be under the escalating-issues-v2 feature flag

@@ -162,6 +183,10 @@ def merge_groups(
"model": Group.__name__,
},
)
group_history = GroupHistory.objects.filter(group=group)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can simplify and call .delete() on the .filter() query

@getsantry getsantry bot added the Stale label Oct 19, 2023
@getsantry getsantry bot closed this Oct 27, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 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 Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle Issue States for Merged Issues
3 participants