Commit Graph

1525 Commits

Author SHA1 Message Date
Greenkeeper
1ae3613608 chore(package): update request to version 2.78.0 (#3002)
https://greenkeeper.io/
2016-11-03 10:01:51 -04:00
Steven Shipton
5f335a9d30 Fix parameter name (#3001) 2016-11-03 10:01:31 -04:00
Florent Vilmart
fb6150feb1 2.2.25-beta.1 (#2995) 2016-11-02 20:43:45 -04:00
Kirill Kravinsky
908c48098a Add health-checking endpoint on '/health' that always returns 200 (#2992)
* Add health-checker endpoint on '/health' that always returns 200OK

* Refactor health handler, add tests

* Refactor health test
2016-11-02 20:33:59 -04:00
Steven Shipton
b347bff641 Add option to re-use schema cache between requests (#2979)
* Add option to reuse database controller between requests. Clear schema cache when deleting everything

* Add test

* Rename setting to persistSchemaCache to more accurately reflect effect

* Repurpose option to determine whether to randomize cache prefix. Restore Config.js controller creation. Add tests

* Fix bug with missing parameter passed to to SchemaCache

* Renaming and formatting

* Fix property name typo

* Rename option to avoid double negative and still be falsey by default. Style fix
2016-11-02 19:05:23 -04:00
Tyler Brock
801308d9b7 RedisCacheAdapter: add some additional checks and defaults (#2991) 2016-11-02 15:13:55 -07:00
Greenkeeper
af700d7a4a chore(package): update redis to version 2.6.3 (#2975)
https://greenkeeper.io/
2016-11-02 11:41:02 -07:00
Greenkeeper
9c2cbd254e chore(package): update winston to version 2.3.0 (#2986)
https://greenkeeper.io/
2016-11-02 10:56:46 -07:00
Tyler Brock
33ebedfd6a Expire values in RedisCacheAdapter (#2988) 2016-11-02 08:39:49 -04:00
Tyler Brock
f3c656829a Use spec reporter instead of dots (#2989) 2016-11-02 08:39:09 -04:00
Greenkeeper
86fdd173a5 chore(package): update babel-core to version 6.18.2 (#2983)
https://greenkeeper.io/
2016-11-01 22:39:52 -07:00
Kulshekhar Kabra
583887c43c Improve update of jsonb fields. Add PG 9.5 to travis. (#2984)
* Improve update of jsonb fields. Add PG 9.5 to travis.

* Replace manual escaping with pg-promise's built in
2016-11-01 20:55:53 -04:00
Kulshekhar Kabra
8f0ae7081d Enable a few tests to test against Postgres (#2971)
* Enable RestCreate related tests for Postgres

* Enable tests in ParseRole for postgres

* Enable one ParseObject test for postgres

* Improve the way a jsonb field is updated.

* Use Postgres 9.5 in Travis

* Install Postgres 9.5 in Travis

* Use sudo to install and setup Postgres 9.5 in Travis

* Test if Postgres 9.5 can be used with trusty

* Re-exclude a test for postgres

* Revert travis to its original form
2016-11-01 07:30:22 -04:00
Florent Vilmart
5c4806ba6d Changelog 2.2.24 (#2976) 2016-10-31 19:30:20 -04:00
Kulshekhar Kabra
78646a3e91 Enable API related tests for Postgres (#2970) 2016-10-31 12:11:21 -04:00
Kulshekhar Kabra
edf6ab6875 Enable query related tests for Postgres (#2969) 2016-10-31 12:10:53 -04:00
Greenkeeper
142b3beab6 chore(package): update lodash to version 4.16.5 (#2972)
https://greenkeeper.io/
2016-10-31 08:19:04 -04:00
Kulshekhar Kabra
b6c19a53ee Fix endsWith query test to use the correct query (#2965) 2016-10-31 08:12:58 -04:00
Florent Vilmart
48865c765f Adds ability to update a subscription (#2935)
* Adds ability to update a subscription

* Adds unsubscribe to the RequestSchema, makes sure to not fire unsubscribe to the client when updating

* Fix failing tests

* More extensive tests

* fix annotation
2016-10-31 08:12:11 -04:00
Michael Helvey
94178df4d2 Add functionName to invalid function error (#2963)
Currently in the logs if an invalid function is called the error
message just says "invalid function" which is decidedly unhelpful
when looking through server logs.  Now it will say
"Invalid function: "functionName""
2016-10-30 11:58:34 -04:00
Kulshekhar Kabra
4a2f7ff2db Close client connections on SIGINT/SIGTERM (#2964)
* Close all alive connections on SIGINT/SIGTERM

* Add a comment referencing the node issue.
2016-10-30 11:58:07 -04:00
Kulshekhar Kabra
22c790f23c Wrap postgres class creation in a transaction (#2958) 2016-10-28 20:23:37 -04:00
Florent Vilmart
0e78c28146 Fix PG fails (#2957)
* Better support for arrays of objects

* No transaction in class creation
2016-10-28 16:43:52 -04:00
Florent Vilmart
23b77f7261 Live query pubsub adapter (#2902)
* Moves LiveQuery pub/sub to adapter folder

* Adds ability to provide custom adapter for LiveQuery pubsub

* Adds test for function based adapter

* Pass all options to createSubscriber

* nits
2016-10-28 12:06:35 -04:00
Kulshekhar Kabra
f23c0a57ee Fix the error returned when class already exists (#2955)
* Fix the error returned when class already exists

* Wrap the class creation in a transaction
2016-10-28 11:46:19 -04:00
Kulshekhar Kabra
4a5ed1095c Allow the URI for the test DB to be set via env (#2954) 2016-10-28 09:11:07 -04:00
Steven Shipton
e788d49af0 Don't require all keys to be configured to enable key checks (#2816) (#2941)
* Add tests. Fail request if any of the 4 optional keys does not match

* Only require one key to be supplied in the request, except when no keys are configured

* Use const over let, var
2016-10-26 16:44:39 -04:00
Florent Vilmart
278027a955 Google auth: try to validate on both sub or user_id (#2922) 2016-10-26 11:44:56 -04:00
Greenkeeper
f4fe19a55e chore(package): update request to version 2.76.0 (#2932)
https://greenkeeper.io/
2016-10-25 08:56:27 -04:00
Greenkeeper
403fb3e062 chore(package): update babel-register to version 6.18.0 (#2928)
https://greenkeeper.io/
2016-10-24 22:51:28 -04:00
Greenkeeper
3df10dca88 chore(package): update babel-core to version 6.18.0 (#2925)
https://greenkeeper.io/
2016-10-24 21:35:21 -04:00
Greenkeeper
68dbe005b5 chore(package): update babel-plugin-transform-flow-strip-types to version 6.18.0 (#2926)
https://greenkeeper.io/
2016-10-24 21:35:12 -04:00
Greenkeeper
8c4be63a4c chore(package): update babel-cli to version 6.18.0 (#2924)
https://greenkeeper.io/
2016-10-24 19:26:23 -04:00
Greenkeeper
e2a5228127 chore(package): update pg-promise to version 5.3.5 (#2915)
https://greenkeeper.io/
2016-10-24 17:24:46 -04:00
Steven Shipton
151bea25ee Try to retrieve schema from all schemas cache if not found in individual cache (#2912)
* Try to get schema from main schema if not found in single schema

* Add newline

* Add missing return

* Add missing done to tests
2016-10-23 11:59:39 -04:00
Aaron Blondeau
af55cd1efb Add role based ACL checks to LiveQuery (#2893)
* Add acl role check to _matchesACL, start adding tests.

* Add tests for ACL role checks in LiveQueryServer.

* Switch to arrow functions, add immutabalized code from @acinader, swap for loop style.
2016-10-21 23:53:31 -04:00
Florent Vilmart
0faaec3224 Release notes for 2.2.23 (#2895) 2016-10-19 18:01:12 -07:00
Marian Ignev
021fe4d336 Add SashiDo Migration guides to README (#2896) 2016-10-19 20:56:43 -04:00
Florent Vilmart
5dc24334a5 Adds ability to run livequery server on different port (appengine) (#2892)
* Adds ability to run livequery server on different port (appengine)
2016-10-19 17:11:25 -07:00
Florent Vilmart
86f35014f4 Fixes #2780 (#2810)
* Adds regression test for #2780

* Fixes #2780

- Make sure we compare installationId from the data and not the auth when rejecting update
2016-10-19 19:54:19 -04:00
Yuki Takeichi
758975cf03 Revert " Saved filename fixed so that clients display it correctly #2415 (#2705)" (#2833)
This reverts commit 22c1a87d80.
2016-10-19 16:55:20 -04:00
Jeremy Louie
a6a6f7ff60 Fix error when updating installation with useMasterKey (#2888)
* Add failing test for updating installations with masterKey

* Prevent auth.installationId from being used when using masterKey

This allows masterKey to update any installation object
Fixes ParsePlatform/parse-server##2887
2016-10-19 15:06:19 -04:00
Eugene Antropov
305b037176 Vkontakte Auth: Change users.get to secure.checkToken (#2880)
* Change users.get to secure.checkToken

You can't get user info by client token due vk restrictions. You must check token via secure.checkToken.

* Configuration checks for vk auth.

* Move config check to promise, remove debug log, add message to logger on error.
2016-10-19 10:38:01 -04:00
Jeremy Louie
b88b0c578f Fix multiple use of notEqualTo (#2882)
* Add failing test for multiple .notEqualTo on relation with same class

* Fix multiple .notEqualTo on relations with the same class

Multiple  should use the union of all objectIds not the intersect
Fixes ParsePlatform/parse-server#1596
2016-10-18 16:44:47 -04:00
Florent Vilmart
d8ba9e8b7d Adds validation for id_token and access_token (#2878)
* ADds validation for id_token and access_token

* nit
2016-10-17 12:44:24 -04:00
Greenkeeper
60d506615d chore(package): update cross-env to version 3.1.3 (#2870)
https://greenkeeper.io/
2016-10-17 10:28:35 -04:00
Kulshekhar Kabra
de36d9640b Allow configuration options for Postgres (#2873)
* Allow configuration options for Postgres

* Fix the use of incorrect options object.

* Refactor and test the postgres config parser.

* Remove unnecessary try/catch

* Remove unnecessary try/catch

* Add blank line at the end of the test file

* Rename file for consistency purposes
2016-10-15 17:29:54 -04:00
Kulshekhar Kabra
7af320932a Use the Postgres Adapter with a Postgres URI (#2871)
* Use the Postgres Adapter with a Postgres URI

* Handle malformed databaseURI
2016-10-15 10:22:49 -04:00
Florent Vilmart
c253daa9c9 Update bootstrap.sh (#2862)
* Update bootstrap.sh

Fix issue when generating config.json

* Update bootstrap.sh

Fix mongodb URI
2016-10-13 13:05:36 -04:00
Greenkeeper
09f871b786 chore(package): update cross-env to version 3.1.1 (#2824)
https://greenkeeper.io/
2016-10-07 09:36:48 -04:00