vincbeck commented on issue #47457:
URL: https://github.com/apache/airflow/issues/47457#issuecomment-2704439609

   Another way to do it is to have a method in auth manager like:
   ```
   def additional_menu_items() -> list[dict]:
     return [
       {
         "label": "Users",
         "url": "..."
       }
     ]
   ```
   
   And this would passed to the front-end as config (I know you already have a 
mechanism to do so?) That would prevent calling an API to generate the menu 
which could add some latency.
   
   Both solutions are very close though, one is creating an API, the other is 
an optional method in auth manager interface that auth manager can override if 
they want to add menu items.


-- 
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]

Reply via email to