-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
add support for geoWithin.centerSphere queries via withJSON #4825
add support for geoWithin.centerSphere queries via withJSON #4825
Conversation
As described in this issue #4824 |
Codecov Report
@@ Coverage Diff @@
## master #4825 +/- ##
==========================================
+ Coverage 92.72% 92.73% +<.01%
==========================================
Files 119 119
Lines 8688 8722 +34
==========================================
+ Hits 8056 8088 +32
- Misses 632 634 +2
Continue to review full report at Codecov.
|
@dplewis Can you please help me out on this one, Travis CI failed for postgres with:
I think the Now I added the logic to parse-server/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js Lines 516 to 523 in e064716
I saw that tests can be DB specific with |
I’ll review tomorrow first thing! |
@flovilmart do you know why the coverage for meetup.js changed? I haven’t changed anything in the file or changed any existing tests. |
@mtrezza this are false positives |
@flovilmart Can you give me a hint on how to make parse-server use my local clone of the JS SDK or vice-versa? Then I'll add the convenience functions like |
You can use |
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.
Looking good!
* add support for geoWithin.centerSphere queries via withJSON * added test for passing array of lat, lng instead of Parse.GeoPoint * added postgres support * added more tests * improved tests and validation * added more tests
* add support for geoWithin.centerSphere queries via withJSON * added test for passing array of lat, lng instead of Parse.GeoPoint * added postgres support * added more tests * improved tests and validation * added more tests
…mmunity#4825) * add support for geoWithin.centerSphere queries via withJSON * added test for passing array of lat, lng instead of Parse.GeoPoint * added postgres support * added more tests * improved tests and validation * added more tests
This allows an unsorted geo query via
withJSON
as a faster performing alternative to the sorted geo queries ofwithinKilometers
,withinMiles
andwithinRadius
if sorting by distance is not needed.