Airflow: DagRuns page renders the state column with artifacts

Created on 5 May 2020  路  8Comments  路  Source: apache/airflow

Apache Airflow version: 1.10.10

Environment:

Docker image python:3.7-slim.

How to reproduce it:

Navigate to /admin/dagrun/.

Screenshot 2020-05-05 at 15 05 26

Other:

The web server returns HTML that consists of:

<a
    data-csrf=""
    data-pk="1150737"
    data-role="x-editable"
    data-source="[{&#34;text&#34;: &#34;&#34;, &#34;value&#34;: &#34;__None&#34;}, {&#34;text&#34;: &#34;success&#34;, &#34;value&#34;: &#34;success&#34;}, {&#34;text&#34;: &#34;running&#34;, &#34;value&#34;: &#34;running&#34;}, {&#34;text&#34;: &#34;failed&#34;, &#34;value&#34;: &#34;failed&#34;}]"
    data-type="select2"
    data-url="./ajax/update/"
    data-value="<span class="label" style="background-color:green;">success</span>" 
    href="#" 
    id="state" 
    name="state"
>
    <span class="label" style="background-color:green;">success</span>
</a>

Flask-Admin version is 1.5.4.
After a brief investigation, the problem seems to be related to using HTML as a value for an editable widget.

webserver bug

All 8 comments

Thanks for opening your first issue here! Be sure to follow the issue template!

I am facing the same problem. did you manage to solve this?

I am facing the same problem. did you manage to solve this?

No. I haven't tried really as it's mostly esthetics.

I am facing the same problem. did you manage to solve this?

No. I haven't tried really as it's mostly esthetics.

I believe you can also not set the state on that page. Try changing the state there to running/failed you'll see it doesn't update. However, setting the state from other sections does work.

I am facing the same problem. did you manage to solve this?

No. I haven't tried really as it's mostly esthetics.

I believe you can also not set the state on that page. Try changing the state there to running/failed you'll see it doesn't update. However, setting the state from other sections does work.

True. I do change the state from other sections.

I'm having the same issue as well. The state seems clickable.

Openshift (REL 7)
Python 3.7.6 (compiled from source in Docker image)
Airflow 1.10.10 (pip installed in Docker image)

Capture

This appears to a bug in our (soon to be remove) old UI. The easy fix for now is to switch to the RBAC UI by enabling it in your config files. We are only doing bug fixes against the old UI now (so this should get fixed) but you won't get any new features, such as the ability to show datetimes in your local TZ if you stick on this UI.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ephraimbuddy picture ephraimbuddy  路  3Comments

hagope picture hagope  路  4Comments

grbinho picture grbinho  路  3Comments

mik-laj picture mik-laj  路  4Comments

blackw1ng picture blackw1ng  路  3Comments