Tyler Brock
1487a73f16
Fix expected webhook external response format ( #1934 )
2016-05-27 19:04:49 -07:00
Drew
50b9ae4803
Fix #1919 ( #1926 )
2016-05-26 19:15:54 -04:00
Tyler Brock
c5e3be8b64
Strip objectId out of responses from HooksController ( #1925 )
2016-05-26 15:33:37 -07:00
Jeremy Pease
dd1d18dbe6
Set push.storedPushData in serverInfo features if push is available ( #1923 )
...
It's assumed that when push is available, the pushHandler is used and data is saved in _PushStatus.
This allows Parse Dashboard push history to be enabled: ParsePlatform/parse-dashboard#378
2016-05-26 14:02:13 -07:00
Tyler Brock
2561987d20
Add webhookKey support ( #1920 )
2016-05-26 11:17:24 -07:00
Drew
0850c184d3
Fixes #1649 ( #1650 )
...
* Regression test #1649
* Address comments
* Comment
* Change emails to help debug flaky test failures
* More logging info to debug flaky tests
2016-05-25 19:48:18 -04:00
Drew
c9a138d9ca
Break schemaController dependency. ( #1901 )
...
* Break dependency on MongoCollection for updateMany
* Move transformWhere usage into MongoTransform
* Pass parse schema into transformUpdate
* break dependency on schemaController
* remove schema parameter
* move key name validation up one level
* Move validation out of mongo adapter
* Move validation into Parse Server and transformUpdate in Mongo Adapter
* Update mongo adapter
* Use adapter API
* use and fix mongo adapter api
* Remove/rename stuff
* Kill transform in DBController
* better imports for transform
* Tidy ConfigRouter
* Remove schemaController in more places
* Remove comment
2016-05-24 17:21:20 -07:00
Peter J. Shin
c4499d25e0
Merge pull request #1888 from drew-gross/finish-moving-query-logic
...
Finish moving query logic
2016-05-24 16:38:14 -07:00
Drew Gross
0896f33824
Remove unnecessary null check
2016-05-24 16:30:43 -07:00
Jeremy Pease
4864518315
Update schema mismatch error to include type string ( #1898 )
2016-05-24 13:52:45 -07:00
Drew Gross
3ed3c7b62f
Move more mongo specific stuff into mongo adapter
2016-05-23 21:16:03 -07:00
Drew Gross
05ae010b91
Kill mongoOptions
2016-05-23 20:28:12 -07:00
Drew Gross
d428041a83
Consistent parameter order
2016-05-23 20:22:04 -07:00
Drew Gross
a763f7c2fc
move transformWhere into mongo adapter
2016-05-23 20:19:03 -07:00
Drew Gross
135b0e0254
Remove options from count
2016-05-23 20:15:51 -07:00
Drew Gross
e444ca8425
Can't sort a count
2016-05-23 20:12:03 -07:00
Drew Gross
aa072dabff
Remove limit from count
2016-05-23 20:09:59 -07:00
Drew Gross
c9be5a3aac
Destructure mongo options
2016-05-23 20:07:16 -07:00
Drew Gross
cf0a4b246f
remove adaptive collection call
2016-05-23 20:04:10 -07:00
Drew Gross
14938bbe7a
create + use adapter count instead of collection count
2016-05-23 19:00:58 -07:00
Drew Gross
1ae1d42c32
transformWhere in MongoAdapter
2016-05-23 18:39:34 -07:00
Drew Gross
4052470820
remove schemaController paramater
2016-05-23 18:39:34 -07:00
Drew Gross
7dca7e20b0
Remove schemaController parameter
2016-05-23 18:39:34 -07:00
Drew Gross
e440046be4
Remove getRelationFields
2016-05-23 18:39:34 -07:00
Drew Gross
f4b1f7b951
Remove all dependencies on schemaController
2016-05-23 18:39:34 -07:00
Drew Gross
d944255e4e
remove another use of schemaController
2016-05-23 18:39:34 -07:00
Drew Gross
a55b2b6209
remove another use of schemaController
2016-05-23 18:39:34 -07:00
Drew Gross
00de555ecb
remove one use of schemaController
2016-05-23 18:39:34 -07:00
Drew Gross
474a893a22
Pass the Parse Schema into untransform
2016-05-23 18:39:34 -07:00
Drew Gross
fe8160449c
Revert changes to find
2016-05-23 18:39:34 -07:00
Drew Gross
69d5a2f87c
Make find() in MongoStorageAdapter
2016-05-23 18:35:38 -07:00
Drew
3a96140103
Fix issue with pointers getting un-hydrated when there is a beforeSave ( #1884 )
...
* Add failing test and simplify RestWrite
* simplify and add test stubs
* Fix issue
2016-05-23 17:13:32 -07:00
Drew
614e1ac8e5
Move query logic into mongo ( #1885 )
...
* Move Parse Server logic into Parse Server and out of MongoAdapter
* Move untransforming up one level
* Make find() in MongoStorageAdapter
* Put nested object untransforming into it's own function
* Simplfy nested untransform
* Don't mess with inner object keys called _auth_data_*
* Prevent untransforming inner object keys named _p_*
* Fix inner keys named _rperm, _wperm
* Fix bugs with inner objects behaving strange when other fields have same name as key in specific circumstances
* remove params from untransform nested object
* Revert changes to find
2016-05-23 19:31:51 -04:00
Peter J. Shin
6b28075194
Merge pull request #1834 from drew-gross/move-stuff
...
Move query format validation into Parse Server
2016-05-23 12:46:44 -07:00
Steven Shipton
8b43d2644f
Change existsSync to exception handler ( #1879 )
2016-05-23 11:49:43 -07:00
Drew
392102eb97
Cache users by objectID, and clear cache when updated via master key ( fixes #1836 ) ( #1844 )
...
* Cache users by objectID, and clear cache when updated via master key
* Go back to caching by session token. Clear out cache by querying _Session when user is modified with Master Key (ew, hopefully that can be improved later)
* Fix issue with user updates from different sessions causing stale reads
* Tests aren't transpiled...
* Still not transpiled
2016-05-22 09:59:36 -07:00
Drew
eefa2ccac7
Handle "bytes" type in DB. Fixes #1821 . ( #1866 )
2016-05-22 09:33:59 -04:00
Jeremy Pease
fab8cfdfc7
Add additional default fields to _Installation class ( #1852 )
...
Fields are appVersion, appName, appIdentifier, and parseVersion.
These fields are sent by Android and iOS SDKs.
2016-05-20 18:15:47 -07:00
Drew
b2183680be
Refactor cloud code tests ( #1837 )
...
* Move cloud code tests
* Remove _removeHook calls that are no longer necessary
* Use Strict
2016-05-19 13:38:16 -07:00
benishak
fece2a4b47
change logger.error to logger.info to prevent pm2 from crashing ( #1830 )
2016-05-19 09:52:44 -07:00
Hussam Moqhim
03108e6347
add support for http basic auth ( #1706 )
...
* add support for http basic auth
* update http auth per flovilmart feedback
2016-05-18 20:06:37 -07:00
Drew Gross
c416cad43f
remove extra special keys list
2016-05-18 18:59:52 -07:00
Drew Gross
5165c80570
Remove validate parameter from deleteObjectsByQuery
2016-05-18 18:56:47 -07:00
Drew Gross
643bdc8227
Move query validation out of mongo adapter
2016-05-18 18:56:47 -07:00
Drew Gross
15fc186a51
Extract query validation logic
2016-05-18 18:56:47 -07:00
Drew Gross
ea09213511
lift query key validation out of transformWhere
2016-05-18 18:56:47 -07:00
Drew Gross
559205bc64
Lift no-query-ACL validation out of transformWhere
2016-05-18 18:56:47 -07:00
Drew Gross
66b8a8474e
Lift query key validation out of transformQueryKeyValue
2016-05-18 18:56:47 -07:00
Drew Gross
b24ff151d5
Correct validation of inner keys
2016-05-18 18:56:47 -07:00
Drew Gross
0d856c1f23
remove extra lines
2016-05-18 18:54:06 -07:00