From 87337da101730b84618096f4ba6e415e5b268cd8 Mon Sep 17 00:00:00 2001 From: Kalyan R Date: Tue, 19 Nov 2024 19:04:40 +0530 Subject: [PATCH] fix get ti endpoint route (#44171) --- airflow/api_fastapi/core_api/openapi/v1-generated.yaml | 2 +- airflow/api_fastapi/core_api/routes/public/task_instances.py | 2 +- airflow/ui/openapi-gen/requests/services.gen.ts | 2 +- airflow/ui/openapi-gen/requests/types.gen.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/airflow/api_fastapi/core_api/openapi/v1-generated.yaml b/airflow/api_fastapi/core_api/openapi/v1-generated.yaml index 1b90f555a14fb..6512dbee93775 100644 --- a/airflow/api_fastapi/core_api/openapi/v1-generated.yaml +++ b/airflow/api_fastapi/core_api/openapi/v1-generated.yaml @@ -3413,7 +3413,7 @@ paths: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' - /public/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/: + /public/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances: get: tags: - Task Instance diff --git a/airflow/api_fastapi/core_api/routes/public/task_instances.py b/airflow/api_fastapi/core_api/routes/public/task_instances.py index 80457d71776ba..a82f712f4e191 100644 --- a/airflow/api_fastapi/core_api/routes/public/task_instances.py +++ b/airflow/api_fastapi/core_api/routes/public/task_instances.py @@ -265,7 +265,7 @@ def get_mapped_task_instance( @task_instances_router.get( - "/", + "", responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]), ) def get_task_instances( diff --git a/airflow/ui/openapi-gen/requests/services.gen.ts b/airflow/ui/openapi-gen/requests/services.gen.ts index 906085fbc58c8..ce47f373ea025 100644 --- a/airflow/ui/openapi-gen/requests/services.gen.ts +++ b/airflow/ui/openapi-gen/requests/services.gen.ts @@ -1896,7 +1896,7 @@ export class TaskInstanceService { ): CancelablePromise { return __request(OpenAPI, { method: "GET", - url: "/public/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/", + url: "/public/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances", path: { dag_id: data.dagId, dag_run_id: data.dagRunId, diff --git a/airflow/ui/openapi-gen/requests/types.gen.ts b/airflow/ui/openapi-gen/requests/types.gen.ts index 378bcfc013cf7..ee2233a89cd39 100644 --- a/airflow/ui/openapi-gen/requests/types.gen.ts +++ b/airflow/ui/openapi-gen/requests/types.gen.ts @@ -3076,7 +3076,7 @@ export type $OpenApiTs = { }; }; }; - "/public/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/": { + "/public/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances": { get: { req: GetTaskInstancesData; res: {