Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide option to specify alternate homepage #60

Open
fatchat opened this issue Aug 25, 2024 · 0 comments
Open

Provide option to specify alternate homepage #60

fatchat opened this issue Aug 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@fatchat
Copy link
Contributor

fatchat commented Aug 25, 2024

Allow Superset installations to

  1. Define a new homepage via (https://gist.github.com/d9k/a638071ce7146ef01c27779a51d96f2b)
class SupersetDashboardIndexView(IndexView):
    @expose("/")
    def index(self) -> FlaskResponse:
      return NEW_HOMEPAGE_URL
  1. Specify homepage based on role of logged-in user (security_manager.get_user_roles())

  2. 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

@fatchat fatchat added this to Dalgo Aug 25, 2024
@fatchat fatchat added enhancement New feature or request good first issue Good for newcomers labels Aug 25, 2024
@fatchat fatchat moved this to Todo in Dalgo Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: Todo
Development

No branches or pull requests

2 participants