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): Stop calling _save_aggregate #77838

Closed
wants to merge 2 commits into from

Conversation

lobsterkatie
Copy link
Member

As of #77027, all projects are using the new grouping config transition flow, because project_uses_optimized_grouping now always returns True. We can therefore start removing the old code path.

This takes the first step in that direction by removing the call to the old version of the _save_aggregate function. Though this isn't strictly necessary before removing the function (since now no one should be going through the branch which calls it), this makes it extra obvious that nothing can go wrong when that happens.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 20, 2024
@lobsterkatie lobsterkatie marked this pull request as ready for review September 20, 2024 06:25
@lobsterkatie lobsterkatie requested a review from a team as a code owner September 20, 2024 06:25
Copy link
Member

@armenzg armenzg left a comment

Choose a reason for hiding this comment

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

Can you please make all changes in one shot? It does not seem to be too many changes and the PR should not be too overwhelming to review.

received_timestamp=job["received_timestamp"],
metric_tags=metric_tags,
)
group_info = _save_aggregate_new(
Copy link
Member

Choose a reason for hiding this comment

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

Can we renamed it as part of this?

@lobsterkatie
Copy link
Member Author

Can you please make all changes in one shot? It does not seem to be too many changes and the PR should not be too overwhelming to review.

Okay - I was going to do it in stages and PR as I went, but lemme actually do all the steps and see how big it ends up being. I'll leave this open for now but won't merge it.

@lobsterkatie
Copy link
Member Author

UPDATE:

I did the whole thing out, and it was pretty big, so I ended up splitting it in 4:

#78260
#78261
#78262
#78268

Closing this in favor of those.

@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