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

2019-03-05 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469777142
 
 
   @ashb , it came from someone(maybe XD) reporting in the dev alias that 
viewer could no longer view the same details as in 1.10.1. We never define what 
should viewer, user permission after introducing the DAG level access. Hence it 
is better to keep the same ATM. We could revisit the permissions for viewer if 
we have a consensus. User should have the same permissions as viewer. What do 
you observe?


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469781261
 
 
   @ashb , I will submit a pr to address the viewer edit issue today. 


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469817956
 
 
   @ashb , let's consolidate all the discussion in one place. And I could do 
some investigations in my night time(PST time zone). From what I understanding, 
your issues are:
   1. you couldn't pause DAG with op 
role(https://github.com/apache/airflow/blob/master/airflow/www/views.py#L1657) 
? Have you checked whether the refactored UI could pass the `is_paused` param 
to Flask? For pause, I am pretty sure it is not related to this pr.
   2. your comment in 
https://github.com/apache/airflow/pull/4118#issuecomment-469801650 which 
all_dags permissions not shown until roles created.  The latest version in 
master has changed which create the all_dag view-menu when the webserver 
starts(https://github.com/apache/airflow/blob/master/airflow/www/security.py#L460).
 And one thing we could do with 
https://github.com/apache/airflow/pull/4118/files is to make sure all_dags 
permissions are always exist in the existing roles which means user could only 
remove non dag permissions. WDYT?


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469834959
 
 
   @ashb , I see your issue. Your deploy is based on 1.10.2 not on master? I 
think I fail to get this pr into 1.10.2 as the release timeline was pretty 
tight around the time. And I think someone said that just use UI to modify the 
permissions as a work around.
   
   Correctly it only adds to those default roles to keep it the same behaviour 
as 1.10.1, but not those DAG level roles. And we do plan to write a blog on how 
we do DAG level access at Lyft, but just don't have enough time ATM. 
   
   In terms of migrations from 1.10.1 to 1.10.2, I am not sure if it is easy to 
do as Airflow doesn't have the FAB model code which makes the db migration 
difficult. Let me know if you figure it out the right approach.


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469857250
 
 
   @ashb , https://github.com/apache/airflow/pull/4845 for removing viewer edit 
permissions.


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469857557
 
 
   correct, we shouldn't rely on UI for the operations...


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469865060
 
 
   @ashb https://flask-appbuilder.readthedocs.io/en/latest/diagrams.html FYI


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469895639
 
 
   @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.


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-05 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-469978184
 
 
   @XD-DENG somehow I thought it has only all_dags , but it seems it has 
everything. ATM, I didn't have time to dig deep to do this without a hacky 
solution.
   
   I would suggest let's leave it as it is for now.


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-21 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-475491930
 
 
   @ashb , thanks. BTW, what do you think of moving 
https://github.com/apache/airflow/blob/master/airflow/www/security.py#L35-L140 
inside AirflowSecurityManager so that we could redefine permission on different 
roles by subclassing the security manager?


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] feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view dag details

2019-03-22 Thread GitBox
feng-tao commented on issue #4569: [AIRFLOW-3745] Fix viewer not able to view 
dag details
URL: https://github.com/apache/airflow/pull/4569#issuecomment-475835209
 
 
   @ashb , pr posted (https://github.com/apache/airflow/pull/4960)


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