Commit Graph

157 Commits

Author SHA1 Message Date
Fosco Marotto
04491fcb20 Merge pull request #673 from stephentuso/installation-handling-fix
Handle duplicate android device tokens correctly
2016-02-29 14:37:24 -08:00
Fosco Marotto
46da50f2b3 Merge pull request #689 from ParsePlatform/flovilmart.rolesHierarchy
Recursive lookup for roles
2016-02-29 14:35:04 -08:00
Nikita Lutsenko
7215300c1e Move Mongo database property directly to mongo adapter. 2016-02-29 12:50:47 -08:00
Nikita Lutsenko
997da898eb Split mongodb connection creation from DatabaseController. 2016-02-29 12:50:47 -08:00
Nikita Lutsenko
d78c2746e9 Rename ExportAdapter to DatabaseController. 2016-02-29 12:50:47 -08:00
Nikita Lutsenko
10efd5d38d Merge pull request #694 from ParsePlatform/nlutsenko.cache
Unify and cleanup cache.js.
2016-02-29 12:49:04 -08:00
Florent Vilmart
e43c471a7e Adds test that ensures the keys are properly set when using cloudcode 2016-02-28 12:38:36 -05:00
Nikita Lutsenko
768a781f98 Fix wrong order of resetting data in test helper. 2016-02-26 22:48:53 -08:00
Nikita Lutsenko
0cf3f56b00 Remove dependency from DatabaseAdapter on cache.js. 2016-02-26 20:46:49 -08:00
stephentuso
aee968a853 Add duplicate device token test 2016-02-26 21:05:46 -05:00
Drew
ca9b750993 Merge pull request #684 from Marco129/client-class-creation
Add allowClientClassCreation option
2016-02-26 11:46:50 -08:00
Florent Vilmart
753bead4ac Recursive lookup for roles 2016-02-26 13:35:56 -05:00
Marco129
97489106b4 Add allowClientClassCreation option 2016-02-26 23:08:20 +08:00
Fosco Marotto
1b83d9c621 Fix for #413 - support empty authData on signup 2016-02-26 05:05:15 -08:00
Fosco Marotto
791c5512aa Merge pull request #567 from IlyaDiallo/master
Accept subdocuments keys ("object.subobject"), to allow atomic updates of an object field.
2016-02-26 02:05:03 -08:00
Nikita Lutsenko
a96cb6b31d Remove 'url' as a required field on Files when they are stored on object. 2016-02-25 19:31:55 -08:00
Florent Vilmart
c4abd1e267 cache as ES6 2016-02-25 08:10:08 -05:00
Florent Vilmart
9ac7a52e40 Adds Hooks API
Adds Parse.Hooks.js in src/cloud-code/Parse.Hooks.js
Moves Cloud code related functions in src/cloud-code
2016-02-25 08:10:07 -05:00
Florent Vilmart
f58befd7bb ES6-ify 2016-02-24 19:17:50 -05:00
Florent Vilmart
30aafd2c62 Adds proper tests 2016-02-24 19:17:49 -05:00
Nikita Lutsenko
9d342a8aee Fix missing file URL for short-circuited _User in RestWrite. 2016-02-24 15:18:40 -08:00
Nikita Lutsenko
bc90effd32 Send a sessionToken back on /users/me. 2016-02-24 12:54:04 -08:00
Nikita Lutsenko
39dce71e4f Add a test to validate pointer mutation in beforeSave hooks. 2016-02-24 01:24:16 -08:00
Nikita Lutsenko
1ae61c92c8 Merge pull request #614 from ParsePlatform/nlutsenko.beforeSave.dirty
Fix dirtyKeys() and dirty(key:) on beforeSave when updating objects.
2016-02-23 22:35:57 -08:00
Nikita Lutsenko
24a25d14b3 Unify all beforeSave with custom hooks into a single describe(), reset the global state on before/after test. 2016-02-23 22:01:12 -08:00
Nikita Lutsenko
69efeac1a3 Enable strict mode in ParseAPI.spec.js. 2016-02-23 22:00:48 -08:00
Nikita Lutsenko
4643be7086 Remove duplicate import in helper.js. 2016-02-23 22:00:25 -08:00
Drew Gross
2dc080fd00 Require a server URL 2016-02-23 21:51:04 -08:00
Nikita Lutsenko
14cc82a057 Fix dirtyKeys() and dirty(key:) on beforeSave when updating objects. 2016-02-23 21:50:17 -08:00
Drew
b1c2d9da6a Merge pull request #576 from flovilmart/httpRequest-tests
improves coverage and API of httpRequest
2016-02-23 13:02:48 -08:00
Florent Vilmart
b6223f598c Adds support for application/x-www-form-urlencoded
- Now the body encoding is inferred on the headers as supposed
2016-02-23 08:17:48 -05:00
Nikita Lutsenko
1f707a97d3 Merge pull request #587 from ParsePlatform/nlutsenko.cc.test
Do not pass objectId, updatedAt, createdAt to beforeSave hooks on object create.
2016-02-22 22:13:51 -08:00
Nikita Lutsenko
be693fb736 Do not pass objectId, updatedAt, createdAt to beforeSave hooks on object create. 2016-02-22 19:33:32 -08:00
Nikita Lutsenko
17e5686efd Move test-only Cloud Code into spec subfolder. 2016-02-22 19:33:29 -08:00
Fosco Marotto
5755126525 Fixed ACL creation for #504. 2016-02-22 17:33:11 -08:00
Florent Vilmart
48dcfe37e7 Removes shared code in PushAdapter, replaces AdapterLoader.load by loadAdapter 2016-02-22 18:31:10 -05:00
Nikita Lutsenko
966d10ca43 Allow uploading files without content-type. 2016-02-22 14:07:58 -08:00
Florent Vilmart
cc3d93f5d9 improves coverage and API of httpRequest 2016-02-22 15:47:30 -05:00
Nikita Lutsenko
fcf745ad1d Disable flaky test that fails on Travis-CI. 2016-02-22 12:01:55 -08:00
Florent Vilmart
045caca946 private _adapter, ES6 setters and getters 2016-02-22 14:12:51 -05:00
Ilya Diallo
831c2ee3de Update the tests 2016-02-22 16:45:41 +01:00
Florent Vilmart
23e55e941e Splits Adapter loading from AdaptableController
- Adds dynamic prototype conformance check upon setting adapter
- Throws when adapter is undefined, invalid in controller
2016-02-21 23:47:07 -05:00
Florent Vilmart
33fa5a7b2a Adds setDefaultAdapter 2016-02-21 17:04:34 -05:00
Florent Vilmart
d504681589 Improves Controller and Adapter relationship
- Controllers that have adapters are AdaptableControllers
- AdaptableController is responsible to instantiate the proper adapter if needed (string, function or BaseAdapter)
- BaseAdapter is the base class for adapters, allows skipping when passed directly to the controller
2016-02-21 17:04:34 -05:00
Nikita Lutsenko
6f4a7a6ff2 Merge pull request #534 from flovilmart/refactor-to-routers
Refactors Controllers to split Controllers and Routers
2016-02-20 15:29:06 -08:00
Florent Vilmart
fbb5e448e6 refactors LoggerController with LogsRouter 2016-02-20 13:52:36 -05:00
Florent Vilmart
305879a251 Refactors FilesController in FilesRouter and FilesController 2016-02-20 13:52:35 -05:00
Florent Vilmart
b490688652 Splits Push handling in Router and Controller
- Improves tests and coverage, fix bugs
2016-02-20 10:51:56 -05:00
Florent Vilmart
fbdd89c2d1 Fix problems with _keys in nested objects 2016-02-20 09:45:09 -05:00
Drew
8aaf8f2ff2 Merge pull request #498 from drew-gross/test-configurations
Add ability to test multiple server configurations
2016-02-19 19:28:30 -08:00