Skip to content

Commit

Permalink
enable new logic for 40% of projects
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Aug 28, 2024
1 parent c26c6ef commit 859ac95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sentry/grouping/ingest/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ def project_uses_optimized_grouping(project: Project) -> bool:
project.organization,
)
or (is_in_transition(project))
or project.id % 5 < 1 # 20% of all non-transition projects
or project.id % 5 < 2 # 40% 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 >= 1) if id_qualifies else (project.id % 5 < 1):
while (project.id % 5 >= 2) if id_qualifies else (project.id % 5 < 2):
project = Factories.create_project(organization=org)

with (
Expand Down

0 comments on commit 859ac95

Please sign in to comment.