Merge remote-tracking branch 'origin/master' into nightly

This commit is contained in:
Overhang.IO 2023-08-19 06:21:46 +00:00
commit 633933e390
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
- [Bugfix] Fix superset database name in user creation with `do cairn-createuser`. (by @regisb)

View File

@ -77,7 +77,7 @@ def main():
"--database",
help=(
"Name of the Superset database to which the objects should be linked."
" By default, this will be the same as the username."
" By default, this will be the 'openedx-<username>'."
),
)
parser_dashboards.add_argument("username")
@ -92,7 +92,7 @@ def main():
# but the "create-user" command fails if the user already exists.
def bootstrap_user(args):
# Bootstrap database
database_name = args.db or args.username
database_name = args.db or f"openedx-{args.username}"
cairn_bootstrap.create_superset_db(args.username, database_name)
# Get or create user