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

Feature: Filter Box using TextInput #2867 #2868

Closed
wants to merge 5 commits into from
Closed

Feature: Filter Box using TextInput #2867 #2868

wants to merge 5 commits into from

Conversation

thiagofelix
Copy link

This PR implements the feature described in #2867

The idea is to have a param on the FilterBox component that make it render a TextInput instead of a Select combo box.
When this param is set to TextInput the component won't fetch any data from the backend and the user won't be able to see options available.

The use case is when you want to filter based on a long list (my case is hundreds of thousands) and using the Select became very slow to do so.

Appreciate any feedback

@kkalyan
Copy link
Contributor

kkalyan commented May 28, 2017

thanks, does this PR address #2614?

@thiagofelix
Copy link
Author

No it doesn't

The textinput version od the components only works for single elemebt you wanto to search for. It doesnt account for multiple values.

It might be possible to implement using string split by a delimiter thought

elif select_type == 'select':
return super(FilterBoxViz, self).get_df(query_obj)
else:
raise Exception("Invalid select type")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ValueError maybe?

"Text Input"
]
],
"description": "How to enter de filter input?"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be improved by some native english speaker :)

['select', 'Select'],
['text_input', 'Text Input'],
],
description: 'How to enter de filter input?',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@mistercrunch
Copy link
Member

So the more I look at this Filter Box component the more I think it needs to be re-written to supports an array of heterogenous filters. I'm thinking that we probably want to reuse the FiltersControl in that context. FiltersControl is pretty intricate and seems like it should just work there, the only thing we're missing is the metrics-driven sort/histogram-background.

@eddy-geek
Copy link

eddy-geek commented Oct 15, 2017

Is something missing to merge this, beside fixing the conflict issues? I am working on the rebase here: master...eddy-geek:filter_input_box

I'm also having the issue with big tables where the SQL query times out...

@mistercrunch
Copy link
Member

Warning: this issue has been inactive for 189 days and will be automatically closed on 2018-04-23 if there is no further activity. You can add the keepup label to the issue in order for this bot to keep it open.

@pajachiet pajachiet mentioned this pull request May 31, 2018
3 tasks
@kristw kristw added enhancement:request Enhancement request submitted by anyone from the community inactive Inactive for >= 30 days labels Jan 22, 2019
@kristw kristw added the obsolete No longer relevant issue or applicable code label Feb 7, 2019
@kristw kristw closed this Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement:request Enhancement request submitted by anyone from the community inactive Inactive for >= 30 days obsolete No longer relevant issue or applicable code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants