Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate public endpoint Get Tasks to FastAPI #43980

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

omkar-foss
Copy link
Collaborator

closes: #42875
related: #42370

This migrates the Get Tasks API from api_connexion to api_fastapi.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Nov 13, 2024
@omkar-foss omkar-foss marked this pull request as ready for review November 13, 2024 19:42
@omkar-foss omkar-foss self-assigned this Nov 13, 2024
@omkar-foss omkar-foss added the legacy api Whether legacy API changes should be allowed in PR label Nov 13, 2024
@omkar-foss
Copy link
Collaborator Author

@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.

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

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.

airflow/api_fastapi/core_api/routes/public/tasks.py Outdated Show resolved Hide resolved
@omkar-foss omkar-foss force-pushed the aip-84/tasks/get-tasks branch 3 times, most recently from 60cfdf6 to 245b9c4 Compare November 14, 2024 15:50
@omkar-foss
Copy link
Collaborator Author

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

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. legacy api Whether 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