Skip to content

Airflow Plugins should have support for views without menu #10788

@shivanshs9

Description

@shivanshs9

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions