-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New query condition support to match all strings that starts with some other given strings #3864
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
Merged
dplewis
merged 34 commits into
parse-community:master
from
eduardbosch:feat/contains-all-starting-with
May 16, 2018
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
0379019
feat: Convert $regex value to RegExp object
810b7ec
feat: Add lib folder
77580a0
Revert "feat: Add lib folder"
e209087
feat: Add $regex test in $all array
d7194c7
test: Test regex with $all only in MongoDB
59a57f7
Revert "test: Test regex with $all only in MongoDB"
132b0d6
feat: Add tests for containsAllStartingWith
ee84d53
feat: Add postgres support
52a394e
feat: Check that all values in $all must be regex or none
3432fc8
test: Check that $all vaules must be regex or none
81ecf4d
feat: Update tests to use only REST API
a891a0c
refactor: Move $all regex check to adapter
0dcdf83
feat: Check for valid $all values in progres
d6763d3
refactor: Update function name
556787b
fix: Postgres $all values regex checking
7ca8128
fix: Check starts with as string
b88d2e7
fix: Define contains all regex sql function
bbb7e67
fix: Wrong value check
c0e9a9b
Merge commit '8ec07b83d0b74b00153b7b414aa73d7247c55f85' into feat/con…
4fe6cb8
Merge commit '550b69e271f2d754b7ff774ffa66b2673bdb14a0' into feat/con…
c36854b
fix: Check valid data
1c54ede
fix: Check regex when there is only one value
c8fb446
fix: Constains all starting with string returns empty with bad params
d6b8a74
fix: Pass correct regex value
80772cf
feat: Add missing tests
4a75023
feat: Add missing tests
eduardbosch efc43ed
feat: Add more tests
eduardbosch cc0ed3f
fix: Unify MongoDB and PostgreSQL functionality
eduardbosch 6381fdd
Merge commit '3acb3e7a9b19a7b4e43eae1fd8ad84d0a1b3c53e' into feat/con…
eduardbosch 79f1f32
fix: Lint checks
eduardbosch c14ffd0
Merge commit 'bb1641419fb3708ac975ad7959dacb7318c65717' into feat/con…
eduardbosch da76c18
fix: Test broken
eduardbosch 07a4d69
test for empty $all
dplewis 917ec15
Merge branch 'master' into feat/contains-all-starting-with
dplewis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eduardbosch I figured they would return different values for both databases. Some of your tests are missing
.then()
return values. If you add the return values for PG I can look at the script I wrote to see if I can get similar functionality to mongoThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dplewis I don't understand. Some miss
.then()
return values because they throw an error, so that function is never called.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry missed that. Looking at your test, it should be easy to make PG throw an error instead of returning zero results for invalid $all.