-
Notifications
You must be signed in to change notification settings - Fork 16.5k
Description
Description
This feature requests a way to support custom views in plugins without any menu. Right now, all the views listed in AirflowPlugin.appbuilder_views are added with menu to the appbuilder.
Use case / motivation
In a custom plugin I built, I need to add a distinct view for details of custom operator. Then I use the BaseOperator.operator_extra_links to link this new UI view with the task links.
However, this view has no need to show in the airflow menu, but rather should be shown in UI similarly to views.DagModelView. That is, the view should be added to flask appbuilder using appbuilder.add_view_no_menu call but right now all the views in AirflowPlugin.appbuilder_views are added by calling appbuilder.add_view
What do you want to happen?
Maybe if "name" is missing in the dict in AirflowPlugin.appbuilder_views list, then when integrating plugin to flask app context, it'll just call:
appbuilder.add_view_no_menu(v["view"])otherwise the default behavior.