[
https://issues.apache.org/jira/browse/AIRFLOW-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ash Berlin-Taylor resolved AIRFLOW-460.
---------------------------------------
Resolution: Fixed
Fixed at some point since the ticket was originally opened.
> user Dag`s visibility bug
> -------------------------
>
> Key: AIRFLOW-460
> URL: https://issues.apache.org/jira/browse/AIRFLOW-460
> Project: Apache Airflow
> Issue Type: Bug
> Components: ui
> Affects Versions: 1.7.1
> Reporter: Stanilovsky Evgeny
> Priority: Major
>
> after setting:
> {quote}
> filter_by_owner = True
> authenticate = True
> auth_backend = airflow.contrib.auth.backends.ldap_auth
> [ldap]
> superuser_filter =
> memberOf=CN=airflow-super-users,OU=Groups,OU=RWC,OU=US,OU=NORAM,DC=example,DC=com
> {quote}
> dags list interface became empty.
> i suppose it`s due to :
> *ldap_auth.py*
> {quote}
> if not user:
> user = models.User(
> username=username,
> is_superuser=False)
> session.merge(user)
> session.commit()
> flask_login.login_user(LdapUser(user))
> {quote}
> and after:
> *views.py*
> {quote} session.query(DM)
> .filter(
> ~DM.is_subdag, DM.is_active,
> {color:red}#DM.owners == current_user.username){color}
> DM.owners == current_user.user.username)
> {quote}
> {quote}
> dags = {
> dag.dag_id: dag
> for dag in dags
> if (
> {color:red}#dag.owner == current_user.username and (not
> dag.parent_dag){color}
> dag.owner == current_user.user.username and (not
> dag.parent_dag)
> )
> }
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)