Drew Gross
71ae7bee94
better names and comments
2016-04-26 13:08:58 -07:00
Drew Gross
449ca115b1
Break object deletions's dependency on schemaController
2016-04-26 10:23:14 -07:00
Drew Gross
d4bd21fcbc
remove schema from transformWhere
2016-04-26 10:20:17 -07:00
Drew Gross
a926712951
Start using parse format schema in transformQueryKeyValue
2016-04-26 10:12:45 -07:00
Drew Gross
5f564f32f5
simplify a little
2016-04-25 23:39:42 -07:00
Drew Gross
874d10fc74
Check expected type is array from Parse Format Schema
2016-04-25 23:36:25 -07:00
Drew Gross
4371ca164c
Pass parse format schema to transformWhere
2016-04-25 22:45:16 -07:00
Drew Gross
608cba9e8c
Clearer names in DatabaseController
2016-04-25 22:12:03 -07:00
Drew Gross
5cbf3eb8dd
Tidy up db controller
2016-04-25 22:01:50 -07:00
Drew Gross
37953d146b
some cleanup
2016-04-25 21:53:57 -07:00
Drew Gross
a3179e43fb
No need to handle object or reject arrays when transforming queries
2016-04-25 21:13:34 -07:00
Drew Gross
7b431ad064
nits
2016-04-25 20:54:47 -07:00
Drew Gross
ee8a3c94d5
No need to transform post-transform keys in mongo adapter
2016-04-25 20:42:19 -07:00
Drew Gross
e2a3213351
Remove update logic from query
2016-04-25 19:34:07 -07:00
Drew Gross
5c7b346292
Remove unnecessary logic
2016-04-25 18:48:22 -07:00
Drew Gross
e0a9f19895
Split logic for transforming queries into it's own function
2016-04-25 18:22:20 -07:00
Drew Gross
21e73ac276
Destructuring
2016-04-25 17:21:24 -07:00
Drew
957b5927b1
Ignore _RevoableSession "header" that is sent by JS SDK. Fixes #1548 . ( #1627 )
2016-04-25 15:52:21 -04:00
Drew
234d0093ff
Cleanup delete schema ( #1604 )
...
* Some cleanup for deleting one schema
* tidyness
* Remove _allCollections as Parse Server doesn't need it.
2016-04-25 14:47:57 -04:00
Drew
d14d451028
Move acl adding into parse server ( #1601 )
...
* Move writeACL knowledge out of mongoAdapter
* Remove write ACL from mongo adapter
* Remove readACL from Mongo Transform
2016-04-22 21:44:03 -04:00
Drew
d33dd68cc5
Add revokeSessionOnPasswordReset option. Closes #1584 ( #1597 )
...
* Add revokeSessionOnPasswordReset option
* Fix nits
2016-04-22 18:21:50 -04:00
Drew
0d094767cf
Cleanup update ( #1590 )
...
* destructuring in DB controller
* deleteObject in db adapter
* Turns out we can't have delete by object ID because of ACLs...
* Fix tests
* destructure acl
* Don't reject with object
2016-04-22 17:05:21 -04:00
Florent Vilmart
ab827e3c2f
Forces delete resolution ( #1595 )
2016-04-22 08:46:27 -07:00
Florent Vilmart
d49d539a81
_PushStatus uses proper Parse format ( #1580 )
...
* removes mongo style props from _PushStatus
* removes log
* Update MongoTransform.js
Removes _id case
2016-04-21 21:36:15 -04:00
Blayne Chard
6e9529f81c
Exposes the loggerAdapter as log to Cloud Functions and Triggers ( #1565 )
...
This allows access to logging inside cloud code and triggers via
request.log.info
request.log.error
2016-04-21 16:20:14 -04:00
Florent Vilmart
2d94a885d2
regression test for #1554
2016-04-20 21:51:48 -04:00
Florent Vilmart
b7b57f7ea7
Adds support for Pointer Permissions
...
* WIP: Initial pointer permissions
* Process Pointer perms when no matching CLP are found
* Additional tests with read lockdown
* Create operation lockdown with pointer permissions,
on parse.com, when an class is locked down with write pointer perm, users can't create objects even if they set their own as the pointer permission key
* Adds test case for multiple write PointerPerms
* Adds validation for pointer permissions when setting
* Adds tests for validating pointer permissions column types
* Adds tests for complex ACL/CLP/PP hierarchy
* Restores power of the master
* Adds validation of borked fields
* Adds complex test for find
* Adds more variations around PointerPermissions tests
2016-04-20 21:51:11 -04:00
Drew
b185508508
Remove flaky test
...
This test depends on external services and is super flaky. Lets kill it.
2016-04-20 19:03:56 -04:00
Drew
7b91ee98ed
Fixes #1568 ( #1574 )
2016-04-20 18:42:18 -04:00
Drew
9776362ab2
Begin isolating object creation code into an externalizable API. ( #1569 )
...
* Tidy up transformKeyValue
* Specialize transformKeyValue for object creation
* remove keys that never appear in creation requests
* rename function
* remove local var
* early exit for simple keys
* Refactor create
* Force class creation when creating an object
* Pass parameters to key value transformer
* No need to check for array in this func
* start using Parse Format schema in MongoTransform
* Remove call to getExpectedType
* add tests to ensure client can't see _PushStatus
2016-04-20 13:35:48 -07:00
Florent Vilmart
59b4047de8
Defers the session creation after DB operation ( #1561 )
2016-04-20 11:57:38 -04:00
Blayne Chard
54b21c2f73
Compress the ACL queries into a single $in query ( #1566 )
2016-04-20 09:03:44 -04:00
Drew
5d37755d88
Test facebook unlinking (regression test #1532 ) ( #1538 )
2016-04-20 00:31:15 -07:00
Florent Vilmart
ddd01181be
Safely require babel-polyfill ( #1558 )
...
(https://github.com/shakacode/bootstrap-loader/pull/29/files )
2016-04-19 22:29:00 -07:00
Drew
bf47a0b2b6
Remove acceptor parameter ( #1553 )
2016-04-19 14:29:05 -07:00
Florent Vilmart
3945e0c680
Update pushStatusHandler.js ( #1543 )
...
Fixes error thrown by #1526
2016-04-18 19:30:19 -07:00
Drew
61b62e4e9f
Rename Schema => SchemaController ( #1542 )
...
* Rename Schema to SchemaController
* Rename Schema => SchemaController
* Move to controllers folder
* Move SchemasController to Controllers folder
* remove ./..
2016-04-18 18:59:57 -07:00
Drew
0708af17d7
Move "No two geopoints" logic into mongo adapter ( #1491 )
...
* Move "No two geopoints" logic into mongo adapter
* Semicolon
2016-04-18 17:10:30 -07:00
Drew
cecb2a1cb1
Move 'ns not found' into mongo adapter. ( #1541 )
2016-04-18 17:06:51 -07:00
Drew
ab0ea09067
Schema.js cleanup ( #1540 )
...
* Tidy up schemas router
* de-duplicate logic for injecting default schemas
* Remove no-op promise
* use hasClass
* Make getAllSchemas part of SchemaController
* Move getOneSchema logic onto schema controller
* remove log
2016-04-18 17:06:00 -07:00
Drew
414ee6740d
Regression test for #1489 ( #1511 )
2016-04-18 19:45:48 -04:00
Fosco Marotto
65bd59d95f
Add link to screencast blog in readme.
2016-04-18 13:08:28 -07:00
Drew
ac839f75c7
Remove mongo object create format from Parse Server ( #1516 )
2016-04-18 12:45:48 -04:00
Drew
c57c6b33b1
Add link to mandrill adapter.
2016-04-15 14:33:12 -07:00
Fosco Marotto
4c2636e23c
Merge pull request #1510 from ParsePlatform/fosco.227
...
Changelog and update to 2.2.7
2016-04-15 12:49:26 -07:00
Fosco Marotto
2f51e751de
Changelog and update to 2.2.7
2016-04-15 12:46:25 -07:00
Seiji Akiyama
a727e1ccd3
Adds limit = 0 as a valid parameter for queries ( #1493 )
...
* Remove results if limit = 0;
* Adds tests for limit=0 and count=1.
* Improves readability.
2016-04-15 11:17:53 -07:00
Drew
f076078bf1
Add note about URL encoding special characters in passwords.
2016-04-15 10:50:46 -07:00
Drew
3f66c302b7
Enable logs ( #1502 )
2016-04-14 17:44:50 -07:00
Florent Vilmart
eef51cf9ad
Hotfix for tests ( #1503 )
2016-04-14 17:25:02 -07:00