You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/06/29 13:21:12 UTC
[airflow] 06/37: Add TaskInstance state to TI Tooltip to be
colour-blind friendlier (#8910)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit f4a0677b8108c65ddfb1021f4b94bb93b8621521
Author: Joe Harris <jo...@btinternet.com>
AuthorDate: Thu May 21 10:53:54 2020 +0100
Add TaskInstance state to TI Tooltip to be colour-blind friendlier (#8910)
Currently there is no way to determine the state of a TaskInstance in the graph view or tree view for people with colour blindness
Approximately 4.5% of people experience some form of colour vision deficiency
(cherry picked from commit f3f74c73201d947ce9334c50630b9cf5debbc66a)
---
airflow/www_rbac/static/js/task-instances.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/airflow/www_rbac/static/js/task-instances.js b/airflow/www_rbac/static/js/task-instances.js
index ec971e0..8b49700 100644
--- a/airflow/www_rbac/static/js/task-instances.js
+++ b/airflow/www_rbac/static/js/task-instances.js
@@ -62,6 +62,9 @@ function generateTooltipDateTimes(startDate, endDate, dagTZ) {
export default function tiTooltip(ti, {includeTryNumber = false} = {}) {
let tt = '';
+ if (ti.state !== undefined) {
+ tt += `<strong>Status:</strong> ${escapeHtml(ti.state)}<br><br>`;
+ }
if (ti.task_id !== undefined) {
tt += `Task_id: ${escapeHtml(ti.task_id)}<br>`;
}