You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Stanilovsky Evgeny (JIRA)" <ji...@apache.org> on 2016/08/24 13:33:20 UTC
[jira] [Created] (AIRFLOW-460) user Dag`s visibility bug
Stanilovsky Evgeny created AIRFLOW-460:
------------------------------------------
Summary: 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: Airflow 1.7.1
Reporter: Stanilovsky Evgeny
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
(v6.3.4#6332)