Skip to content

Handle parametrized query#12

Open
en30 wants to merge 1 commit intohakobera:masterfrom
en30:parametrized-query
Open

Handle parametrized query#12
en30 wants to merge 1 commit intohakobera:masterfrom
en30:parametrized-query

Conversation

@en30
Copy link

@en30 en30 commented Aug 23, 2017

Background

Redash has a parametrized query feature.
And if environment variable REDASH_ALLOW_PARAMETERS_IN_EMBEDS is set to true, the /embed/... endpoint accepts query params.

What this pull request changes

If I use the parametrized query feature, a visualization's url is like below.

`${redashHost}/queries/1?p_foo=1#2`

This does not match the current accepting pattern.

`${redashHost}/queries/([0-9]+)#([0-9]+)`

This pull request adds handling of parametrized queries.

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.

1 participant