Skip to content

Predicate filter proposal#1075

Open
ark-konopacki wants to merge 37 commits intocalabash:developfrom
ark-konopacki:feature/predicate-filter-wip
Open

Predicate filter proposal#1075
ark-konopacki wants to merge 37 commits intocalabash:developfrom
ark-konopacki:feature/predicate-filter-wip

Conversation

@ark-konopacki
Copy link
Copy Markdown
Contributor

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

related to
#935 and #594

end

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 extract this to a method and add some rspec tests.

@ark-konopacki
Copy link
Copy Markdown
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?

end
end

describe ".raw_map.correct_predicate" do
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.

+100 for rspec tests.

@jmoody
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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