Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Oct 13, 2020

admin_views & menu_links were used for non-rbac UI.For FAB we use
flask_appbuilder_views & flask_appbuilder_menu_links


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

`admin_views` & `menu_links` were used for non-rbac UI.For FAB we use
`flask_appbuilder_views` & `flask_appbuilder_menu_links`
'blueprint': bp
} for bp in plugin.flask_blueprints])

if (admin_views and not flask_appbuilder_views) or (menu_links and not flask_appbuilder_menu_links):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (plugin.admin_views and not plugin.appbuilder_views) or (plugin.menu_links and not plugin.flask_appbuilder_menu_links):

In my opinion, this message may remain, but it seems to me that the global variable can be deleted completely. Users who migrate to RBAC proposed by airflow upgrade-check may not be aware of the consequences.

Copy link
Member Author

@kaxil kaxil Oct 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 0af388d @mik-laj

@kaxil kaxil merged commit 3163912 into apache:master Oct 14, 2020
@kaxil kaxil deleted the remove-flask-admin-plugins branch October 14, 2020 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants