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

chore(grouping): Remove all uses of non-optimized-grouping-related code #78260

Merged

Conversation

lobsterkatie
Copy link
Member

As a first step towards removing the now-unused code paths related to non-optimized grouping, this removes all references to them, both in production code and in tests. Spedifically:

  • Remove the branch in assign_event_to_group which calls _save_aggregate.
  • Stop tagging both job and metrics with whether or not optimization is being used.
  • In tests where we test both optimized and non-optimized grouping, remove the non-optimized cases.
  • Remove the test of which path is taken.

The code itself will be removed in a follow-up PR.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 27, 2024
@lobsterkatie lobsterkatie changed the title chore(grouping): Remove all uses of non-optimized-related-code chore(grouping): Remove all uses of non-optimized-grouping-related code Sep 27, 2024
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #78260       +/-   ##
===========================================
+ Coverage   57.37%   78.10%   +20.73%     
===========================================
  Files        7055     7067       +12     
  Lines      311278   311798      +520     
  Branches    50894    50964       +70     
===========================================
+ Hits       178598   243534    +64936     
+ Misses     122532    56503    -66029     
- Partials    10148    11761     +1613     

@lobsterkatie lobsterkatie merged commit 0f3a8d9 into master Sep 27, 2024
50 checks passed
@lobsterkatie lobsterkatie deleted the kmclb-remove-usage-of-non-optimized-grouping-code-paths branch September 27, 2024 21:12
lobsterkatie added a commit that referenced this pull request Sep 30, 2024
This is a follow up to #78260, which removed all references to code related to the non-unused non-optimized grouping logic, actually removing the code itself. Code which is removed includes:

- `_save_aggregate` (the main function controlling the legacy behavior) and its helpers `get_hash_values` and `_get_group_creation_kwargs`
- `project_uses_optimized_grouping`, which controls which code path to follow
- the `grouping-suppress-unnecessary-secondary-hash` feature flag and the `config_transition.killswitch_enabled` option

Once this code is removed there are a few places where we'll be able to clean up what remains, but for ease of review I'm going to do those separately in follow-up PRs.
@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants