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

[CORE-5238] Use string for database endpoint params #9

Merged

Conversation

cappadona
Copy link
Collaborator

@cappadona cappadona commented Jan 30, 2024

JSON encoding the params resulted in URL encoded JSON object in query string sent to the Metabase API.

The requests package expects a dictionary of strings for params with no rules to encode boolean types [2, 3], so best to keep it simple and use strings.

metabase-api_params_string

Followup to #8. JSON encoding the params resulted in URL encoded JSON
object in query string sent to the Metabase API.

The requests package expects a dictionary of strings for `params` [1]
with no rules to encode boolean types [2, 3], so best to keep it simple
and use strings.

[1]: https://docs.python-requests.org/en/latest/user/quickstart/#passing-parameters-in-urls
[2]: psf/requests#2999
[3]: psf/requests#3355
@AlbertDeFusco AlbertDeFusco merged commit 09ad56c into master Jan 30, 2024
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.

2 participants