Skip to content

ref(grouping): Remove CalculatedHashes#77426

Merged
armenzg merged 5 commits intomasterfrom
deprecate/hierarchical_hashes/grouping/armenzg
Sep 17, 2024
Merged

ref(grouping): Remove CalculatedHashes#77426
armenzg merged 5 commits intomasterfrom
deprecate/hierarchical_hashes/grouping/armenzg

Conversation

@armenzg
Copy link
Copy Markdown
Member

@armenzg armenzg commented Sep 12, 2024

Code originally added in #26740

@armenzg armenzg force-pushed the deprecate/hierarchical_hashes/grouping/armenzg branch from deef67b to 6874484 Compare September 16, 2024 18:09
Job = MutableMapping[str, Any]


def extract_hashes(calculated_hashes: CalculatedHashes | None) -> list[str]:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Originally added #65113.

event.data["grouping_config"] = get_grouping_config_dict_for_project(project)
hashes = event.get_hashes()

hashes.write_to_event(event.data)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

get_hashes() now takes care of writing to the event:
image

@armenzg armenzg marked this pull request as ready for review September 16, 2024 18:13
@armenzg armenzg requested a review from a team as a code owner September 16, 2024 18:13
@getsentry getsentry deleted a comment from codecov bot Sep 16, 2024
# We don't set a combo `variants` value here because one set of variants would/could
# partially or fully overwrite the other (it's a dictionary), and having variants from two
# different configs all mixed in together makes no sense.
return (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is it necessary to return the third combined item here? can the callers just concatenate them?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point. I will look into it.

Copy link
Copy Markdown
Member

@JoshFerge JoshFerge left a comment

Choose a reason for hiding this comment

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

makes sense to me. might be good for @lobsterkatie to take a look as well.

@armenzg armenzg merged commit 461b933 into master Sep 17, 2024
@armenzg armenzg deleted the deprecate/hierarchical_hashes/grouping/armenzg branch September 17, 2024 15:57
@armenzg
Copy link
Copy Markdown
Member Author

armenzg commented Sep 17, 2024

makes sense to me. might be good for @lobsterkatie to take a look as well.

@JoshFerge ugh. Want me to revert? Or wait to hear back?

@JoshFerge
Copy link
Copy Markdown
Member

@armenzg i think you're fine.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 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