Skip to content

Refactor Databricks hook to use HTTP method constants and auto-prepend api/ to endpoint paths #52385

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

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

Conversation

kyungjunleeme
Copy link
Contributor

@kyungjunleeme kyungjunleeme commented Jun 28, 2025

This PR is related to #52275.

It refactors the Databricks hook to:
I removed the hardcoded 'api/' prefix and added three new endpoints.


^ 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 airflow-core/newsfragments.

@kyungjunleeme kyungjunleeme force-pushed the refactor/databricks-api-path branch from c22885a to f14013d Compare June 29, 2025 23:57
@kyungjunleeme kyungjunleeme marked this pull request as ready for review June 29, 2025 23:58
Comment on lines +59 to +61
UPDATE_REPO_ENDPOINT = ("PATCH", "2.0/repos/")
DELETE_REPO_ENDPOINT = ("DELETE", "2.0/repos/")
CREATE_REPO_ENDPOINT = ("POST", "2.0/repos")
Copy link
Contributor Author

@kyungjunleeme kyungjunleeme Jun 29, 2025

Choose a reason for hiding this comment

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

This time, I made new endpoint from method. I just wantt to notify

@kyungjunleeme
Copy link
Contributor Author

kyungjunleeme commented Jun 30, 2025

@jroachgolf84 Hello, Colud you review my pr? Thank in advance

@kyungjunleeme kyungjunleeme force-pushed the refactor/databricks-api-path branch from f14013d to 7c17536 Compare June 30, 2025 12:20
@kyungjunleeme kyungjunleeme force-pushed the refactor/databricks-api-path branch from 7c17536 to bd4af77 Compare June 30, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant