add support for geoWithin.centerSphere queries via withJSON#4825
add support for geoWithin.centerSphere queries via withJSON#4825flovilmart merged 6 commits intoparse-community:masterfrom mtrezza:add_support_geoWithin_centerSphere
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 |
* 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
withJSONas a faster performing alternative to the sorted geo queries ofwithinKilometers,withinMilesandwithinRadiusif sorting by distance is not needed.