Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6357

Graph UI nodes hightlight is broken when task id contains dots

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.7
    • Fix Version/s: 1.10.8
    • Component/s: ui
    • Labels:
      None

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                khroliz Igor Khrol
                Reporter:
                khroliz Igor Khrol
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: