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

AIP-84 Move public api under /api/v2 #47760

Merged
merged 13 commits into from
Mar 19, 2025

Conversation

prabhusneha
Copy link
Contributor

Closes: #47624


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

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.

Nice, lets rebase and solve conflicts to run the CI

@prabhusneha prabhusneha force-pushed the rename_public_api_to_v2 branch from 4ec5384 to 545801c Compare March 14, 2025 12:45
@pierrejeambrun
Copy link
Member

I think we are missing some occurences in:

  • airflow/ui/dev/index.html|7 col 66|
  • clients/python/test_python_client.py|69 col 32| host="http://localhost:8080/public",
  • docker_tests/test_docker_compose_quick_start.py|94 col 80| method: str, path: str, base_url: str = f"http://{DOCKER_COMPOSE_HOST_PORT}/public", **kwargs
  • airflow/api_fastapi/app.py|76 col 65| description="Airflow API. All endpoints located under /public can be used safely, are stable and backward compatible. "
  • airflow/api_fastapi/auth/managers/simple/ui/dev/index.html|6 col 66|

@prabhusneha
Copy link
Contributor Author

I am fixing the conflicts and reopening.

@prabhusneha
Copy link
Contributor Author

I think we are missing some occurences in:

  • airflow/ui/dev/index.html|7 col 66|
  • clients/python/test_python_client.py|69 col 32| host="http://localhost:8080/public",
  • docker_tests/test_docker_compose_quick_start.py|94 col 80| method: str, path: str, base_url: str = f"http://{DOCKER_COMPOSE_HOST_PORT}/public", **kwargs
  • airflow/api_fastapi/app.py|76 col 65| description="Airflow API. All endpoints located under /public can be used safely, are stable and backward compatible. "
  • airflow/api_fastapi/auth/managers/simple/ui/dev/index.html|6 col 66|

Made the required changes and resolved conflicts.

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.

CI needs more work I guess, some tests are failing

@prabhusneha
Copy link
Contributor Author

Working on changing it to /api/v2 and fixing the CI.

@prabhusneha prabhusneha force-pushed the rename_public_api_to_v2 branch from d8161ab to ee97839 Compare March 19, 2025 07:39
@prabhusneha
Copy link
Contributor Author

@pierrejeambrun Please take a look.
Modified to /api/v2 and CI is green now.

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.

Looking good to me, beside comments Ash comments

@pierrejeambrun pierrejeambrun changed the title AIP-84 Move public api under /v2 AIP-84 Move public api under /api/v2 Mar 19, 2025
@prabhusneha
Copy link
Contributor Author

Looking good to me, beside comments Ash comments

As mentioned, will create a follow up PR to address the comments by @ashb

Copy link
Contributor

@bugraoz93 bugraoz93 left a comment

Choose a reason for hiding this comment

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

Agree with Ash on generalizing the test paths to eliminate huge updates if needed.

@jedcunningham jedcunningham merged commit cae2232 into apache:main Mar 19, 2025
89 checks passed
@jedcunningham jedcunningham deleted the rename_public_api_to_v2 branch March 19, 2025 23:51
tyrellcurry pushed a commit to tyrellcurry/airflow that referenced this pull request Mar 21, 2025
agupta01 pushed a commit to agupta01/airflow that referenced this pull request Mar 21, 2025
shubham-pyc pushed a commit to shubham-pyc/airflow that referenced this pull request Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AIP-84 Move public api under /v2
6 participants