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 25d1411 commit cc92877Copy full SHA for cc92877
src/sentry/sentry_apps/logic.py
@@ -367,7 +367,6 @@ def _create_sentry_app(
367
"application_id": api_app.id,
368
"owner_id": self.organization_id,
369
"proxy_user_id": proxy.id,
370
- "scope_list": self.scopes,
371
"events": expand_events(self.events),
372
"schema": self.schema or {},
373
"webhook_url": self.webhook_url,
@@ -381,6 +380,8 @@ def _create_sentry_app(
381
380
or user.username, # email is not required for some users (sentry apps)
382
"metadata": self.metadata if self.metadata else {},
383
}
+ if self.scopes is not None:
384
+ kwargs["scope_list"] = self.scopes
385
386
if self.is_internal:
387
kwargs["status"] = SentryAppStatus.INTERNAL
0 commit comments