Skip to content

Migrate public endpoint Get Tasks to FastAPI - #43980

Merged
pierrejeambrun merged 5 commits into
apache:mainfrom
omkar-foss:aip-84/tasks/get-tasks
Nov 15, 2024
Merged

Migrate public endpoint Get Tasks to FastAPI#43980
pierrejeambrun merged 5 commits into
apache:mainfrom
omkar-foss:aip-84/tasks/get-tasks

Conversation

@omkar-foss

Copy link
Copy Markdown
Collaborator

closes: #42875
related: #42370

This migrates the Get Tasks API from api_connexion to api_fastapi.

@boring-cyborgboring-cyborgBot added the area:UI Related to UI/UX. For Frontend Developers. label Nov 13, 2024
@omkar-foss
omkar-fossforce-pushed the aip-84/tasks/get-tasks branch from 2e1d174 to 7bdaa5dCompareNovember 13, 2024 19:42
@omkar-foss
omkar-foss marked this pull request as ready for review November 13, 2024 19:42
@omkar-fossomkar-foss self-assigned this Nov 13, 2024
@omkar-fossomkar-foss added the legacy api Whether legacy API changes should be allowed in PR label Nov 13, 2024
@omkar-foss

Copy link
Copy Markdown
CollaboratorAuthor

@pierrejeambrun This PR also addresses the pending part from #43718 - have used model_validator which worked well to access the task properly, and have also moved the _get_class_ref() function to the tasks data model as it's not very reusable. Cheers.

@pierrejeambrunpierrejeambrun left a comment

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.

Great, thanks!

Thanks for the refactoring as well, it's cleaner.

One minor suggestion, because of a recent change of convention introduced in a PR merged yesterday.

Ready to merge after that.

Comment threadairflow/api_fastapi/core_api/routes/public/tasks.py Outdated
@omkar-foss
omkar-fossforce-pushed the aip-84/tasks/get-tasks branch 3 times, most recently from 60cfdf6 to 245b9c4CompareNovember 14, 2024 15:50
@omkar-foss

Copy link
Copy Markdown
CollaboratorAuthor

@pierrejeambrun PR synced with main and all conversations resolved. Thank you! ✅

@omkar-foss
omkar-fossforce-pushed the aip-84/tasks/get-tasks branch from 245b9c4 to 8b7bc20CompareNovember 14, 2024 18:32
@pierrejeambrun
pierrejeambrun merged commit f66459b into apache:mainNov 15, 2024
@omkar-foss
omkar-foss deleted the aip-84/tasks/get-tasks branch November 15, 2024 18:12
kandharvishnu pushed a commit to kandharvishnu/airflow that referenced this pull request Nov 19, 2024
* Migrate public endpoint Get Tasks to FastAPI
* Re-run static checks
* Add migration marker
* Remove 401 and 403, which are now added by default
* Re-run static checks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UIRelated to UI/UX. For Frontend Developers.legacy apiWhether legacy API changes should be allowed in PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AIP-84 Migrate the public endpoint Get Tasks to FastAPI

2 participants

@omkar-foss@pierrejeambrun