Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class DAGRunResponse(BaseModel):
run_type: DagRunType
state: DagRunState
triggered_by: DagRunTriggeredByType | None
conf: dict
conf: dict | None
note: str | None
dag_versions: list[DagVersionResponse]
bundle_version: str | None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,10 @@ components:
- $ref: '#/components/schemas/DagRunTriggeredByType'
- type: 'null'
conf:
additionalProperties: true
type: object
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Conf
note:
anyOf:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8231,8 +8231,10 @@ components:
- $ref: '#/components/schemas/DagRunTriggeredByType'
- type: 'null'
conf:
additionalProperties: true
type: object
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Conf
note:
anyOf:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2247,8 +2247,15 @@ export const $DAGRunResponse = {
],
},
conf: {
additionalProperties: true,
type: "object",
anyOf: [
{
additionalProperties: true,
type: "object",
},
{
type: "null",
},
],
title: "Conf",
},
note: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ export type DAGRunResponse = {
triggered_by: DagRunTriggeredByType | null;
conf: {
[key: string]: unknown;
};
} | null;
note: string | null;
dag_versions: Array<DagVersionResponse>;
bundle_version: string | null;
Expand Down
2 changes: 1 addition & 1 deletion airflow-core/src/airflow/ui/src/pages/Run/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const Details = () => {
<Table.Row>
<Table.Cell>Run Config</Table.Cell>
<Table.Cell>
<RenderedJsonField content={dagRun.conf} />
<RenderedJsonField content={dagRun.conf ?? {}} />
</Table.Cell>
</Table.Row>
</Table.Body>
Expand Down
2 changes: 1 addition & 1 deletion airflow-ctl/src/airflowctl/api/datamodels/generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ class DAGRunResponse(BaseModel):
run_type: DagRunType
state: DagRunState
triggered_by: DagRunTriggeredByType | None = None
conf: Annotated[dict[str, Any], Field(title="Conf")]
conf: Annotated[dict[str, Any] | None, Field(title="Conf")] = None
note: Annotated[str | None, Field(title="Note")] = None
dag_versions: Annotated[list[DagVersionResponse], Field(title="Dag Versions")]
bundle_version: Annotated[str | None, Field(title="Bundle Version")] = None
Expand Down