Skip to content

Make api_key_env_var optional in LoadFromAPI #1799

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 1 commit into
base: main
Choose a base branch
from

Conversation

martinscooper
Copy link
Collaborator

As the docstring states, api_key_env_var should be optional:

 api_key_env_var (str, optional):
     The name of the environment variable holding the API key.

Currently, it has a default value of SQL_API_KEY, forcing users to set that env var even if the endpoint doesn't require any api key.

This PR makes api_key_env_var optional.

Signed-off-by: Martín Santillán Cooper <[email protected]>
@martinscooper martinscooper force-pushed the LoadFromAPI-optional-apikey branch from cd60334 to 20bbbf7 Compare May 16, 2025 21:23
@martinscooper martinscooper requested a review from elronbandel May 16, 2025 21:23
@elronbandel
Copy link
Member

@perlitz will this new default break any of the sql pipelines?

@perlitz
Copy link
Collaborator

perlitz commented May 20, 2025

I'll make sure it doesn't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants