We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b855ad commit ef3ba6eCopy full SHA for ef3ba6e
src/sentry/receivers/onboarding.py
@@ -711,8 +711,16 @@ def record_integration_added(
711
return
712
713
organization = Organization.objects.get_from_cache(id=organization_id)
714
+ try:
715
+ user: RpcUser = organization.get_default_owner()
716
+ except IndexError:
717
+ logger.warning(
718
+ "Cannot record first integration for organization (%s) due to missing owners",
719
+ organization_id,
720
+ )
721
+ return
722
- if features.has("organizations:quick-start-updates", organization):
723
+ if features.has("organizations:quick-start-updates", organization, actor=user):
724
integration_types = get_integration_types(integration.provider)
725
726
task_mapping = {
0 commit comments