Commit Graph

2205 Commits

Author SHA1 Message Date
Florent Vilmart
ff25ae254d Update parse SDK to 2.0.0 (#4925)
* WIP: Integrate JS SDK v2

- Removes backbone style callbacks
- Use Promise instead of Parse.Promise

* Fixes ParseObject and ParseRelation

* Updates Parse.Query with promises

* Alls tests should pass

* Ensure a fresh user is used for each test

* Use REST implementation to avoid side effects for username/email duplicates

* Uses js sdk v2
2018-08-05 13:58:07 -04:00
GabrielLomba
a61ef7ee2f Fix typo in FilesController.spec (#4917)
* Add the addFileNameHash option that allows users to remove the hash from file names

* Change option name to preserveFileName

* Revert changes to package-lock.json

* Fix typo in FileController.spec
2018-07-27 17:41:04 -04:00
Florent Vilmart
dd84c64d16 Pins uws due to drame (#4916) 2018-07-27 09:04:28 -04:00
GabrielLomba
6a151ee135 Add the addFileNameHash option that allows users to remove the hash f… (#4915)
* Add the addFileNameHash option that allows users to remove the hash from file names

* Change option name to preserveFileName

* Revert changes to package-lock.json
2018-07-27 09:04:06 -04:00
greenkeeper[bot]
0363728b83 Update ws to the latest version 🚀 (#4909)
* fix(package): update ws to version 6.0.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-07-27 08:19:02 -04:00
Florent Vilmart
a2c40367fa Ensures the test suites are properly formed for vscode jasmine plugin (#4901)
* Ensures the test suites are properly formed for vscode jasmine plugin

* nit
2018-07-19 07:05:27 +00:00
Florent Vilmart
efb6c63a95 Ensure legacy users with authData are not locked out (#4898)
* Adds fix for issue, ensuring legacy users with no ACL are properly handled

* Runs tests only on mongo
2018-07-18 14:42:50 +00:00
Saulo Tauil
b22947d4ec Enable express error handler (#4697)
* Propagate error to express handler in all situations

* Call the default error handler if `enableExpressErrorHandler` is truthy

* Updating options interface and definitions

* Testing express error handler

* Test spec fixes

* Fix test
2018-07-17 19:47:00 +00:00
Ross Bayer
ced6b76ef5 Support incrementing push badge value by more than 1 (#4889)
* Support 'IncrementByN' badge value for higher push badge increments

* Fix test

* Rely on object for badge incrementation (i.e. {increment: 3}) rather than string (IncrementBy3)

* For badge incrementation, utilize format similar to other operation notation
2018-07-12 20:34:08 +02:00
greenkeeper[bot]
800959f458 Update flow-bin to the latest version 🚀 (#4877)
* chore(package): update flow-bin to version 0.76.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-07-12 14:23:05 +00:00
greenkeeper[bot]
8b571a3b54 Update bcrypt to the latest version 🚀 (#4875)
* chore(package): update bcrypt to version 3.0.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-07-12 13:59:52 +00:00
Florent Vilmart
c1e32d853f Greenkeeper/nodemon 1.18.1 (#4891)
* chore(package): update nodemon to version 1.18.1

Closes #4885

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-07-12 13:59:06 +00:00
greenkeeper[bot]
cad81f83e3 Update ws to the latest version 🚀 (#4888)
* fix(package): update ws to version 5.2.2

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-07-12 13:57:52 +00:00
greenkeeper[bot]
e07a442362 Update mongodb to the latest version 🚀 (#4874)
* fix(package): update mongodb to version 3.1.1

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-07-06 06:18:43 -04:00
Florent Vilmart
01323abbc8 Greenkeeper/flow bin 0.75.0 (#4872)
* chore(package): update flow-bin to version 0.75.0

Closes #4816

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-07-04 11:52:31 -04:00
greenkeeper[bot]
3819fe8367 Update mongodb-runner to the latest version 🚀 (#4869)
* chore(package): update mongodb-runner to version 4.0.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-07-03 11:14:26 -04:00
Florent Vilmart
960431b92d Even faster tests (#4868)
* Various improvements in test name / de-duplications

* Reverts to class by class deletion, introduced fast mode that just delete data for mongo

- Speeds up are incredible Executed 1695 of 1713 specs INCOMPLETE (18 PENDING) in 4 mins 19 secs.

* Adds documentation about the deleteEverything
2018-07-03 11:13:08 -04:00
Florent Vilmart
ae1a8226d5 Removes need to use babel-register (#4865)
* Removes need to use babel-register

- Adds watch to watch changes when running the test to regenerate
- Tests are now pure node 8

* Adds timing to helper.js

* Update contribution guide

* Adds inline sourcemaps generation to restore coverage

* nits
2018-07-02 23:30:14 -04:00
Florent Vilmart
74740abead Update issue templates (#4867) 2018-07-02 22:15:55 -04:00
greenkeeper[bot]
ed4a436860 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-07-02 20:47:17 -04:00
Florent Vilmart
e97df073df 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-07-01 00:00:37 -04:00
Florent Vilmart
585938ca2c improves test performance on mongodb (#4862)
* improves test performance on mongodb

* Removes unused methdos
2018-06-29 17:09:51 -04:00
greenkeeper[bot]
1e8ba742a8 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-06-29 08:12:11 -04:00
Florent Vilmart
3bcb5a0997 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-06-28 16:31:22 -04:00
Florent Vilmart
9e5d26ebd2 Removes unused package multer, fixes audit (#4859) 2018-06-28 09:22:48 -04:00
greenkeeper[bot]
d2e3459206 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-06-28 08:07:35 -04:00
greenkeeper[bot]
5add9584a3 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-06-28 08:06:14 -04:00
greenkeeper[bot]
b332f4d4ae 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-06-27 14:12:51 -04:00
Chris
5cdbde244a #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-06-26 17:18:04 -05:00
greenkeeper[bot]
3ace26da6f 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-06-25 21:13:10 -04:00
Florent Vilmart
e15244c7b2 Removes npm-git.sh scripts (#4853) 2018-06-25 20:59:54 -04:00
greenkeeper[bot]
ade5a33c27 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-06-25 15:04:11 -04:00
Diamond Lewis
64388a31ad Aggregate allow multiple of same stage (#4835)
* Aggregate Allow Multiple Stages

* remove testing files

* nit

* spread them
2018-06-23 11:28:17 -05:00
Diamond Lewis
0e93306867 nit 2018-06-16 10:16:54 -07:00
Diamond Lewis
00252cbeff add includeAll option 2018-06-16 10:16:54 -07:00
Johnny
2ef437a2bc 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-06-13 14:19:53 -04:00
Florent Vilmart
9c9c07fb26 Ensure read preference is never overriden, so DB config prevails (#4833) 2018-06-13 13:51:29 -04:00
Manuel
1e29d0299b 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-06-12 12:41:02 -04:00
Arthur Cinader
260c466dcb Change name of function and variable from baseFieldName to rootFieldName (#4817) 2018-06-07 19:27:11 -04:00
Arthur Cinader
e06471603f 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-06-07 18:47:18 -04:00
Jaeger
cf3a872e67 Don't merge JSON fields after save() when using Postgres to keep same behaviour as MongoDB (#4808) (#4815) 2018-06-07 12:43:54 -04:00
Florent Vilmart
1afc34eea3 chore(package): update nyc to version 12.0.2 (#4807)
* chore(package): update nyc to version 12.0.2

Closes #4804

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-06-04 15:22:29 -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