Skip to content

Commit d40c56b

Browse files
fix(quick-start): Pass actor to feature flag (#81652)
1 parent bb46075 commit d40c56b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/sentry/receivers/onboarding.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,16 @@ def record_integration_added(
711711
return
712712

713713
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
714722

715-
if features.has("organizations:quick-start-updates", organization):
723+
if features.has("organizations:quick-start-updates", organization, actor=user):
716724
integration_types = get_integration_types(integration.provider)
717725

718726
task_mapping = {

0 commit comments

Comments
 (0)