Skip to content

Commit

Permalink
Merge pull request #866 from openedx/jill/aspects-public-hosts
Browse files Browse the repository at this point in the history
feat: adds superset to the list of URLs printed by tutor after launch
  • Loading branch information
Cristhian Garcia authored Jun 18, 2024
2 parents 4918d06 + 46ea56d commit baa4936
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tutoraspects/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import random
import string
from glob import glob
import typing as t

import bcrypt
import importlib_resources
Expand Down Expand Up @@ -440,6 +441,18 @@
]
)


@hooks.Filters.APP_PUBLIC_HOSTS.add()
def _aspects_public_hosts(
hosts: list[str], context_name: t.Literal["local", "dev"]
) -> list[str]:
if context_name == "dev":
hosts += ["{{ SUPERSET_HOST }}:{{ SUPERSET_PORT }}"]
else:
hosts += ["{{ SUPERSET_HOST }}"]
return hosts


########################################
# INITIALIZATION TASKS
########################################
Expand Down

0 comments on commit baa4936

Please sign in to comment.