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

Single quote filter values with comma #1084

Merged
merged 3 commits into from
Sep 12, 2016

Conversation

vera-liu
Copy link
Contributor

@vera-liu vera-liu commented Sep 9, 2016

  • Comma is used to separate different value types for filter box, previously we had problems on values with comma in it because they would be separated into two values upon query.
  • We could wrap values with comma in single quote, for both filter control and filter box, to solve this problem.
    needs-review @ascott @mistercrunch @bkyryliuk
    After:
    screen shot 2016-09-08 at 9 42 01 pm
    screen shot 2016-09-08 at 9 42 29 pm

@vera-liu vera-liu force-pushed the vliu_comma_in_filter branch 3 times, most recently from 0cbf180 to 82b828d Compare September 9, 2016 16:09
@@ -53,6 +54,7 @@
config = app.config

QueryResult = namedtuple('namedtuple', ['df', 'query', 'duration'])
FillterPattern = re.compile(r'''((?:[^,"']|"[^"]*"|'[^']*')+)''')
Copy link
Member

Choose a reason for hiding this comment

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

please add a unit test

@mistercrunch
Copy link
Member

This tooltip should make it clear that single quotes should be used to encapsulate strings that contain commas.
screen shot 2016-09-09 at 10 37 11 am

@vera-liu vera-liu force-pushed the vliu_comma_in_filter branch 2 times, most recently from 3a2b0a3 to b777552 Compare September 9, 2016 23:51
@mistercrunch
Copy link
Member

LGTM

@vera-liu vera-liu merged commit 1f761c6 into apache:master Sep 12, 2016
@vera-liu vera-liu deleted the vliu_comma_in_filter branch September 12, 2016 20:41
dennisobrien pushed a commit to dennisobrien/caravel that referenced this pull request Sep 19, 2016
* Single quote filter values with comma

* refactor for codeclimate limite

* Added unit tests and tooltip
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
…pache#1084)

* feat(plugin-chart-graph): add node/edge size and edge symbol control

* Fix test case
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
…pache#1084)

* feat(plugin-chart-graph): add node/edge size and edge symbol control

* Fix test case
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
…pache#1084)

* feat(plugin-chart-graph): add node/edge size and edge symbol control

* Fix test case
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
…pache#1084)

* feat(plugin-chart-graph): add node/edge size and edge symbol control

* Fix test case
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants