Skip to content

Commit

Permalink
Merge branch 'main' into AIP84-delete-assets-queued-event-new
Browse files Browse the repository at this point in the history
  • Loading branch information
vatsrahul1001 committed Nov 18, 2024
2 parents 3ec2ab8 + f3bad1e commit 7d7a311
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 25 deletions.
6 changes: 0 additions & 6 deletions airflow/api_fastapi/core_api/routes/public/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,6 @@ def patch_connection(

@connections_router.post(
"/test",
responses=create_openapi_http_exception_doc(
[
status.HTTP_401_UNAUTHORIZED,
status.HTTP_403_FORBIDDEN,
]
),
)
def test_connection(
test_body: ConnectionBody,
Expand Down
1 change: 0 additions & 1 deletion airflow/api_fastapi/core_api/routes/public/event_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def get_event_log(

@event_logs_router.get(
"/",
responses=create_openapi_http_exception_doc([status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN]),
)
def get_event_logs(
limit: QueryLimit,
Expand Down
4 changes: 1 addition & 3 deletions airflow/api_fastapi/core_api/routes/public/pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ def delete_pool(

@pools_router.get(
"/{pool_name}",
responses=create_openapi_http_exception_doc(
[status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN, status.HTTP_404_NOT_FOUND]
),
responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]),
)
def get_pool(
pool_name: str,
Expand Down
20 changes: 5 additions & 15 deletions airflow/api_fastapi/core_api/routes/public/task_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def get_task_instance(

@task_instances_router.get(
"/{task_id}/listMapped",
responses=create_openapi_http_exception_doc(
[status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN, status.HTTP_404_NOT_FOUND]
),
responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]),
)
def get_mapped_task_instances(
dag_id: str,
Expand Down Expand Up @@ -182,15 +180,11 @@ def get_mapped_task_instances(

@task_instances_router.get(
"/{task_id}/dependencies",
responses=create_openapi_http_exception_doc(
[status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN, status.HTTP_404_NOT_FOUND]
),
responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]),
)
@task_instances_router.get(
"/{task_id}/{map_index}/dependencies",
responses=create_openapi_http_exception_doc(
[status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN, status.HTTP_404_NOT_FOUND]
),
responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]),
)
def get_task_instance_dependencies(
dag_id: str,
Expand Down Expand Up @@ -240,9 +234,7 @@ def get_task_instance_dependencies(

@task_instances_router.get(
"/{task_id}/{map_index}",
responses=create_openapi_http_exception_doc(
[status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN, status.HTTP_404_NOT_FOUND]
),
responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]),
)
def get_mapped_task_instance(
dag_id: str,
Expand Down Expand Up @@ -271,9 +263,7 @@ def get_mapped_task_instance(

@task_instances_router.get(
"/",
responses=create_openapi_http_exception_doc(
[status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN, status.HTTP_404_NOT_FOUND]
),
responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]),
)
def get_task_instances(
dag_id: str,
Expand Down

0 comments on commit 7d7a311

Please sign in to comment.