This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch v1-10-test in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v1-10-test by this push: new a732559 Add TaskInstance state to TI Tooltip to be colour-blind friendlier (#8910) a732559 is described below commit a7325594e70b0bd7be2eeb9bfec5c522642fcb3b Author: Joe Harris <joe4...@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>`; }