Skip to content

Support expressions in filters (without conversion) - #5434

Merged
jfirebaugh merged 6 commits into
masterfrom
expressions-filter-no-convert
Oct 10, 2017
Merged

jfirebaugh merged 6 commits into
masterfrom
expressions-filter-no-convert

Conversation

@jfirebaugh

Copy link
Copy Markdown
Contributor

Like #5193 but continue to use the old code for non-expression filters.

@jfirebaugh

Copy link
Copy Markdown
Contributor Author

@anandthakker anandthakker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess the slight increase in running time must be due to the extra paramter ({zoom}). Wouldn't have expected it to even show up, but anyway it's miniscule.

t.equal(f({zoom: 0}, {properties: {x: null}}), false);
t.equal(f({zoom: 0}, {properties: {x: undefined}}), false);
t.end();
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's add a test for the case where any and all are used as expressions

@jfirebaugh
jfirebaugh force-pushed the expressions-filter-no-convert branch from 5f5b41b to 452b92f Compare October 10, 2017 20:33
@jfirebaugh
jfirebaugh merged commit 0e6fd1b into master Oct 10, 2017
@jfirebaugh
jfirebaugh deleted the expressions-filter-no-convert branch October 10, 2017 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants