Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Issue 598 - Permissive value in filter#599

Merged
Marc-Andre-Rivet merged 8 commits into
devfrom
598-quote-free-filter
Sep 24, 2019
Merged

Issue 598 - Permissive value in filter#599
Marc-Andre-Rivet merged 8 commits into
devfrom
598-quote-free-filter

Conversation

@Marc-Andre-Rivet

@Marc-Andre-Rivet Marc-Andre-Rivet commented Sep 20, 2019

Copy link
Copy Markdown
Contributor

#598
Allow more permissive expression value (with whitespaces without escaping or quotes) in column filters.

A limitation is that if it starts with an operator's text, the operator will be picked up instead. e.g le jour is <= jour, not "le jour".

Added a test case for permissive strings.
Added changelog entry.

issue598

#597
New is blank unary operator that returns true for undefined, null and ''.

In both cases, the documentation will need to be updated.

@chriddyp
chriddyp temporarily deployed to dash-table-review-pr-599 September 20, 2019 19:25 Inactive
@chriddyp
chriddyp temporarily deployed to dash-table-review-pr-599 September 20, 2019 19:34 Inactive
@chriddyp
chriddyp temporarily deployed to dash-table-review-pr-599 September 20, 2019 19:36 Inactive
@chriddyp
chriddyp temporarily deployed to dash-table-review-pr-599 September 20, 2019 20:13 Inactive
@chriddyp
chriddyp temporarily deployed to dash-table-review-pr-599 September 20, 2019 21:17 Inactive
@chriddyp
chriddyp temporarily deployed to dash-table-review-pr-599 September 23, 2019 23:04 Inactive
Comment thread src/dash-table/syntax-tree/lexeme/expression.ts Outdated
Comment thread src/dash-table/syntax-tree/lexeme/expression.ts
expect(tree.isValid).to.equal(true);
expect(tree.evaluate({ a: 'Hello world' })).to.equal(true);
expect(tree.evaluate({ a: 'Helloworld' })).to.equal(false);
});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you include a toQueryString test for permissive as well?

@Marc-Andre-Rivet Marc-Andre-Rivet Sep 24, 2019

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done 824e7df

@alexcjohnson alexcjohnson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Very nice - just two minor comments, then 💃

Co-Authored-By: alexcjohnson <johnson.alex.c@gmail.com>
@chriddyp
chriddyp temporarily deployed to dash-table-review-pr-599 September 24, 2019 10:54 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants