Igor Khrol created AIRFLOW-6357:
-----------------------------------
Summary: Graph UI nodes hightlight is broken when task id contains
dots
Key: AIRFLOW-6357
URL: https://issues.apache.org/jira/browse/AIRFLOW-6357
Project: Apache Airflow
Issue Type: Bug
Components: ui
Affects Versions: 1.10.7
Reporter: Igor Khrol
Assignee: Igor Khrol
If task id contains a dot, Graph UI highlight is broken.
```
with DAG(dag_id='hightlight_test', start_date=airflow.utils.dates.days_ago(2))
as dag:
t1 = DummyOperator(task_id='t1')
t2 = DummyOperator(task_id='t2.t2')
t3 = DummyOperator(task_id='t3.t3')
t1 >> t2
t2 >> t3
```
If you hightlight nodes in this DAG the following stacktrace is in JS console:
graph?dag_id=daily_dag:1246 Uncaught TypeError: Cannot read property
'parentNode' of null
at graph?dag_id=daily_dag:1246
at Array.forEach (<anonymous>)
at highlight_nodes (graph?dag_id=daily_dag:1245)
at SVGGElement.<anonymous> (graph?dag_id=daily_dag:1253)
at SVGGElement.__onmouseover (d3.min.js:1)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)