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

Add support for default values for query parameters #717

Closed
superstrong opened this issue Dec 22, 2015 · 3 comments
Closed

Add support for default values for query parameters #717

superstrong opened this issue Dec 22, 2015 · 3 comments

Comments

@superstrong
Copy link

[Feature Request]

While creating or editing a SQL query containing URL parameters, the result breaks unless you put query values in the URL. Having default values would help.

This builds on #285

To keep UI changes to a minimum, this could be done in the query itself, like this:

SELECT ...
FROM ...
WHERE date >= NOW() - INTERVAL '{{days,28}}' days
   AND city = '{{city,New York City}}'

... or in a separate text area below the query where the user defines the default values for each query parameter, like this:

days = 28
city = New York City
@arikfr
Copy link
Member

arikfr commented Dec 22, 2015

Parameters enhancement is high on the priority list and the plan is to add a UI for value input, but also UI to define the parameter -- its type (date, dropdown, number, etc) and default value.

I have a branch where I started working on this, but other things took over...

@toyama0919
Copy link
Contributor

duplicate issue.
#583

@arikfr
Copy link
Member

arikfr commented Feb 9, 2016

(I've updated #583 and closing this one)

@arikfr arikfr closed this as completed Feb 9, 2016
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

No branches or pull requests

3 participants