From 7e75a570260e2c21d29f7d1d7b24e61295209b35 Mon Sep 17 00:00:00 2001 From: Simon Hellmayr Date: Wed, 6 Nov 2024 09:17:16 +0100 Subject: [PATCH] boost low volume projects after changing only the target sample rate --- src/sentry/api/endpoints/organization_details.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sentry/api/endpoints/organization_details.py b/src/sentry/api/endpoints/organization_details.py index 78007e9c7f0084..eb56a4908ce865 100644 --- a/src/sentry/api/endpoints/organization_details.py +++ b/src/sentry/api/endpoints/organization_details.py @@ -975,6 +975,7 @@ def put(self, request: Request, organization: Organization) -> Response: organization.update_option( "sentry:target_sample_rate", serializer.validated_data["targetSampleRate"] ) + boost_low_volume_projects_of_org_with_query.delay(organization.id) if "samplingMode" in changed_data and request.access.has_scope("org:write"): with transaction.atomic(router.db_for_write(ProjectOption)):