Skip to content

Migrate the public endpoint Get DAG Stats to FastAPI#43255

Merged
pierrejeambrun merged 3 commits into
apache:mainfrom
omkar-foss:aip-84/dags/get-dag-stats
Nov 5, 2024
Merged

Migrate the public endpoint Get DAG Stats to FastAPI#43255
pierrejeambrun merged 3 commits into
apache:mainfrom
omkar-foss:aip-84/dags/get-dag-stats

Conversation

@omkar-foss

Copy link
Copy Markdown
Collaborator

closes: #42877
related: #42370

This migrates the Get DAG Stats 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 22, 2024
@omkar-foss omkar-foss force-pushed the aip-84/dags/get-dag-stats branch 3 times, most recently from 7519fd1 to a3a80ec Compare October 23, 2024 10:03
@omkar-foss omkar-foss marked this pull request as ready for review October 23, 2024 19:30
Comment thread airflow/api_fastapi/core_api/routes/public/dag_stats.py Outdated
Comment thread airflow/api_fastapi/core_api/routes/public/dag_stats.py Outdated
Comment thread airflow/api_fastapi/core_api/routes/public/dag_stats.py Outdated

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

Looking good. A few suggestions and we should be good to merge.

Comment thread tests/api_fastapi/core_api/routes/public/test_dag_stats.py Outdated
Comment thread airflow/api_fastapi/core_api/routes/public/dag_stats.py Outdated
Comment thread tests/api_fastapi/core_api/routes/public/test_dag_stats.py Outdated
Comment thread airflow/api_fastapi/core_api/routes/public/dag_stats.py Outdated
Comment thread airflow/api_fastapi/core_api/routes/public/dag_stats.py Outdated
Comment thread airflow/api_fastapi/core_api/routes/public/dag_stats.py Outdated
@omkar-foss omkar-foss force-pushed the aip-84/dags/get-dag-stats branch from 91ba57f to 440180c Compare October 28, 2024 15:53
@omkar-foss omkar-foss force-pushed the aip-84/dags/get-dag-stats branch from 9873a00 to 56faf48 Compare October 29, 2024 04:57
@omkar-foss

Copy link
Copy Markdown
Collaborator Author

@pierrejeambrun All comments resolved, please have a look when possible. Thank you!

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

We are missing the @mark_fastapi_migration_done decorator

Comment thread airflow/api_fastapi/common/db/dags.py Outdated
Comment thread airflow/api_fastapi/core_api/routes/public/dag_stats.py Outdated
Comment thread tests/api_fastapi/core_api/routes/public/test_dag_stats.py Outdated
@omkar-foss omkar-foss force-pushed the aip-84/dags/get-dag-stats branch from 56faf48 to 22b234d Compare November 4, 2024 09:21
@omkar-foss omkar-foss added the legacy api Whether legacy API changes should be allowed in PR label Nov 4, 2024
@omkar-foss

Copy link
Copy Markdown
Collaborator Author

We are missing the @mark_fastapi_migration_done decorator

Done, added it. And have added legacy api label to PR.

@omkar-foss

omkar-foss commented Nov 4, 2024

Copy link
Copy Markdown
Collaborator Author

@pierrejeambrun all conversations and conflicts resolved, PR ready to review ✅

Also kindly see this thread, let me know if any changes needed there: #43255 (comment)

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

Looking good, thanks

@pierrejeambrun

Copy link
Copy Markdown
Member

Need rebasing but can be merged after that.

@omkar-foss omkar-foss force-pushed the aip-84/dags/get-dag-stats branch from 330db0c to 47dd7d5 Compare November 5, 2024 12:39
@omkar-foss

Copy link
Copy Markdown
Collaborator Author

Need rebasing but can be merged after that.

@pierrejeambrun done, PR rebased and synced with main

@pierrejeambrun

Copy link
Copy Markdown
Member

Thanks @omkar-foss

Comment thread airflow/api_fastapi/core_api/routes/public/dag_stats.py
@pierrejeambrun pierrejeambrun merged commit 69c1f92 into apache:main Nov 5, 2024
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
* Migrate public endpoint Get DAG Stats to FastAPI, with main resynced

* Re-run static checks

* Add newlines to separate entities
@omkar-foss omkar-foss deleted the aip-84/dags/get-dag-stats 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. 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 DAG Stats to FastAPI

3 participants