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

tests(similarity): Simplify tests #82031

Merged
merged 13 commits into from
Dec 13, 2024
11 changes: 0 additions & 11 deletions src/sentry/tasks/embeddings_grouping/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from sentry.eventstore.models import Event
from sentry.grouping.grouping_info import get_grouping_info
from sentry.issues.grouptype import ErrorGroupType
from sentry.issues.occurrence_consumer import EventLookupError
from sentry.models.group import Group, GroupStatus
from sentry.models.project import Project
from sentry.seer.similarity.grouping_records import (
Expand Down Expand Up @@ -682,16 +681,6 @@ def _retry_operation(operation, *args, retries, delay, exceptions, **kwargs):
raise


# TODO: delete this and its tests
def lookup_event(project_id: int, event_id: str, group_id: int) -> Event:
Copy link
Member Author

Choose a reason for hiding this comment

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

Not in use.

data = nodestore.backend.get(Event.generate_node_id(project_id, event_id))
if data is None:
raise EventLookupError(f"Failed to lookup event({event_id}) for project_id({project_id})")
event = Event(event_id=event_id, project_id=project_id, group_id=group_id)
event.data = data
return event


def delete_seer_grouping_records(
project_id: int,
):
Expand Down
Loading
Loading