Skip to content

Commit f5fef5d

Browse files
committed
Fix deadline typo
1 parent 9c05e58 commit f5fef5d

File tree

10 files changed

+56
-56
lines changed

10 files changed

+56
-56
lines changed

airflow-core/src/airflow/api_fastapi/core_api/datamodels/ui/deadline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DeadlineResponse(BaseModel):
3939
)
4040

4141

42-
class DealineCollectionResponse(BaseModel):
42+
class DeadlineCollectionResponse(BaseModel):
4343
"""Deadline Collection serializer for responses."""
4444

4545
deadlines: Iterable[DeadlineResponse]

airflow-core/src/airflow/api_fastapi/core_api/openapi/_private_ui.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ paths:
615615
content:
616616
application/json:
617617
schema:
618-
$ref: '#/components/schemas/DealineCollectionResponse'
618+
$ref: '#/components/schemas/DeadlineCollectionResponse'
619619
'404':
620620
content:
621621
application/json:
@@ -2076,6 +2076,22 @@ components:
20762076
- queued_dag_count
20772077
title: DashboardDagStatsResponse
20782078
description: Dashboard DAG Stats serializer for responses.
2079+
DeadlineCollectionResponse:
2080+
properties:
2081+
deadlines:
2082+
items:
2083+
$ref: '#/components/schemas/DeadlineResponse'
2084+
type: array
2085+
title: Deadlines
2086+
total_entries:
2087+
type: integer
2088+
title: Total Entries
2089+
type: object
2090+
required:
2091+
- deadlines
2092+
- total_entries
2093+
title: DeadlineCollectionResponse
2094+
description: Deadline Collection serializer for responses.
20792095
DeadlineResponse:
20802096
properties:
20812097
id:
@@ -2111,22 +2127,6 @@ components:
21112127
- created_at
21122128
title: DeadlineResponse
21132129
description: Deadline serializer for responses.
2114-
DealineCollectionResponse:
2115-
properties:
2116-
deadlines:
2117-
items:
2118-
$ref: '#/components/schemas/DeadlineResponse'
2119-
type: array
2120-
title: Deadlines
2121-
total_entries:
2122-
type: integer
2123-
title: Total Entries
2124-
type: object
2125-
required:
2126-
- deadlines
2127-
- total_entries
2128-
title: DealineCollectionResponse
2129-
description: Deadline Collection serializer for responses.
21302130
EdgeResponse:
21312131
properties:
21322132
source_id:

airflow-core/src/airflow/api_fastapi/core_api/routes/ui/deadlines.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from airflow.api_fastapi.common.db.common import SessionDep, paginated_select
2828
from airflow.api_fastapi.common.parameters import QueryLimit, QueryOffset, SortParam
2929
from airflow.api_fastapi.common.router import AirflowRouter
30-
from airflow.api_fastapi.core_api.datamodels.ui.deadline import DealineCollectionResponse
30+
from airflow.api_fastapi.core_api.datamodels.ui.deadline import DeadlineCollectionResponse
3131
from airflow.api_fastapi.core_api.openapi.exceptions import create_openapi_http_exception_doc
3232
from airflow.api_fastapi.core_api.security import requires_access_dag
3333
from airflow.models.dagrun import DagRun
@@ -71,7 +71,7 @@ def get_dag_run_deadlines(
7171
).dynamic_depends(default="deadline_time")
7272
),
7373
],
74-
) -> DealineCollectionResponse:
74+
) -> DeadlineCollectionResponse:
7575
"""Get all deadlines for a specific DAG run."""
7676
dag_run = session.scalar(select(DagRun).where(DagRun.dag_id == dag_id, DagRun.run_id == dag_run_id))
7777

@@ -101,4 +101,4 @@ def get_dag_run_deadlines(
101101

102102
deadlines = session.scalars(deadlines_select)
103103

104-
return DealineCollectionResponse(deadlines=deadlines, total_entries=total_entries)
104+
return DeadlineCollectionResponse(deadlines=deadlines, total_entries=total_entries)

airflow-core/src/airflow/ui/openapi-gen/queries/ensureQueryData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ export const ensureUseDashboardServiceDagStatsData = (queryClient: QueryClient)
15661566
* @param data.limit
15671567
* @param data.offset
15681568
* @param data.orderBy Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `id, deadline_time, created_at, alert_name`
1569-
* @returns DealineCollectionResponse Successful Response
1569+
* @returns DeadlineCollectionResponse Successful Response
15701570
* @throws ApiError
15711571
*/
15721572
export const ensureUseDeadlinesServiceGetDagRunDeadlinesData = (queryClient: QueryClient, { dagId, dagRunId, limit, offset, orderBy }: {

airflow-core/src/airflow/ui/openapi-gen/queries/prefetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ export const prefetchUseDashboardServiceDagStats = (queryClient: QueryClient) =>
15661566
* @param data.limit
15671567
* @param data.offset
15681568
* @param data.orderBy Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `id, deadline_time, created_at, alert_name`
1569-
* @returns DealineCollectionResponse Successful Response
1569+
* @returns DeadlineCollectionResponse Successful Response
15701570
* @throws ApiError
15711571
*/
15721572
export const prefetchUseDeadlinesServiceGetDagRunDeadlines = (queryClient: QueryClient, { dagId, dagRunId, limit, offset, orderBy }: {

airflow-core/src/airflow/ui/openapi-gen/queries/queries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ export const useDashboardServiceDagStats = <TData = Common.DashboardServiceDagSt
15661566
* @param data.limit
15671567
* @param data.offset
15681568
* @param data.orderBy Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `id, deadline_time, created_at, alert_name`
1569-
* @returns DealineCollectionResponse Successful Response
1569+
* @returns DeadlineCollectionResponse Successful Response
15701570
* @throws ApiError
15711571
*/
15721572
export const useDeadlinesServiceGetDagRunDeadlines = <TData = Common.DeadlinesServiceGetDagRunDeadlinesDefaultResponse, TError = unknown, TQueryKey extends Array<unknown> = unknown[]>({ dagId, dagRunId, limit, offset, orderBy }: {

airflow-core/src/airflow/ui/openapi-gen/queries/suspense.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ export const useDashboardServiceDagStatsSuspense = <TData = Common.DashboardServ
15661566
* @param data.limit
15671567
* @param data.offset
15681568
* @param data.orderBy Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `id, deadline_time, created_at, alert_name`
1569-
* @returns DealineCollectionResponse Successful Response
1569+
* @returns DeadlineCollectionResponse Successful Response
15701570
* @throws ApiError
15711571
*/
15721572
export const useDeadlinesServiceGetDagRunDeadlinesSuspense = <TData = Common.DeadlinesServiceGetDagRunDeadlinesDefaultResponse, TError = unknown, TQueryKey extends Array<unknown> = unknown[]>({ dagId, dagRunId, limit, offset, orderBy }: {

airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7850,6 +7850,26 @@ export const $DashboardDagStatsResponse = {
78507850
description: 'Dashboard DAG Stats serializer for responses.'
78517851
} as const;
78527852

7853+
export const $DeadlineCollectionResponse = {
7854+
properties: {
7855+
deadlines: {
7856+
items: {
7857+
'$ref': '#/components/schemas/DeadlineResponse'
7858+
},
7859+
type: 'array',
7860+
title: 'Deadlines'
7861+
},
7862+
total_entries: {
7863+
type: 'integer',
7864+
title: 'Total Entries'
7865+
}
7866+
},
7867+
type: 'object',
7868+
required: ['deadlines', 'total_entries'],
7869+
title: 'DeadlineCollectionResponse',
7870+
description: 'Deadline Collection serializer for responses.'
7871+
} as const;
7872+
78537873
export const $DeadlineResponse = {
78547874
properties: {
78557875
id: {
@@ -7900,26 +7920,6 @@ export const $DeadlineResponse = {
79007920
description: 'Deadline serializer for responses.'
79017921
} as const;
79027922

7903-
export const $DealineCollectionResponse = {
7904-
properties: {
7905-
deadlines: {
7906-
items: {
7907-
'$ref': '#/components/schemas/DeadlineResponse'
7908-
},
7909-
type: 'array',
7910-
title: 'Deadlines'
7911-
},
7912-
total_entries: {
7913-
type: 'integer',
7914-
title: 'Total Entries'
7915-
}
7916-
},
7917-
type: 'object',
7918-
required: ['deadlines', 'total_entries'],
7919-
title: 'DealineCollectionResponse',
7920-
description: 'Deadline Collection serializer for responses.'
7921-
} as const;
7922-
79237923
export const $EdgeResponse = {
79247924
properties: {
79257925
source_id: {

airflow-core/src/airflow/ui/openapi-gen/requests/services.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3976,7 +3976,7 @@ export class DeadlinesService {
39763976
* @param data.limit
39773977
* @param data.offset
39783978
* @param data.orderBy Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `id, deadline_time, created_at, alert_name`
3979-
* @returns DealineCollectionResponse Successful Response
3979+
* @returns DeadlineCollectionResponse Successful Response
39803980
* @throws ApiError
39813981
*/
39823982
public static getDagRunDeadlines(data: GetDagRunDeadlinesData): CancelablePromise<GetDagRunDeadlinesResponse> {

airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,6 +1927,14 @@ export type DashboardDagStatsResponse = {
19271927
queued_dag_count: number;
19281928
};
19291929

1930+
/**
1931+
* Deadline Collection serializer for responses.
1932+
*/
1933+
export type DeadlineCollectionResponse = {
1934+
deadlines: Array<DeadlineResponse>;
1935+
total_entries: number;
1936+
};
1937+
19301938
/**
19311939
* Deadline serializer for responses.
19321940
*/
@@ -1939,14 +1947,6 @@ export type DeadlineResponse = {
19391947
alert_description?: string | null;
19401948
};
19411949

1942-
/**
1943-
* Deadline Collection serializer for responses.
1944-
*/
1945-
export type DealineCollectionResponse = {
1946-
deadlines: Array<DeadlineResponse>;
1947-
total_entries: number;
1948-
};
1949-
19501950
/**
19511951
* Edge serializer for responses.
19521952
*/
@@ -3566,7 +3566,7 @@ export type GetDagRunDeadlinesData = {
35663566
orderBy?: Array<(string)>;
35673567
};
35683568

3569-
export type GetDagRunDeadlinesResponse = DealineCollectionResponse;
3569+
export type GetDagRunDeadlinesResponse = DeadlineCollectionResponse;
35703570

35713571
export type StructureDataData = {
35723572
dagId: string;
@@ -6819,7 +6819,7 @@ export type $OpenApiTs = {
68196819
/**
68206820
* Successful Response
68216821
*/
6822-
200: DealineCollectionResponse;
6822+
200: DeadlineCollectionResponse;
68236823
/**
68246824
* Not Found
68256825
*/

0 commit comments

Comments
 (0)