forked from getredash/redash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rohith Menon
committed
Aug 16, 2017
1 parent
feab2a7
commit 59b7961
Showing
5 changed files
with
72 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<select ng-model="$ctrl.param.value" class="form-control" ng-options="option.value as option.name for option in $ctrl.queryResultOptions"> | ||
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59b7961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rohithmenon,
I'm very like this feature and merged your pull request in my clear fork of Redash.
But unfortunately something doesn't work... and I see blank lists in query based drop-downs.
Could you help me to make it work?
Thank you.
59b7961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vabanin
Are you seeing blank in the drop down of query results that must appear in drop down or in the selector for queries to be used for drop down?
If latter,
Redash starts showing up queries after you enter 3 characters of the query name. Try entering 3 characters that would match the query name.
If former, I would need a little more information:
What are the columns in the output for the query intended for drop-down?
How many rows are present in the output of the query intended for drop-down?
Are there usages of templates in the intended query?
The above questions should be answerable even without using this feature.
When using this feature, are there any errors that you are able to see on chrome debug console? [Skip this question if you are not familiar with this]
59b7961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rohithmenon
I'm seeing blank list in drop down of query results.
And I see such picture for all tested queries.
It is for example in case of following simple query:
So my answers are following:
One text column "name".
3
No
Yes! There are following errors:
59b7961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested with the same query and works on my local version (latest version of redash with this feature available).
Confirming the steps:
One way I was able to reproduce no result in drop down is when the query powering the drop down was never executed/refreshed. Try executing the query and try the drop down.
59b7961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
Yes. And I found that error in chrome debug console mentioned in my previous message appears after this step.
Yes.
59b7961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional info - error appears after selection parameter type 'Query based dropdown List'.