-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(grouping): Clean up obsolete code (#81929)
This is a clean-up of the grouping code, removing a number of bits which have become obsolete: - When the code for parameterizing messages [was abstracted into a `Parameterizer` class](#71078), the tests for message parameterization were simply copied over from `test_normalize_message.py` into `test_parameterization.py`. Under the hood, `normalize_message_for_grouping`, which the former tests, just calls `Parameterizer.parameterize_all`, which is exactly what is tested by the latter. Thus, the tests duplicate one another, and so this deletes the older `test_normalize_message.py`. - We have two different constants for limiting the number of frames sent to Seer, but only one is used, so this deletes the other one (the one in `group_similar_issues_embeddings.py`). - `BaseGroupingCompoenent` has a `variant_provider` attribute, whose purpose is not explained anywhere and the last use of which was [removed in April of 2021](#25690), so this removes it. - Many of the tests for built-in fingerprints have docstrings which reference a feature flag which was [removed in February](#65137), so this updates those docstrings. - `apply_server_fingerprinting` takes an `allow_custom_title` parameter, whose value was originally based on the `organizations:custom-event-title` feature flag. But that flag was [defaulted to `True` in early 2021](#23090) and [removed entirely in mid 2023](#48808), in favor of its value being hardcoded to `True` in [the one place `apply_server_fingerprinting` is called](https://github.com/getsentry/sentry/blob/474b5c5f3066ba2584d16ae19b5c9a14e7e10416/src/sentry/grouping/ingest/hashing.py#L69-L73). This therefore removes the paramter entirely. - `Enhancements.assemble_stacktrace_component` currently returns a tuple, the second value of which (`rust_results.invert_stacktrace`) was part of hierarchical grouping and [stoped being used](#77235) when hierarchical grouping was removed in September. This therefore changes `assemble_stacktrace_component` to stop returning it and only return the stacktrace component.
- Loading branch information
1 parent
ad13053
commit a4422b0
Showing
9 changed files
with
13 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.