You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2025/04/15 11:17:21 UTC
(airflow) branch fix-redocs-docs-build updated (0b3747a5870 -> 0f04b9551f6)
This is an automated email from the ASF dual-hosted git repository.
ash pushed a change to branch fix-redocs-docs-build
in repository https://gitbox.apache.org/repos/asf/airflow.git
discard 0b3747a5870 Fix building of redoc API docs.
new 0f04b9551f6 Improvements to rendered API docs
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (0b3747a5870)
\
N -- N -- N refs/heads/fix-redocs-docs-build (0f04b9551f6)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
airflow-core/src/airflow/api_fastapi/app.py | 1 +
airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml | 2 +-
airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
(airflow) 01/01: Improvements to rendered API docs
Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ash pushed a commit to branch fix-redocs-docs-build
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 0f04b9551f6885b271e7b3da163289da1bca5aec
Author: Ash Berlin-Taylor <as...@apache.org>
AuthorDate: Tue Apr 15 11:52:16 2025 +0100
Improvements to rendered API docs
Somehow in #48760 we mistakenly changed `redoc` to `redocs` variable, which
doesn't do anything :) This makes the redoc docs render and build again
It was saying "Airflow API (0.1.0)" which isn't right, so that is fixed too
---
airflow-core/docs/conf.py | 2 +-
airflow-core/src/airflow/api_fastapi/app.py | 1 +
airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml | 2 +-
airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts | 2 +-
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/airflow-core/docs/conf.py b/airflow-core/docs/conf.py
index f1ce99843d9..1e470587b99 100644
--- a/airflow-core/docs/conf.py
+++ b/airflow-core/docs/conf.py
@@ -345,7 +345,7 @@ graphviz_output_format = "svg"
main_openapi_path = Path(main_openapi_file).parent.joinpath("v1-generated.yaml")
sam_openapi_path = Path(sam_openapi_file).parent.joinpath("v1-generated.yaml")
-redocs = [
+redoc = [
{
"name": "Simple auth manager token API",
"page": "core-concepts/auth-manager/simple/sam-token-api-ref",
diff --git a/airflow-core/src/airflow/api_fastapi/app.py b/airflow-core/src/airflow/api_fastapi/app.py
index e7fc9d32b35..b11cf6824f5 100644
--- a/airflow-core/src/airflow/api_fastapi/app.py
+++ b/airflow-core/src/airflow/api_fastapi/app.py
@@ -77,6 +77,7 @@ def create_app(apps: str = "all") -> FastAPI:
"depending on the need of the frontend. Users should not rely on those but use the public ones instead.",
lifespan=lifespan,
root_path=API_ROOT_PATH.removesuffix("/"),
+ version="2",
)
dag_bag = get_dag_bag()
diff --git a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml
index 2e898e370ac..b3d429d0f3c 100644
--- a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml
+++ b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml
@@ -5,7 +5,7 @@ info:
are stable and backward compatible. Endpoints located under ``/ui`` are dedicated
to the UI and are subject to breaking change depending on the need of the frontend.
Users should not rely on those but use the public ones instead.
- version: 0.1.0
+ version: '2'
paths:
/ui/auth/menus:
get:
diff --git a/airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts b/airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts
index dddf78f069e..2b80bacec1c 100644
--- a/airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts
+++ b/airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts
@@ -49,7 +49,7 @@ export const OpenAPI: OpenAPIConfig = {
PASSWORD: undefined,
TOKEN: undefined,
USERNAME: undefined,
- VERSION: "0.1.0",
+ VERSION: "2",
WITH_CREDENTIALS: false,
interceptors: {
request: new Interceptors(),