You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ur...@apache.org on 2025/02/25 07:18:48 UTC
(airflow) branch main updated: AIP-38 Fix MapIndex table sorting (#47027)
This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 42406162cac AIP-38 Fix MapIndex table sorting (#47027)
42406162cac is described below
commit 42406162cac1d5f899dd22c91d9caa06b19956e5
Author: Pierre Jeambrun <pi...@gmail.com>
AuthorDate: Tue Feb 25 08:18:41 2025 +0100
AIP-38 Fix MapIndex table sorting (#47027)
---
airflow/ui/src/components/ActionAccordion/columns.tsx | 2 +-
airflow/ui/src/components/Clear/columns.tsx | 2 +-
airflow/ui/src/pages/TaskInstance/Header.tsx | 2 +-
airflow/ui/src/pages/TaskInstances.tsx | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/airflow/ui/src/components/ActionAccordion/columns.tsx b/airflow/ui/src/components/ActionAccordion/columns.tsx
index 95aeb66d4f7..dd008cbafb5 100644
--- a/airflow/ui/src/components/ActionAccordion/columns.tsx
+++ b/airflow/ui/src/components/ActionAccordion/columns.tsx
@@ -52,7 +52,7 @@ export const columns: Array<ColumnDef<TaskInstanceResponse>> = [
header: () => "State",
},
{
- accessorFn: (row) => row.rendered_map_index ?? row.map_index,
+ accessorKey: "rendered_map_index",
enableSorting: false,
header: "Map Index",
},
diff --git a/airflow/ui/src/components/Clear/columns.tsx b/airflow/ui/src/components/Clear/columns.tsx
index 3acd1e14811..b09a18ff4ab 100644
--- a/airflow/ui/src/components/Clear/columns.tsx
+++ b/airflow/ui/src/components/Clear/columns.tsx
@@ -53,7 +53,7 @@ export const columns: Array<ColumnDef<TaskInstanceResponse>> = [
header: () => "State",
},
{
- accessorFn: (row) => row.rendered_map_index ?? row.map_index,
+ accessorKey: "rendered_map_index",
enableSorting: false,
header: "Map Index",
},
diff --git a/airflow/ui/src/pages/TaskInstance/Header.tsx b/airflow/ui/src/pages/TaskInstance/Header.tsx
index 20e4066c3ad..bf1784983ee 100644
--- a/airflow/ui/src/pages/TaskInstance/Header.tsx
+++ b/airflow/ui/src/pages/TaskInstance/Header.tsx
@@ -63,7 +63,7 @@ export const Header = ({
<SimpleGrid columns={6} gap={4} my={2}>
<Stat label="Operator">{taskInstance.operator}</Stat>
{taskInstance.map_index > -1 ? (
- <Stat label="Map Index">{taskInstance.rendered_map_index ?? taskInstance.map_index}</Stat>
+ <Stat label="Map Index">{taskInstance.rendered_map_index}</Stat>
) : undefined}
{taskInstance.try_number > 1 ? <Stat label="Try Number">{taskInstance.try_number}</Stat> : undefined}
<Stat label="Start">
diff --git a/airflow/ui/src/pages/TaskInstances.tsx b/airflow/ui/src/pages/TaskInstances.tsx
index 378ee0d90e9..12559de5f1a 100644
--- a/airflow/ui/src/pages/TaskInstances.tsx
+++ b/airflow/ui/src/pages/TaskInstances.tsx
@@ -106,7 +106,7 @@ const taskInstanceColumns = (
header: "End Date",
},
{
- accessorFn: (row: TaskInstanceResponse) => row.rendered_map_index ?? row.map_index,
+ accessorKey: "rendered_map_index",
header: "Map Index",
},