Skip to content

chore(assignment): Add analytics when autoassigning after a manual assignment#45099

Merged
ceorourke merged 1 commit intomasterfrom
ceorourke/wor-2320
Feb 28, 2023
Merged

chore(assignment): Add analytics when autoassigning after a manual assignment#45099
ceorourke merged 1 commit intomasterfrom
ceorourke/wor-2320

Conversation

@ceorourke
Copy link
Member

@ceorourke ceorourke commented Feb 24, 2023

Add an analytics event when a user has already manually assigned an issue and we then auto-assign it.

See WOR-2320 for more in depth explanation.

@ceorourke ceorourke requested review from a team and NisanthanNanthakumar February 24, 2023 21:45
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 24, 2023
}
)

activity = Activity.objects.filter(
Copy link
Member Author

Choose a reason for hiding this comment

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

Idk much about the autoassignment feature, this was tricky to figure out so I hope it's right 😬 if it's not please point me towards how I can determine if an issue already has a manual assignment.

project_id=project_id,
group_id=event.group.id,
)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thinking about just returning early here now - initially I thought we'd gather metrics first and then stop auto-assigning when it's already been manually assigned, but we can still gather metrics for when we would have done it.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd be ok with this too

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I'll just merge this for now and go back tomorrow to return early and write a test 😎

Copy link
Contributor

@NisanthanNanthakumar NisanthanNanthakumar left a comment

Choose a reason for hiding this comment

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

looks good!

@ceorourke ceorourke merged commit a708cfd into master Feb 28, 2023
@ceorourke ceorourke deleted the ceorourke/wor-2320 branch February 28, 2023 00:59
@beezz beezz added the Trigger: Revert Add to a merged PR to revert it (skips CI) label Feb 28, 2023
@getsentry-bot
Copy link
Contributor

PR reverted: e25998f

getsentry-bot added a commit that referenced this pull request Feb 28, 2023
…anual assignment (#45099)"

This reverts commit a708cfd.

Co-authored-by: beezz <1500654+beezz@users.noreply.github.com>
jan-auer added a commit that referenced this pull request Feb 28, 2023
* master: (79 commits)
  feat(perf-issues): Add performance issue detection timing runner command (#44912)
  Revert "chore: Investigating org slug already set to a different value (#45134)"
  fix(hybrid-cloud): Redirect to org restoration page for customer domains (#45159)
  bug(replays): Fix 500 error when marshaling tags field (#45097)
  ref(sourcemaps): Redesign lookup of source and sourcemaps (#45032)
  chore: Investigating org slug already set to a different value (#45134)
  feat(dynamic-sampling): Implement prioritize by project bias [TET-574] (#42939)
  feat(dynamic-sampling): Add transaction name prioritize option - (#45034)
  feat(dyn-sampling): add new bias toggle to project details for prioritise by tx name [TET-717] (#44944)
  feat(admin) Add admin relay project config view [TET-509] (#45120)
  Revert "chore(assignment): Add analytics when autoassigning after a manual assignment (#45099)"
  feat(sourcemaps): Implement new tables supporting debug ids (#44572)
  ref(js): Remove usage of react-document-title (#45170)
  chore(py): Consistently name urls using `organization-` prefix (#45180)
  ref: rename acceptance required checks collector (#45156)
  chore(assignment): Add analytics when autoassigning after a manual assignment (#45099)
  feat(source-maps): Update copy for source map debug alerts (#45164)
  ref(js): Remove custom usage of DocumentTitle (#45165)
  chore(login): update the login banners (#45151)
  ref(py): Remove one more legacy project_id from Environment (#45160)
  ...
ceorourke added a commit that referenced this pull request Mar 1, 2023
This is a followup to #45099
(which was reverted) that fully implements skipping automatic assignment
if the issue has already been manually assigned by a user.


See [WOR-2320](https://getsentry.atlassian.net/browse/WOR-2320) for full
context.

[WOR-2320]:
https://getsentry.atlassian.net/browse/WOR-2320?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@github-actions github-actions bot locked and limited conversation to collaborators Mar 15, 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