Skip to content

Commit e64f5b3

Browse files
valentinDruzhininValentyn Druzhynin
andauthored
Add conf column into Dag Runs page (#51270)
Co-authored-by: Valentyn Druzhynin <[email protected]>
1 parent a3295a8 commit e64f5b3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

airflow-core/src/airflow/ui/src/i18n/locales/en/dags.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"allRunTypes": "All Run Types",
9898
"allStates": "All States",
9999
"columns": {
100+
"conf": "Conf",
100101
"dagId": "Dag ID",
101102
"dagVersions": "Dag Versions",
102103
"duration": "Duration",

airflow-core/src/airflow/ui/src/pages/DagRuns.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { useTableURLState } from "src/components/DataTable/useTableUrlState";
3434
import { ErrorAlert } from "src/components/ErrorAlert";
3535
import { LimitedItemsList } from "src/components/LimitedItemsList";
3636
import { MarkRunAsButton } from "src/components/MarkAs";
37+
import RenderedJsonField from "src/components/RenderedJsonField";
3738
import { RunTypeIcon } from "src/components/RunTypeIcon";
3839
import { StateBadge } from "src/components/StateBadge";
3940
import Time from "src/components/Time";
@@ -119,6 +120,18 @@ const runColumns = (translate: TFunction, dagId?: string): Array<ColumnDef<DAGRu
119120
enableSorting: false,
120121
header: translate("dags:runs.columns.dagVersions"),
121122
},
123+
{
124+
accessorKey: "conf",
125+
cell: ({ row: { original } }) => {
126+
if (original.conf) {
127+
return <RenderedJsonField content={original.conf} jsonProps={{ collapsed: true }} />;
128+
}
129+
130+
return undefined;
131+
},
132+
enableSorting: false,
133+
header: translate("dags:runs.columns.conf"),
134+
},
122135
{
123136
accessorKey: "actions",
124137
cell: ({ row }) => (

0 commit comments

Comments
 (0)