diff --git a/src/sentry/utils/snuba.py b/src/sentry/utils/snuba.py index 6f1dc953b0d690..48785b7a7b2373 100644 --- a/src/sentry/utils/snuba.py +++ b/src/sentry/utils/snuba.py @@ -27,7 +27,6 @@ from snuba_sdk.legacy import json_to_snql from snuba_sdk.query import SelectableExpression -from sentry import options from sentry.api.helpers.error_upsampling import ( UPSAMPLED_ERROR_AGGREGATION, are_any_projects_error_upsampled, @@ -928,7 +927,7 @@ def __init__( # account for merges, here we expand queries to include all group IDs that have # been merged together. - if options.get("snuba.preprocess-group-redirects") and self.dataset in { + if self.dataset in { Dataset.Events, Dataset.IssuePlatform, }: diff --git a/tests/sentry/utils/test_snuba.py b/tests/sentry/utils/test_snuba.py index b50763d3148255..a275d59d35e5ba 100644 --- a/tests/sentry/utils/test_snuba.py +++ b/tests/sentry/utils/test_snuba.py @@ -9,7 +9,6 @@ from urllib3.exceptions import HTTPError, ReadTimeoutError from urllib3.response import HTTPResponse -from sentry import options from sentry.models.groupredirect import GroupRedirect from sentry.models.grouprelease import GroupRelease from sentry.models.project import Project @@ -326,8 +325,6 @@ def test_preprocess_group_redirects(self) -> None: previous_group_id=g3.id, ) - options.set("snuba.preprocess-group-redirects", True) - params = SnubaQueryParams(dataset=Dataset.Events, filter_keys={"group_id": {g1.id}}) assert params.conditions[0] == ["group_id", "IN", {g1.id, g2.id, g3.id}]