I have a superset fork I managed to get it up and running using docker compose. Now I'm trying to do one simple thing: add a new link to the existing SQL Lab menu.
What I'm trying to do is use appbuilder.add_link
under the init_views
method of the SupersetAppInitializer
class (app.py):
class SupersetAppInitializer:
# ...
def init_views(self) -> None:
# ...
appbuilder.add_link(
__("Saved Queries"),
href="/savedqueryview/list/",
icon="fa-save",
category="SQL Lab",
)
# This is a new link
appbuilder.add_link(
__("Test"),
href="/savedqueryview/list/",
icon="fa-save",
category="SQL Lab",
)
I copied the existing 'Saved Queries' link and added a 'Test' link (using the same href). It doesn't seem to be working.
What do I need to make it work?