Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Issue 598 - Permissive value in filter #599

Merged
merged 8 commits into from
Sep 24, 2019
Merged

Conversation

Marc-Andre-Rivet
Copy link
Contributor

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

#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
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
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?

Copy link
Contributor Author

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

Choose a reason for hiding this comment

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

Done 824e7df

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

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 💃

@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