Commit Graph

2188 Commits

Author SHA1 Message Date
Florent Vilmart
f23eb4c419 Update issue templates (#4867) 2018-08-12 17:49:09 -04:00
greenkeeper[bot]
566ac26789 Update pg-promise to the latest version 🚀 (#4866)
* fix(package): update pg-promise to version 8.4.5

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-12 17:49:09 -04:00
Florent Vilmart
96bc74433b Testing improvements (#4863)
* Adds supports-color so spec reporter dont output colors when not supported

* Adds babelrc so breakpoints dont jump around in specs

* Rename test to avoid duplicated name

* Removes unused methods

* Better naming for it_exclude
2018-08-12 17:49:09 -04:00
Florent Vilmart
7319aabf7a improves test performance on mongodb (#4862)
* improves test performance on mongodb

* Removes unused methdos
2018-08-12 17:49:09 -04:00
greenkeeper[bot]
ec27bc7e8e Update commander to the latest version 🚀 (#4861)
* fix(package): update commander to version 2.16.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-12 17:49:09 -04:00
Florent Vilmart
6b36ce1bb5 Ensure User ACL's are more flexible and secure #3588 (#4860)
* Fixes an issue that would let the beforeDelete be called when user has no access to the object

* Ensure we properly lock user

- Improves find method so we can attempt to read for a write poking the right ACL instead of using masterKey
- This ensure we do not run beforeDelete/beforeFind/beforeSave in the wrong scenarios

* nits

* Caps insufficient
2018-08-12 17:49:09 -04:00
Florent Vilmart
82fec72ec4 Removes unused package multer, fixes audit (#4859) 2018-08-12 17:49:09 -04:00
greenkeeper[bot]
938564acbb Update cross-env to the latest version 🚀 (#4830)
* chore(package): update cross-env to version 5.2.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-12 17:49:09 -04:00
greenkeeper[bot]
f969c7bb2a Update multer to the latest version 🚀 (#4858)
* fix(package): update multer to version 1.3.1

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-12 17:49:09 -04:00
greenkeeper[bot]
320eba1081 Update mongodb to the latest version 🚀 (#4855)
* fix(package): update mongodb to version 3.1.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile

* starting mongo 3.1.0, read preferences are passed again

* Adds test confirming #4831 is properly functional now
2018-08-12 17:49:09 -04:00
Chris
43be9fed9d #4678: Converting strings to Date when schema.type is Date within agg… (#4743)
* #4678: Converting strings to Date when schema.type is Date within aggregate function

* Added test cases to test new date match aggregate query

* Added function to parse match aggregate arguments and convert necessary values to Date objects

* Added missing return value

* Improved code quality based on suggestions and figured out why tests were failing

* Added tests from @dplewis

* Supporting project aggregation as well as exists operator

* Excluding exists match for postgres

* Handling the $group operator similar to $match and $project

* Added more tests for better code coverage

* Excluding certain tests from being run on postgres

* Excluding one more test  from postgres

* clean up
2018-08-12 17:49:09 -04:00
greenkeeper[bot]
f1ebdef28b Update eslint to the latest version 🚀 (#4848)
* chore(package): update eslint to version 5.0.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-12 17:49:09 -04:00
Florent Vilmart
b660ca5ed8 Removes npm-git.sh scripts (#4853) 2018-08-12 17:49:09 -04:00
greenkeeper[bot]
dccd7d7a1d Update ws to the latest version 🚀 (#4849)
* fix(package): update ws to version 5.2.1

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-12 17:49:09 -04:00
Diamond Lewis
df01846361 Aggregate allow multiple of same stage (#4835)
* Aggregate Allow Multiple Stages

* remove testing files

* nit

* spread them
2018-08-12 17:49:09 -04:00
Diamond Lewis
197190fc29 nit 2018-08-12 17:49:09 -04:00
Diamond Lewis
48ddcdb303 add includeAll option 2018-08-12 17:49:09 -04:00
Johnny
c8b303a9d2 Added verify password to users router and tests. (#4747)
* Added verify password to users router and tests.

* Added more tests to support more coverage.

* Added additional tests to spec. Removed condition from verifyPassword function where authData null keys condition wasn't necessary.

* Removed POST handling from verifyPassword.

* Refactored handleLogin and handleVerifyPassword to use shared helper function to validate the password provided in the request.

* Refactored verifyPassword and login to not use try/catch. Parent promise returns the error. Moved login specific functions to login handler.

* Added account lockout policy to verify password function. Added test spec for account lockout in verify password.

* no message

* Merged new changes from master. Made changes as requested from comments.

* We cannot remove hidden properties from the helper before returning to the login function. The password expiration check in the login function is dependent on some hidden properties, otherwise three password policy tests fail.
2018-08-12 17:49:09 -04:00
Florent Vilmart
4d81f8fc30 Ensure read preference is never overriden, so DB config prevails (#4833) 2018-08-12 17:49:09 -04:00
Manuel
cddb924703 add support for geoWithin.centerSphere queries via withJSON (#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
2018-08-12 17:49:09 -04:00
Arthur Cinader
f2f92858f1 Change name of function and variable from baseFieldName to rootFieldName (#4817) 2018-08-12 17:49:09 -04:00
Arthur Cinader
1427eeac5a Don't error when attempting to sort on an object field (#4806)
* add failing test to demonstrate that you can't sort on a
field in an object.

* Only validate the base of the field name.

* fix test name

* Only test sort for mongo.

* pg order by nested object

* level 2 test

* Factor out operation to get a field's base name.  Add comment.

* tweak comment wording so it wont make my grammar teacher angry.
2018-08-12 17:49:09 -04:00
Jaeger
348489784a Don't merge JSON fields after save() when using Postgres to keep same behaviour as MongoDB (#4808) (#4815) 2018-08-12 17:49:09 -04:00
Florent Vilmart
108c7e95e2 Release 2.8.3 2018-08-07 11:21:17 -04:00
Florent Vilmart
d15a3ce8f5 Adds exposed headers to avoid issue in JS SDK (#4934)
* Adds exposed headers to avoid issue in JS SDK

* Adds test for headers
2018-08-07 11:19:49 -04:00
Florent Vilmart
0c2f1d583b Release 2.8.2 (#4802) 2018-06-04 13:07:52 -04:00
greenkeeper[bot]
3b40d2227d Update flow-bin to the latest version 🚀 (#4786)
* chore(package): update flow-bin to version 0.73.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-06-01 09:32:33 -04:00
Tyler Brock
c5e8470e36 Always use http-agent for hooks and triggers (#4800) 2018-06-01 09:31:10 -04:00
Florent Vilmart
9bff44b446 Ensure users with undefined ACL are treated as readable (#4795)
* Adds test to reproduce issue #4790

* Attempt to allow failure on node STABLE

* Use new format for apt packages
2018-05-30 12:55:15 -04:00
Tyler Brock
f4422c491e Update defs for new hookKeepAlive config option (#4794)
All tests pass on re-run. :-)
2018-05-29 17:30:26 -07:00
Tyler Brock
82fb06f9c9 Use http agents for hook requests (#4791) 2018-05-29 17:48:06 -04:00
greenkeeper[bot]
32d8c36ff5 Update cross-env to the latest version 🚀 (#4780)
* chore(package): update cross-env to version 5.1.6

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-05-24 16:28:37 -04:00
greenkeeper[bot]
fd862950e2 Update nodemon to the latest version 🚀 (#4781)
* chore(package): update nodemon to version 1.17.5

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-05-24 16:28:17 -04:00
Mads Bjerre
57da2def1d Adds withinPolygon support for Polygon object (#4067)
* Whitespace

* Add Polygon type to $polygon query

* Add tests

Polygon object in $polygon query
$geoIntersects queries

* Refactor

* Postgres support

* More tests

* Remove duplicate test

* Missing semicolon

* fix tests
2018-05-22 12:06:43 -04:00
Florent Vilmart
4dcbc4245b fix(package): update ws to version 5.2.0 (#4779)
* fix(package): update ws to version 5.2.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-05-21 21:43:50 -04:00
Florent Vilmart
642e2ffe12 Adds greenkeeper package-lock management (#4778) 2018-05-21 17:38:54 -04:00
greenkeeper[bot]
d2b04ddd92 chore(package): update gaze to version 1.1.3 (#4776) 2018-05-21 15:45:10 -04:00
greenkeeper[bot]
33173c4d9b fix(package): update deepcopy to version 1.0.0 (#4775) 2018-05-20 15:13:17 -04:00
Florent Vilmart
ff0c04ffa3 chore(package): update deep-diff to version 1.0.1 (#4774)
Closes #4733
2018-05-19 11:24:58 -04:00
greenkeeper[bot]
df274dcca9 fix(package): update commander to version 2.15.1 (#4663) 2018-05-18 15:49:40 -04:00
Florent Vilmart
a619119684 Bumps minimum node engine to 8+ (#4474)
* Use node 8 as development environment

* fixup! Use node 8 as development environment

* bump node to 8.10

* Targets node 8 for everything

* Run npm install so lock file is up to date

* Use push adapter v3

* Deflake a test on ParseUser

* Adds slight delay after logout

* Ensure we wait even if call fails

* Use node carbon
2018-05-18 15:49:00 -04:00
Jérémy Piednoel
77ed10f57b Adding $nor operator support (#4768)
* adding nor to specialQuerykeys

* adding nor suport

* adding test

* CRLF

* adding postgres NOR

* adding nor validation

* adding NOR test

* adding test amd fixing NOR cases

* revert the nor logic
2018-05-18 14:26:33 -05:00
Florent Vilmart
a9ebc2b9af Release 2.8.1 (#4771)
* unfuck release 2.8.0

*  Release 2.8.1

* Ensure we can install also on latest
2018-05-18 13:06:12 -04:00
Florent Vilmart
8fe3265c74 Release 2.8.0 (#4767)
* Ensure issue template has proper line endings

* Bumps to 2.8.0

* Adds Changelog
2018-05-18 10:55:20 -04:00
Saulo Tauil
95550f4c77 Making response.error accept a Parse.Error object as parameter (#4695) 2018-05-18 10:15:25 -04:00
Florent Vilmart
fc47f9b84f issue(afterFind): Fixes issue when using afterFind with relations (#4752)
* Adds failing test for the issue

* Adds fix for the issue
2018-05-18 09:36:56 -04:00
Jérémy Piednoel
c0f86ae1d1 Adding Mongodb element to add arrayMatches the #4762 (#4766)
* Adding elemMatch and nor

* lint

* adding test

* adding edge test

* postgres support

* clean up

* empty test
2018-05-18 08:35:50 -05:00
Florent Vilmart
ad244d6654 feature: User Lockout (#4749)
* Allows masterKey to lock _User object and prevent login with email / password

* Ensure the authData based auth can be locked out as well when accounts is masterKey only
2018-05-16 15:40:02 -04:00
greenkeeper[bot]
bfd0c4bf2f chore(package): update cross-env to version 5.1.5 (#4757) 2018-05-16 15:39:40 -04:00
greenkeeper[bot]
d36c7c7f90 chore(package): update uws to version 10.148.0 (#4758) 2018-05-16 15:39:29 -04:00