Skip to content

Commit

Permalink
add back other pushes and remove breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
schew2381 committed Jun 25, 2024
1 parent e1791a0 commit accf24d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/sentry/rules/conditions/event_frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ def query_hook(
def batch_query_hook(
self, group_ids: set[int], start: datetime, end: datetime, environment_id: int
) -> dict[int, int]:
breakpoint()
batch_sums: dict[int, int] = defaultdict(int)
groups = Group.objects.filter(id__in=group_ids)
error_issues = [group for group in groups if group.issue_category == GroupCategory.ERROR]
Expand Down
10 changes: 5 additions & 5 deletions tests/sentry/rules/processing/test_delayed_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from uuid import uuid4

import pytest

from sentry import buffer
from sentry.eventstore.models import Event
from sentry.models.project import Project
Expand All @@ -20,7 +21,6 @@
from sentry.testutils.helpers.datetime import freeze_time, iso_format
from sentry.testutils.helpers.redis import mock_redis_buffer
from sentry.utils import json

from tests.snuba.rules.conditions.test_event_frequency import BaseEventFrequencyPercentTest

pytestmark = pytest.mark.sentry_metrics
Expand Down Expand Up @@ -182,10 +182,10 @@ def setUp(self):
buffer.backend.push_to_sorted_set(key=PROJECT_ID_BUFFER_LIST_KEY, value=self.project.id)
buffer.backend.push_to_sorted_set(key=PROJECT_ID_BUFFER_LIST_KEY, value=self.project_two.id)

# self.push_to_hash(self.project.id, self.rule1.id, self.group1.id, self.event1.event_id)
# self.push_to_hash(self.project.id, self.rule2.id, self.group2.id, self.event2.event_id)
# self.push_to_hash(self.project_two.id, self.rule3.id, self.group3.id, self.event3.event_id)
# self.push_to_hash(self.project_two.id, self.rule4.id, self.group4.id, self.event4.event_id)
self.push_to_hash(self.project.id, self.rule1.id, self.group1.id, self.event1.event_id)
self.push_to_hash(self.project.id, self.rule2.id, self.group2.id, self.event2.event_id)
self.push_to_hash(self.project_two.id, self.rule3.id, self.group3.id, self.event3.event_id)
self.push_to_hash(self.project_two.id, self.rule4.id, self.group4.id, self.event4.event_id)

def tearDown(self):
self.mock_redis_buffer.__exit__(None, None, None)
Expand Down

0 comments on commit accf24d

Please sign in to comment.