Commit Graph

1527 Commits

Author SHA1 Message Date
Florent Vilmart
09bd9e3b2c Adds schema caching capabilities (5s by default) (#2286)
* Adds schema caching capabilities (off by default)

* Use InMemoryCacheAdapter

* Uses proper adapter to generate a cache

* Fix bugs when running disabled cache

* nits

* nits

* Use options object instead of boolean

* Imrpove concurrency of loadSchema

* Adds testing with SCHEMA_CACHE_ON

* Use CacheController instead of generator

- Makes caching SchemaCache use a generated prefix
- Makes clearing the SchemaCache clear only the cached schema keys
- Enable cache by default (ttl 5s)
2016-07-22 21:23:59 -07:00
Greenkeeper
66c4b98b55 chore(package): update babel-cli to version 6.11.4 (#2339)
https://greenkeeper.io/
2016-07-21 22:32:22 -07:00
Greenkeeper
921617ad40 chore(package): update pg-promise to version 5.2.3 (#2334)
https://greenkeeper.io/
2016-07-21 22:32:09 -07:00
Andrew Lane
397e6bc976 Fix typo in logging for commander parseConfigFile (#2352) 2016-07-20 16:08:22 -04:00
Arthur Cinader
ac1f762f07 Fix minor typos in test names (#2351) 2016-07-20 12:32:18 -04:00
Diwakar Cherukumilli
ab3b4addbf updates usage of setting: emailVerifyTokenValidityDuration (#2331) 2016-07-20 09:29:32 -04:00
Blayne Chard
c8e1ab851f Run next() after successfully sending data to the client (#2338)
This allows developers to add express handlers for successful completion of parse-server requests.
ie Analytics or Logging.
2016-07-20 09:28:20 -04:00
Marek Mikołajczyk
d1a6caeee3 Allow usage of analytics adapter (#2327)
* Allow usage of analytics adapter

* Use promises in controller
2016-07-20 09:27:15 -04:00
Florent Vilmart
02edf27f05 Restores code coverage (#2340) 2016-07-19 23:33:01 -04:00
Florent Vilmart
dfac9725dd Update Mongodb client to 2.2.4 (#2329)
* chore(package): update mongodb to version 2.2.4

https://greenkeeper.io/

* fix for mongo 2.2.4

* Delete schema promise on error...

- Just because this way we can let the adapter an opportunity to yield a new error....
OR A SUCCESS

* Fixes test

* Restore fix
2016-07-19 21:40:01 -04:00
Florent Vilmart
78ea02968a Cache all the mongodb/version folder (#2336)
* Cache all the version folder

* list cache
2016-07-19 21:27:04 -04:00
Florent Vilmart
8719afdc1b Parses correctly Parse.Files and Dates when sent to Cloud Code Functions (#2297)
* fix for #2294

* fail tests

* Makes sure dates are compatible with Parse.com CloudCode #2214

* Adds regression tests for #2204
2016-07-18 23:14:32 -07:00
Florent Vilmart
4f89ec39cd Uses one query for installation dedup (#2281) 2016-07-18 23:12:29 -07:00
Diwakar Cherukumilli
6f292059ba Adds ability to expire email verify token (#2216) 2016-07-18 23:10:36 -07:00
Florent Vilmart
033bc317e6 Report validation errors with correct error code (#2299) 2016-07-18 23:03:43 -07:00
Greenkeeper
40c4fcdebf chore(package): update parse-server-s3-adapter to version 1.0.4 (#2318)
https://greenkeeper.io/
2016-07-18 23:02:01 -07:00
Dan Huang
c81f48aae6 don't serve null authData values (#2320) 2016-07-18 23:00:16 -07:00
Florent Vilmart
025482ea1a Fix null relation problem (#2319)
* Add null check for relation type map.

For relations that are not explicitly defined in the schema, we need a null check here.

* Making change to force rebuild.

* Reverting change.

* Adds test
2016-07-18 22:58:37 -07:00
Florent Vilmart
f310e6678e Fix flaky tests (#2324)
* Fix flaky test (There were open connections to the server left after the test finished)

* fix test that's happening on the end of the minute

* remove focus testing
2016-07-18 21:43:34 -07:00
Greenkeeper
2ba724938f chore(package): update request-promise to version 4.0.1 (#2311)
https://greenkeeper.io/
2016-07-18 22:36:46 -04:00
Mihai Iorga
676d2e28de pushStatusHandler wrong payload md5, PushController send pushId to adapter also (#2067) 2016-07-18 19:39:28 -04:00
Florent Vilmart
bae19f2c76 Clear the connectionPromise upon close or error (#2314) 2016-07-18 11:51:50 -04:00
Greenkeeper
0f49f314b2 chore(package): update request-promise to version 4.0.0 (#2298)
https://greenkeeper.io/
2016-07-15 18:53:01 -07:00
Vitaly Tomilov
fa96f0c389 Adding proper generic Not Implemented. (#2292)
Proper way to generate common Promise rejects.
2016-07-15 20:32:06 -04:00
Greenkeeper
d07dd4c49f chore(package): update pg-promise to version 5.2.0 (#2296)
https://greenkeeper.io/
2016-07-15 16:01:23 -07:00
Sen Palanisami
7d234e054b Log objects rather than JSON strings and option for single line logs (#2028)
* Log objects rather than JSON strings and option for single line logs

This reverts commit fcd914bdfd.

* Better password stripping tests
2016-07-15 16:18:50 -04:00
Greenkeeper
514095dc35 chore(package): update pg-promise to version 5.1.4 (#2291)
https://greenkeeper.io/
2016-07-15 09:49:06 -07:00
Florent Vilmart
069275d3df Fix for #1840, Strip operations from results, forwards delete operations to SDKs (#1946)
* Adding a test demonstrating issue #1840.

* Fixes #1840

* Adds failing test with other use case

- That test fails on parse.com as well

* Bumps parse to 1.9.0

* exclude pg db

* Exclude pg on other test

* Adds clientSDK compatibility check for forward deletion

- Mark js1.9.0 as compatible

* Strips all operations from result

- fix for #1606
2016-07-15 09:24:53 -04:00
Ran Hassid
fcfe2a0376 add digits oauth provider (#2284) 2016-07-15 09:23:42 -04:00
Blayne Chard
1125c88f56 Adding request headers to cloud functions fixes #1461 (#2274) 2016-07-13 19:41:05 -04:00
Greenkeeper
bf645233b0 chore(package): update cross-env to version 2.0.0 (#2271)
https://greenkeeper.io/
2016-07-13 12:10:53 -04:00
Florent Vilmart
9bf21ef093 Restores ability to include non pointer keys (#2263)
- Matches the behaviour on parse.com
- fixes #2262
2016-07-13 09:14:54 -04:00
Florent Vilmart
32f7230aca Creates a new sessionToken when updating password (#2266)
* Creates a new sessionToken when updating password

* Adds test ensuring email is properly sent when upgrading from anon
2016-07-13 07:18:24 -04:00
Greenkeeper
f1ff9fecce chore(package): update pg-promise to version 5.1.3 (#2257)
https://greenkeeper.io/
2016-07-12 19:41:09 -07:00
Nikita Lutsenko
d1426c19dd Add Gitter chat link to the README. (#2264)
* Add Gitter chat link to the README.

Closes #1700

* Update README.md
2016-07-12 21:18:28 -04:00
Greenkeeper
a2f8a1d2b3 chore(package): update winston-daily-rotate-file to version 1.1.5 (#2248)
https://greenkeeper.io/
2016-07-12 12:31:06 -07:00
Nikita Lutsenko
18235352c4 Merge pull request #2259 from ParsePlatform/client-sdk-info
Exposes the ClientSDK infos if available
2016-07-12 11:17:52 -07:00
Magda Wiśniewska
3c1da3cc2a Allow next middleware handle error in handleParseErrors (#2260) 2016-07-12 12:32:10 -04:00
Greenkeeper
868ad5bdfd Update parse to version 1.9.0 🚀 (#2233)
* chore(package): update parse to version 1.9.0

https://greenkeeper.io/

* Removes Hooks client API as provided by node SDK
2016-07-12 10:09:16 -04:00
Florent Vilmart
2498a954ce Exposes clientSDK into RestQuery, RestWrite and rest 2016-07-12 10:06:13 -04:00
Florent Vilmart
a040aafcd8 Adds parser for SDK version 2016-07-12 09:20:00 -04:00
Valery Vaskabovich
7a2e906202 validate_purchase fix for SANDBOX requests (#2253)
* Fixed routing for validate_purchase method

* Fixed validate_purchase endpoint
2016-07-11 19:38:42 -04:00
Drew
9658d216f3 Version 2.2.16 (#2247) 2016-07-10 21:00:55 -07:00
Alaa Attya Mohamed
4634bfb3e4 Fixed: When using an explicit database adapter, you must also use and explicit filesAdapter. (#2245) 2016-07-10 10:16:42 -07:00
OzgeAkin
6dc8d287d6 Option to ignore parse file storage (#2222)
* flag in configurations to use only files adapter

* added lib folder

* remove lib

* alignment edit

* replace comma with semicolon

* ignore parse file storage if fileKey is not provided (undefined)
2016-07-10 10:15:30 -07:00
Greenkeeper
1fb7679b22 chore(package): update pg-promise to version 5.1.2 (#2243)
https://greenkeeper.io/
2016-07-09 12:54:04 -07:00
Greenkeeper
83f686355e chore(package): update request to version 2.73.0 (#2242)
https://greenkeeper.io/
2016-07-09 10:53:14 -07:00
Drew
6ca1351b8f Revert "Update PostgresStorageAdapter.js" (#2241) 2016-07-08 22:52:14 -07:00
Vitaly Tomilov
a92b23b97d Update PostgresStorageAdapter.js (#2093)
If it really needs to reject with `undefined`, then this is the right way. Usually one just returns the result, let the caller provide the `.catch` ;)

This way real errors can be swallowed, not very good ;)
2016-07-08 22:51:22 -07:00
Florent Vilmart
a55466fde8 Fixes #2221: Nested Or queries (#2231)
* Adds repro for #2221

* Fixes nested or queries

* not for PG yet
2016-07-08 22:03:13 -07:00