File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
src/sentry/grouping/ingest Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -381,23 +381,8 @@ def maybe_check_seer_for_matching_grouphash(
381
381
)
382
382
return None
383
383
384
- # Find the GroupHash corresponding to the hash value sent to Seer
385
- #
386
- # TODO: There shouldn't actually be more than one hash in `all_grouphashes`, but
387
- # a) there's a bug in our precedence logic which leads both in-app and system stacktrace
388
- # hashes being marked as contributing and making it through to this point, and
389
- # b) because of how we used to compute secondary and primary hashes, we keep secondary
390
- # hashes even when we don't need them.
391
- # Once those two problems are fixed, there will only be one hash passed to this function
392
- # and we won't have to do this search to find the right one to update.
393
- primary_hash = event .get_primary_hash ()
394
-
395
- grouphash_sent = list (
396
- filter (lambda grouphash : grouphash .hash == primary_hash , all_grouphashes )
397
- )[0 ]
398
-
399
384
# Update the relevant GroupHash with Seer results
400
- gh_metadata = grouphash_sent .metadata
385
+ gh_metadata = event_grouphash .metadata
401
386
if gh_metadata :
402
387
403
388
# TODO: This should never be true (anything created with `objects.create` should have an
You can’t perform that action at this time.
0 commit comments