Commit Graph

767 Commits

Author SHA1 Message Date
Florent Vilmart
cd7a4b80bf Merge pull request #978 from ParsePlatform/flovilmart.cleanupNullAuthDatakeysOnLogin
Fixes #935, cleans up authData null keys on login for android crash
2016-03-11 11:22:11 -05:00
Florent Vilmart
1ed868b99c Fixes #935, cleans up authData null keys on login for android crash 2016-03-11 11:14:58 -05:00
Mengyan Wang
d42d359437 Merge pull request #959 from ParsePlatform/wangmengyan.do_master_query_for_before/afterHook
Do master query for before/afterSaveHook
2016-03-10 22:47:04 -08:00
wangmengyan95
8ea2b615a4 Do master query for before/afterSaveHook 2016-03-10 22:38:07 -08:00
Florent Vilmart
1e7e4fe372 Merge pull request #898 from ParsePlatform/flovilmart.CLPAPI
Adds CLP API to Schema router
2016-03-11 00:32:41 -05:00
Florent Vilmart
c935ed8364 Always return default public permissions 2016-03-10 23:01:45 -05:00
Florent Vilmart
16e3529c96 Removes blacklisting, *-but test case 2016-03-10 19:20:05 -05:00
Florent Vilmart
b1d399bf80 Adds blacklist permission, more test scenarios 2016-03-10 18:02:29 -05:00
Drew
2114153e08 Merge pull request #958 from raulr/graceful-shutdown
Shutdown standalone parse server gracefully
2016-03-10 12:35:55 -08:00
Raul Rodriguez
76e6f8c775 Shutdown standalone parse server gracefully 2016-03-10 20:05:28 +01:00
Florent Vilmart
2300b212d5 Merge pull request #946 from aneeshd16/patch-2
Changed FileLoggerAdapterSpec to fail gracefully on Windows
2016-03-10 11:34:55 -05:00
Florent Vilmart
d71a58c217 Adds tests, improve coverage, adds ability to delete CLP with classLevelPermissions: null 2016-03-10 11:31:37 -05:00
Drew
d2cba7502b Merge pull request #886 from aneeshd16/patch-1
Added test command for Windows support
2016-03-10 08:12:56 -08:00
Aneesh Devasthale
dc0e8ebe9a Merge branch 'master' into patch-1 2016-03-10 16:24:22 +05:30
Aneesh Devasthale
b47c927377 Changed FileLoggerAdapterSpec to fail gracefully on Windows
Running tests on Windows caused this error:
```
B:\Projects\Parse Server\parse-server\spec\FileLoggerAdapter.spec.js:38
        expect(results[0].message).toEqual('testing info logs');
                         ^

TypeError: Cannot read property 'message' of undefined
    at B:\Projects\Parse Server\parse-server\spec\FileLoggerAdapter.spec.js:38:26
    at ParsePromise.<anonymous> (B:\Projects\Parse Server\parse-server\src\Adapters\Logger\FileLoggerAdapter.js:9:17440)
    at ParsePromise.wrappedResolvedCallback (B:\Projects\Parse Server\parse-server\node_modules\parse\lib\node\ParsePromise.js:139:41)
    at ParsePromise.resolve (B:\Projects\Parse Server\parse-server\node_modules\parse\lib\node\ParsePromise.js:72:36)
    at resolveOne (B:\Projects\Parse Server\parse-server\node_modules\parse\lib\node\ParsePromise.js:471:29)
    at ParsePromise.object.then.errors.(anonymous function) (B:\Projects\Parse Server\parse-server\node_modules\parse\lib\node\ParsePromise.js:480:13)
    at ParsePromise.wrappedResolvedCallback (B:\Projects\Parse Server\parse-server\node_modules\parse\lib\node\ParsePromise.js:139:41)
    at ParsePromise.resolve (B:\Projects\Parse Server\parse-server\node_modules\parse\lib\node\ParsePromise.js:72:36)
    at ReadFileContext.callback (B:\Projects\Parse Server\parse-server\src\Adapters\Logger\FileLoggerAdapter.js:9:16189)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:303:13)
```
Rest of the tests could not be run as the test runner would break here. This change adds a check to fail when the FileLoggerAdapter returns an empty array from here: https://github.com/ParsePlatform/parse-server/blob/master/src/Adapters/Logger/FileLoggerAdapter.js#L191

Regarding the cause of the error itself, it is due to different filename separators in *nix and Windows. The FileLoggerAdapter would not save logs (have not tested this). This is a separate issue and should also be fixed.
2016-03-10 11:17:52 +05:30
Florent Vilmart
f08b0b32bb Merge pull request #944 from ParsePlatform/flovilmart.hotfixShebang
re-add shebang
2016-03-09 21:40:51 -05:00
Florent Vilmart
ddd1ae3338 Validates key, values and operation in CLP 2016-03-09 20:19:12 -05:00
Florent Vilmart
78425c8a31 re-add shebang 2016-03-09 20:04:42 -05:00
Florent Vilmart
e75d233b7e Adds validation of addFields 2016-03-09 19:33:48 -05:00
Florent Vilmart
64f9fad285 Adds addField in CLP valid keys 2016-03-09 19:33:47 -05:00
Florent Vilmart
5780c1e425 Merges CLP endpoints with POST, PUT and GET 2016-03-09 19:33:47 -05:00
Florent Vilmart
d4fd73100c Adds CLP API to Schema router 2016-03-09 19:33:47 -05:00
Nikita Lutsenko
51862c1265 Merge pull request #943 from ParsePlatform/nlutsenko.schemaCollection
Add new schema collection type and replace all usages of direct mongo collection for schema operations.
2016-03-09 16:27:36 -08:00
Nikita Lutsenko
d86f0a8c69 Use schema collection instead of adaptive collection for all schema operations. 2016-03-09 15:21:29 -08:00
Nikita Lutsenko
2730398b92 Add new MongoSchemaCollection class that manages schemas for all collections. 2016-03-09 15:20:59 -08:00
Fosco Marotto
72362bc604 Merge pull request #933 from ParsePlatform/fosco.215
Changelog and update to 2.1.5
2016-03-09 13:01:27 -08:00
Fosco Marotto
d594f93567 Updating to 2.1.5 2016-03-09 08:29:49 -08:00
Aneesh Devasthale
bb5cd080bc Merge branch 'master' into patch-1 2016-03-09 18:41:14 +05:30
Drew
21444b07e4 Merge pull request #925 from ParsePlatform/nlutsenko.dontSelectQueries
Do not require where clause in  condition on queries.
2016-03-08 18:24:12 -08:00
Nikita Lutsenko
e93873f7b1 Do not require where clause in condition on queries. 2016-03-08 17:08:27 -08:00
Drew
3723b9bb75 Merge pull request #924 from ParsePlatform/nlutsenko.hooks.acl
Make sure that ACLs propagate to before/after save hooks.
2016-03-08 16:29:53 -08:00
Nikita Lutsenko
0f07c5204e Add test validating that we have ACL propagate to before/after save hooks. 2016-03-08 16:15:49 -08:00
Nikita Lutsenko
b9f08d9694 Do not mutate parameter object in DatabaseController. 2016-03-08 16:08:41 -08:00
Drew
7143a12a46 Merge pull request #919 from Marco129/minimize-query
Minimize db query
2016-03-08 10:52:17 -08:00
Marco129
2f63c5528d Minimize db query 2016-03-09 02:15:27 +08:00
Florent Vilmart
0c446b9731 Merge pull request #912 from carmenlau/911-params-option
#911 support params option in Parse.Cloud.httpRequest
2016-03-08 07:52:54 -05:00
Carmen
440099267d #911 support params option in Parse.Cloud.httpRequest 2016-03-08 20:23:55 +08:00
Nikita Lutsenko
241cd8c735 Merge pull request #909 from ParsePlatform/nlutsenko.databaseController
Move DatabaseController and Schema fully to adaptive mongo collection.
2016-03-08 01:10:55 -08:00
Nikita Lutsenko
49eb9df1ef Remove private Schema API usage from SchemasRouter. 2016-03-08 00:53:51 -08:00
Nikita Lutsenko
fb5b8fb58f Migrate Schema.js to adaptive mongo collection. 2016-03-08 00:53:51 -08:00
Nikita Lutsenko
a163327ac9 Remove usages of non-adaptive collection inside DatabaseController. 2016-03-08 00:53:51 -08:00
Nikita Lutsenko
8d10447c9f Merge pull request #908 from ParsePlatform/nlutsenko.geoPoint
Fix flaky Parse.GeoPoint test.
2016-03-07 23:37:42 -08:00
Nikita Lutsenko
0abd5a5931 Re-enable GeoPoint test. 2016-03-07 22:47:18 -08:00
Nikita Lutsenko
438cf58d4c Fix early server response in Schema validation. 2016-03-07 22:47:18 -08:00
Nikita Lutsenko
98769a2226 Merge pull request #902 from ParsePlatform/flovilmart.FixPushNotifications
Increment badge the right way
2016-03-07 20:44:24 -08:00
Florent Vilmart
80869749aa Merge pull request #708 from mcdonamp/mcdonald-gcs-adapter
Yet Another FileAdapter: Google Cloud Storage
2016-03-07 23:26:21 -05:00
Florent Vilmart
bf96f0d28a Fixes problems related to increment badge
- name conventions are aweful in PushController
- properly looks at the badge into body.data instead of body
- We may want to refactor that as it's confusing to use a full body
2016-03-07 22:07:15 -05:00
Florent Vilmart
4259c5d377 Merge pull request #903 from ParsePlatform/nlutsenko.push
Cleanup PushController/PushRouter, remove raw mongo collection access.
2016-03-07 20:42:21 -05:00
Nikita Lutsenko
654a540b6a Fix race condition in GlobalConfig test. 2016-03-07 17:22:27 -08:00
Nikita Lutsenko
de0f71cc9e Remove useless masterKey validation in PushController.sendPush. 2016-03-07 17:22:27 -08:00