ashb commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag 
details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469861187
 
 
   I'm sort of picturing something like (very pseudo code):
   
   ```python
   from something import role_migrations as rm
   
   def up():
       p = rm.add_permission('all_dags', 'can_dag_edit')
       rm.add_to_role('Op', p)
   
   def down():
       rm.remove_from_role('Op', 'all_dags', 'can_dag_edit')
   ```
   
   I haven't worked out the details yet, still a bit hazy (and I'm not 100% on 
the FAB data model around permissions, view menus, roles and all the 
many-to-many tables between them.)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to