Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

override --cloud host name #465

Closed
wants to merge 1 commit into from
Closed

Conversation

dlawin
Copy link
Contributor

@dlawin dlawin commented Mar 28, 2023

Resolves #461

Adds an additional flag --cloud-host-name. This flag or the env variable DATAFOLD_API_HOST_NAME can be used to override the url for --cloud

Example:
--cloud-host-name blah.blah.com -> "blah.blah.com/api/v1/datadiffs" being used. I don't think there's a reason to override the full endpoints

@dlawin dlawin added enhancement New feature or request cloud Issues related to data-diff <> Datafold Cloud interaction --dbt Issues/features related to the dbt integration labels Mar 28, 2023
@dlawin dlawin self-assigned this Mar 28, 2023
@dlawin dlawin requested a review from nolar March 28, 2023 23:43
@dlawin dlawin changed the title override --cloud domain name override --cloud host name Mar 28, 2023
@@ -229,7 +233,7 @@ def _cloud_diff(diff_vars: DiffVars) -> None:
if api_key is None:
raise ValueError("API key not found, add it as an environment variable called DATAFOLD_API_KEY.")

url = "https://app.datafold.com/api/v1/datadiffs"
url = f"https://{host_name}/api/v1/datadiffs"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nolar do you see any reason to override the full endpoint urls? I made an assumption that the host_name is enough

@dlawin
Copy link
Contributor Author

dlawin commented Mar 29, 2023

Closing as this is addressed in #462

@dlawin dlawin closed this Mar 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
--dbt Issues/features related to the dbt integration cloud Issues related to data-diff <> Datafold Cloud interaction enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support a custom endpoint for --cloud
1 participant