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

Predicate filter proposal #1075

Open
wants to merge 37 commits into
base: develop
Choose a base branch
from

Conversation

ark-konopacki
Copy link
Contributor

@ark-konopacki ark-konopacki commented Apr 19, 2016

related to
#935 and #594

end

end

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's extract this to a method and add some rspec tests.

@ark-konopacki
Copy link
Contributor Author

@jmoody I moved implementation to new method and added two tests for that new method. I'm not super happy with second one since it can be false positive. Can you check?

@@ -40,5 +40,36 @@
/map view marked:'my mark', scrollToViewWithMark failed for:/)
end
end

describe ".raw_map.correct_predicate" do
Copy link
Contributor

Choose a reason for hiding this comment

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

+100 for rspec tests.

@jmoody
Copy link
Contributor

jmoody commented May 11, 2016

There are some more test cases:

# Case insensitive matching.
LIKE[c]

# Diacritic insensitive matching
LIKE[d]

# Case and Diacritic insensitive matching
LIKE[cd]

We should have a test for those examples to ensure our /{.*}/ regex works correctly.

I think there there is also the as case that we need to handle.

There is an example of this floating around somewhere.

@ark-konopacki
Copy link
Contributor Author

@jmoody there is two methods now:
correct_predicate? check selector and if right part have two ' chars
and
correct_format? to check two ' chars in regular queries like "label marked:'label'"
Still more tests needed.

ark-konopacki and others added 2 commits May 12, 2016 22:33
selector renamed to operation
added < and > as a valid operation
@jmoody jmoody added this to the 0.19.2 milestone May 27, 2016
@jmoody jmoody removed this from the 0.19.2 milestone Jun 29, 2016
@jmoody jmoody added this to the 0.19.3 milestone Jun 29, 2016
@jmoody jmoody modified the milestones: 0.19.3, 0.20.0 Jul 25, 2016
@jmoody jmoody modified the milestone: 0.20.0 Sep 14, 2016
@jmoody
Copy link
Contributor

jmoody commented Oct 19, 2017

Can you rebase against the latest develop?

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.

3 participants