airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-806) UI should properly ignore DAG doc when it is None
Date Fri, 27 Jan 2017 10:48:24 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15842545#comment-15842545
] 

ASF subversion and git services commented on AIRFLOW-806:
---------------------------------------------------------

Commit 6060f653a1720a6255893ec7067d7e6eda1bffaf in incubator-airflow's branch refs/heads/master
from [~dxhuang]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=6060f65 ]

[AIRFLOW-806] UI should properly ignore DAG doc when it is None

Check dag.doc_md before we try to convert it to
Markdown.

Closes #2020 from dhuang/AIRFLOW-806


> UI should properly ignore DAG doc when it is None
> -------------------------------------------------
>
>                 Key: AIRFLOW-806
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-806
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: ui
>    Affects Versions: Airflow 1.7.1.3
>            Reporter: Daniel Huang
>            Assignee: Daniel Huang
>            Priority: Trivial
>
> If {{dag.doc_md = __doc__}}, but there are no docstrings on the file, the Graph view
will error with:
> {code}
> AttributeError: 'NoneType' object has no attribute 'strip'
> {code}
> The UI should just assume we have no docs to show for the DAG. I suspect user in AIRFLOW-625
ran into this error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message