[GitHub] [airflow] XD-DENG commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
XD-DENG commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469894456
 
 
   I have a question to seek @feng-tao ‘s input given we have started the 
discussion on this: currently Admin’s permissions will always be updated so it 
has ALL permissions, including each DAG’s “can_dag_view” and “can_dag_edit”. 
   
   Let’s say we have 1000 DAGs now: then 2000 permissions will be added to 
Admin role in DB, and all of them will also be shown in UI if we go to 
Security->Roles. 
   
   This may not be necessary as Admin role already has “can_dag_view” and 
“can_dag_edit” on “all_dags”. (but from another side, I also understand it’s 
easier to just simply give Admin ALL permissions) 
   
   May you let me know your thoughts on this?


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [airflow] XD-DENG commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
XD-DENG commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469896272
 
 
   Thanks @feng-tao .
   let me double-check the code later today and will let you know if I still 
have confusion on it. 


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [airflow] XD-DENG commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
XD-DENG commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469920279
 
 
   > @XD-DENG , I don't think it will add 2000 entries to the db for admin 
role. It only adds the "all_dags" view-menu with the 2 permissions into the 
table.
   
   Hi @feng-tao please refer to 
https://github.com/apache/airflow/blob/dda309e66224346014ca42a0bcce4f53365f1118/airflow/www/security.py#L440-L453
 . By checking the code itself, seems it's simply adding all whatever 
permissions to Admin role.


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [airflow] XD-DENG commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
XD-DENG commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469983947
 
 
   @feng-tao sure. Maybe let me create a ticket for this later maybe. Will tag 
you then for our reference.


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:
us...@infra.apache.org


With regards,
Apache Git Services