V2 filtering_settings
See original GitHub issuea placeholder issue to discuss the next version of the filtering_settings
property. In particular:
- Its name
- Its structure: is it a string that the user has to parse or a more complex object?
- What does the grammar look like?
country eq("Canada")
orcountry is Canada
orcountry == Canada
orcountry = Canada
, etc
Issue Analytics
- State:
- Created 5 years ago
- Comments:29 (10 by maintainers)
Top Results From Across the Web
Scripting API: FilteringSettings - Unity - Manual
A FilteringSettings struct describes how to filter the set of objects that ScriptableRenderContext.DrawRenderers receives, so that Unity draws a subset of ...
Read more >Setting up AWS Lake Formation
Configure an Amazon S3 location for your data lake. Prepare for using governed tables. (Optional) External data filtering settings. (Optional) Grant Access to ......
Read more >How to Setup RPM Filter in Betaflight - Oscar Liang
I will show you how to setup RPM filter in Betaflight. And how to tune filters to further optimize flight performance of your...
Read more >Filtering Settings (NFA) - NetVizura User Guide
To configure aggregator filtering, go to > Settings > NetFlow Settings > Aggregator Filtering tab. You are able to accept or reject any...
Read more >Filtering Settings - Lightning Conductor Web Part 2013 - 2.1
The Filtering Settings section is the fifth of six sections on the Data Source tab of the Lightning Conductor Web Part dialog. When...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I appreciate the discussion here, but implementing all this really looks like an epic endeavor, and I wonder if its really necessary for the average user? When I first stumbled on upon the
dash_table
package, ran the example and it took me a while to figure out how to specify filter expressions correctly. I found it not very intuitive.Wouldn’t it cover about 95% of all cases, if any column (even numerical ones) could be filtered by simply typing a few letters or numbers into their filter field, which are then matched anywhere and without case. In this datatable implementation https://datatables.net/manual/styling/jqueryui there is even only one global search field! If you get too many results, you just add another word. Aside from that, the “<” and “>” operators for numerical columns can simply be achieved by sorting by the respective columns.
IMHO, simplicity, intuitiveness and responsiveness are more valuable than being able to “program” a filter with lots of conditions and operators. Perhaps such a simple, alternative filtering interface could be implemented quickly, as an option? The RStudio example is certainly fancy, but as an interface for the typical non-programmer user it’s probably a little bit over the top.
Just my two cents.
In addition to the NumExpr DSL, I’d like for us to consider how this would scale for additional datatypes beyond
str
and numbers, including:Also, we should consider what the default “operator” is in the UI. Users shouldn’t have to always specify an operator like
contains
oreq
or==
: they should be able to just type some text (e.g.canada
or15
) and a reasonable filtering operation should occur.Here’s a proposal that I worked on previously. Perhaps this can be updated to be more compatible with the
NumExpr
DSLWith the introduction of datatypes, the following changes could be made:
string
andenum
>
,>=
,<
,<=
will filter alphanumericallynumber
=
,contains
is not available>
,>=
,<
,<=
will filter numericallydate
2015
will filter all values with the year2015
, regardless of the month, day, or time2015-10-05
will filter all values on the day2015-10-05
, regardless of the time>
,>=
,<
,<=
will filter by date, starting at the lowest date (e.g.> 2015
is equivalent to> 2015-01-01 00:00:00
)=
won’t be supported. The user can search a specific date with the default and implicit “contains” operator