From 072aa884b4df90c413e92b439daada15ca34869f Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Thu, 5 Sep 2024 15:59:03 -0700 Subject: [PATCH] send everyone through optimized logic --- src/sentry/grouping/ingest/config.py | 3 ++- tests/sentry/event_manager/grouping/test_assign_to_group.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sentry/grouping/ingest/config.py b/src/sentry/grouping/ingest/config.py index 1a1572b2b507a..6951b4cc82582 100644 --- a/src/sentry/grouping/ingest/config.py +++ b/src/sentry/grouping/ingest/config.py @@ -99,5 +99,6 @@ def project_uses_optimized_grouping(project: Project) -> bool: project.organization, ) or (is_in_transition(project)) - or project.id % 5 < 4 # 80% of all non-transition projects + # TODO: Yes, this is everyone - this check will soon be removed entirely + or project.id % 5 < 5 # 100% of all non-transition projects ) diff --git a/tests/sentry/event_manager/grouping/test_assign_to_group.py b/tests/sentry/event_manager/grouping/test_assign_to_group.py index ac609f16f13ec..9470707cb0f42 100644 --- a/tests/sentry/event_manager/grouping/test_assign_to_group.py +++ b/tests/sentry/event_manager/grouping/test_assign_to_group.py @@ -518,7 +518,7 @@ def test_uses_regular_or_optimized_grouping_as_appropriate( # Keep making projects until we get an id which matches `id_qualifies` org = Factories.create_organization() project = Factories.create_project(organization=org) - while (project.id % 5 >= 4) if id_qualifies else (project.id % 5 < 4): + while (project.id % 5 >= 5) if id_qualifies else (project.id % 5 < 5): project = Factories.create_project(organization=org) with (