From f515a2c984af44a3ca4ca8992682febb64b7f8d4 Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Fri, 18 Oct 2024 11:54:43 +0200 Subject: [PATCH] nit: remove taskgroup's tooltip from OL's AirflowJobFacet Signed-off-by: Kacper Muda --- providers/src/airflow/providers/openlineage/utils/utils.py | 1 - providers/tests/openlineage/utils/test_utils.py | 7 ------- 2 files changed, 8 deletions(-) diff --git a/providers/src/airflow/providers/openlineage/utils/utils.py b/providers/src/airflow/providers/openlineage/utils/utils.py index 3d05d564a7867..424dc90c8f42b 100644 --- a/providers/src/airflow/providers/openlineage/utils/utils.py +++ b/providers/src/airflow/providers/openlineage/utils/utils.py @@ -482,7 +482,6 @@ def _get_task_groups_details(dag: DAG) -> dict: return { tg_id: { "parent_group": tg.parent_group.group_id, - "tooltip": tg.tooltip, "ui_color": tg.ui_color, "ui_fgcolor": tg.ui_fgcolor, "ui_label": tg.label, diff --git a/providers/tests/openlineage/utils/test_utils.py b/providers/tests/openlineage/utils/test_utils.py index c41f088b66143..cc8c20ac0a287 100644 --- a/providers/tests/openlineage/utils/test_utils.py +++ b/providers/tests/openlineage/utils/test_utils.py @@ -79,7 +79,6 @@ def test_get_airflow_job_facet(): taskGroups={ "section_1": { "parent_group": None, - "tooltip": "", "ui_color": "CornflowerBlue", "ui_fgcolor": "#000", "ui_label": "section_1", @@ -516,21 +515,18 @@ def test_get_task_groups_details(): expected = { "tg1": { "parent_group": None, - "tooltip": "", "ui_color": "CornflowerBlue", "ui_fgcolor": "#000", "ui_label": "tg1", }, "tg2": { "parent_group": None, - "tooltip": "", "ui_color": "CornflowerBlue", "ui_fgcolor": "#000", "ui_label": "tg2", }, "tg3": { "parent_group": None, - "tooltip": "", "ui_color": "CornflowerBlue", "ui_fgcolor": "#000", "ui_label": "tg3", @@ -551,21 +547,18 @@ def test_get_task_groups_details_nested(): expected = { "tg1": { "parent_group": None, - "tooltip": "", "ui_color": "CornflowerBlue", "ui_fgcolor": "#000", "ui_label": "tg1", }, "tg1.tg2": { "parent_group": "tg1", - "tooltip": "", "ui_color": "CornflowerBlue", "ui_fgcolor": "#000", "ui_label": "tg2", }, "tg1.tg2.tg3": { "parent_group": "tg1.tg2", - "tooltip": "", "ui_color": "CornflowerBlue", "ui_fgcolor": "#000", "ui_label": "tg3",