Skip to content

Migrate public endpoint Get Airflow Version to FastAPI#43312

Merged
bbovenzi merged 2 commits into
apache:mainfrom
omkar-foss:aip-84/get-airflow-version
Oct 24, 2024
Merged

Migrate public endpoint Get Airflow Version to FastAPI#43312
bbovenzi merged 2 commits into
apache:mainfrom
omkar-foss:aip-84/get-airflow-version

Conversation

@omkar-foss

Copy link
Copy Markdown
Collaborator

closes: #42879
related: #42370

This migrates the Get Airflow Version API from api_connexion to api_fastapi.

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Oct 23, 2024
@omkar-foss omkar-foss marked this pull request as ready for review October 23, 2024 14:56
@bbovenzi bbovenzi merged commit 27f3be6 into apache:main Oct 24, 2024
Comment on lines +33 to +34
version_info = VersionInfo(version=airflow_version, git_version=git_version)
return VersionInfo.model_validate(version_info)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you don't need to revalidate the version_info. Validation is done at instanciation of VersionInfo.

return VersionInfo(...)

ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
* Migrate public endpoint Get Airflow Version to FastAPI

* Run static checks
@omkar-foss omkar-foss deleted the aip-84/get-airflow-version branch November 14, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AIP-84 Migrate the public endpoint Get Airflow Version Info to FastAPI

4 participants