vincbeck commented on code in PR #47681:
URL: https://github.com/apache/airflow/pull/47681#discussion_r2022853930
##########
airflow/api_fastapi/core_api/routes/ui/auth.py:
##########
@@ -31,7 +31,7 @@
def get_auth_links(
user: GetUserDep,
) -> MenuItemCollectionResponse:
- menu_items = get_auth_manager().get_menu_items(user=user)
+ menu_items = get_auth_manager().get_extra_menu_items(user=user)
Review Comment:
You have 2 options.
You can either update the current endpoint to return the list of menu items
(`get_extra_menu_items` + `get_authorized_menu_items`) and use that in the UI.
You'd need to come up with a format, cause you need to identity the extra links
to put them under security.
Or you can have 2 separate endpoints, one for `get_extra_menu_items` and one
for `get_authorized_menu_items` and then you call them both in the UI.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]