From ceffe9137971915b26299cd276d9d428dcbfafa2 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Mon, 17 Jun 2019 16:51:17 +0300 Subject: [PATCH] feat(upgrade): Default to superuser for first user (#13706) Right now this is breaking docker-sentry git builds. Guessing it will cause more issues in the future and was reported here on the forums: https://forum.sentry.io/t/enhancement-configs-not-found-on-latest-branches/6800?u=byk --- MANIFEST.in | 1 + src/sentry/receivers/users.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index b3f28ccf01bcf0..e27edc7bd4043e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,6 +4,7 @@ recursive-include ./ requirements*.txt recursive-include src/sentry/templates * recursive-include src/sentry/locale * recursive-include src/sentry/data * +recursive-include src/sentry/grouping * recursive-include src/sentry/static/sentry * recursive-include src/sentry/scripts *.lua recursive-include src/sentry/integration-docs *.json diff --git a/src/sentry/receivers/users.py b/src/sentry/receivers/users.py index a344a27638971a..684512f9d7cedb 100644 --- a/src/sentry/receivers/users.py +++ b/src/sentry/receivers/users.py @@ -30,7 +30,7 @@ def create_first_user(created_models, verbosity, db, app=None, **kwargs): return from sentry.runner import call_command - call_command('sentry.runner.commands.createuser.createuser') + call_command('sentry.runner.commands.createuser.createuser', superuser=True) post_syncdb.connect(