Skip to content

Commit

Permalink
send everyone through optimized logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Sep 5, 2024
1 parent ce22402 commit 072aa88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/sentry/grouping/ingest/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 072aa88

Please sign in to comment.