Skip to content

Commit

Permalink
Add dataset_expression to grid dag details (#38121)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi committed Mar 13, 2024
1 parent ecfa5a1 commit 7bba05d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions airflow/api_connexion/openapi/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3830,6 +3830,10 @@ components:
dag_run_timeout:
$ref: "#/components/schemas/TimeDelta"
nullable: true
dataset_expression:
type: object
description: Nested dataset any/all conditions
nullable: true
doc_md:
type: string
readOnly: true
Expand Down
16 changes: 16 additions & 0 deletions airflow/www/static/js/dag/details/dag/Dag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,22 @@ const Dag = () => {
</Td>
<Td />
</Tr>
{!!dagDetailsData.datasetExpression && (
<Tr>
<Td>Dataset Conditions</Td>
<Td>
<Code>
<pre>
{JSON.stringify(
dagDetailsData.datasetExpression,
null,
2
)}
</pre>
</Code>
</Td>
</Tr>
)}
{renderDagDetailsData(dagDetailsData, dagDataExcludeFields)}
<Tr>
<Td>Owners</Td>
Expand Down
2 changes: 2 additions & 0 deletions airflow/www/static/js/types/api-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,8 @@ export interface components {
*/
start_date?: string | null;
dag_run_timeout?: components["schemas"]["TimeDelta"] | null;
/** @description Nested dataset any/all conditions */
dataset_expression?: { [key: string]: unknown } | null;
doc_md?: string | null;
default_view?: string | null;
/**
Expand Down

0 comments on commit 7bba05d

Please sign in to comment.