-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(grouping): Call _save_aggregate_new
when feature flag enabled
#64851
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: src/sentry/event_manager.py
Did you find this useful? React with a 👍 or 👎 |
6eabddc
to
617d576
Compare
a0e70c6
to
41dba16
Compare
_save_aggregate_new
when feature flag enabled_save_aggregate_new
when feature flag enabled
617d576
to
e517e7e
Compare
41dba16
to
4d75869
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: it would be nice if you linked the PR this was stacked on top of, since GH's UI is not the best for navigating these
Sorry - hadn't yet linked them all in the epic: #61661 (You'll notice I'm being super step-by-step-y with these changes. I really don't want to break ingestion.) |
e517e7e
to
7f7df6f
Compare
4d75869
to
a56444f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the eventual goal here to remove the existing save_aggregate
and rename this new one?
Indeed. Well, actually, that's a lie. Once the old version is gone, all of the logic from |
7f7df6f
to
813c4b0
Compare
a56444f
to
5f3a76f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #64851 +/- ##
==========================================
- Coverage 81.40% 81.40% -0.01%
==========================================
Files 5251 5251
Lines 232145 232145
Branches 45581 45581
==========================================
- Hits 188987 188972 -15
- Misses 37276 37285 +9
- Partials 5882 5888 +6 |
5f3a76f
to
b34661e
Compare
b34661e
to
92c5d00
Compare
…nabled (#64857) This is a follow-up to #64851, and does a similar thing: Before modifying the logic of `find_existing_grouphash`, it creates an identical copy, `find_existing_grouphash_new`, to be called in the feature-flag-on branch of `assign_event_to_group` (via `_save_aggregate_new`). As in that PR, the reason for doing this is so that it will be easier to tell what actually changes between the current version of the function and the new version once those changes are made.
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
This PR is a step towards updating the logic of
_save_aggregate
. The new logic will be contained in a separate function, so as a first step, this PR creates the new function, with identical logic to_save_aggregate
. That way, when changes are made, they'll be starting from the same baseline as they would be were_save_aggregate
itself being modified, which should hopefully make reviewing easier. It also switches to calling this new function in the flag-on branch ofassign_event_to_group
.Finally, to make sure that everything still works as expected, the
assign_event_to_group
tests have been modified to now run both branches, flag on and flag off.