class SupersetDashboardIndexView(IndexView):
@expose("/")
def index(self) -> FlaskResponse:
return NEW_HOMEPAGE_URL
Specify homepage based on role of logged-in user (security_manager.get_user_roles())
Or stick with the default behavior
The superset_config.py will check a variable in superset.env based on which it might import one of the new views and set FAB_INDEX_VIEW accordingly.
The superset_config.py should import (from the top of the file) a new role2indexurl.py which contains this mapping for the Superset installation. By default this mapping is empty
Allow Superset installations to
Specify homepage based on role of logged-in user (
security_manager.get_user_roles()
)Or stick with the default behavior
The
superset_config.py
will check a variable insuperset.env
based on which it might import one of the new views and setFAB_INDEX_VIEW
accordingly.The
superset_config.py
should import (from the top of the file) a newrole2indexurl.py
which contains this mapping for the Superset installation. By default this mapping is empty