Skip to content

Commit

Permalink
boost low volume projects after changing only the target sample rate
Browse files Browse the repository at this point in the history
  • Loading branch information
shellmayr committed Nov 6, 2024
1 parent 08c7d99 commit 7e75a57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sentry/api/endpoints/organization_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit 7e75a57

Please sign in to comment.