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
Florent Vilmart
1023baf20d
DBController refactoring ( #1228 )
...
* Moves transform to MongoTransform
- Adds ACL query injection in MongoTransform
* Removes adaptiveCollection from DatabaseController
- All collections manipulations are now handled by a DBController
- Adds optional flags to configure an unsafe databaseController for direct
access
- Adds ability to configure RestWrite with multiple writes
- Moves some transfirmations to MongoTransform as they output specific code
* Renames Unsafe to WithoutValidation
2016-04-14 19:24:56 -04:00
Drew
fc1cdd4408
Remove collection prefix and default mongo URI ( #1479 )
...
* Remove collection prefix from DB Controller
* Remove collection prefix from cache
* Revert "Remove collection prefix from cache"
This reverts commit 529d67dd617b64c69c36a8a63382456e95edcab8.
* Remove knowledge of default mongo URI from Parse Server
* Remove adaptive collection paramater from deleteFields
* Tidy up DBAdapter.js
2016-04-13 19:45:07 -04:00
Drew
512251eb58
Move field deletion logic into mongo adapter ( #1471 )
2016-04-12 22:06:58 -04:00
Florent Vilmart
c050a65d49
Schema.js database agnostic ( #1468 )
...
* Schema.js database agnostic
* nits
2016-04-12 17:39:27 -04:00
Drew
c419106a38
Remove console.log ( #1465 )
2016-04-12 10:46:33 -07:00
Drew
99ecbb39f5
Move mongo field type logic into mongoadapter ( #1432 )
2016-04-12 08:06:00 -04:00
Florent Vilmart
a770c4cba8
Adds relation fields to objects
2016-04-08 07:42:02 -04:00
Florent Vilmart
c22bafb951
Sets the defaultSchemas keys in the SchemaCollection ( #1421 )
...
* Sets the defaultSchemas keys in the SchemaCollection
* Moves defaultSchema injection logic to router
* maps outside the function
* fixes test
* conciseness
2016-04-07 22:13:07 -04:00
Drew
325d09ca4c
Schema format cleanup
2016-04-07 07:47:47 -04:00
Drew
91ace4e718
Progres towards moving mongo logic into its adapter
2016-04-05 21:16:39 -07:00
Florent Vilmart
3a28352c96
🎉 fixes #1355
...
- injects default schema upon schema load
2016-04-04 08:36:40 -04:00
Florent Vilmart
5d19c4ab45
Generates default CLP, freezes objects
2016-03-22 08:12:58 -04:00
Florent Vilmart
18781f1f82
Removes _PushStatus from system classes, uses direct DB access to write
2016-03-14 10:20:24 -04:00
Florent Vilmart
7c387e1ee9
Adds support to store push results
2016-03-13 23:37:13 -04:00
Florent Vilmart
4d401d9daa
Stores the _PushStatus when sending push, set pending, and running states
2016-03-12 14:32:39 -05:00
Florent Vilmart
308fe1498a
Centralizes list of system classes into Schema
2016-03-12 13:40:59 -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
Florent Vilmart
d71a58c217
Adds tests, improve coverage, adds ability to delete CLP with classLevelPermissions: null
2016-03-10 11:31:37 -05:00
Florent Vilmart
ddd1ae3338
Validates key, values and operation in CLP
2016-03-09 20:19:12 -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
d86f0a8c69
Use schema collection instead of adaptive collection for all schema operations.
2016-03-09 15:21:29 -08:00
Nikita Lutsenko
fb5b8fb58f
Migrate Schema.js to adaptive mongo collection.
2016-03-08 00:53:51 -08:00
Nikita Lutsenko
438cf58d4c
Fix early server response in Schema validation.
2016-03-07 22:47:18 -08:00
Drew Gross
963811d022
Handle legacy _client_permissions key in _SCHEMA. Fixes #888 .
2016-03-07 13:44:45 -08:00
Marco129
91ff816839
Improve delete flow for non-existence _Join collection
2016-03-07 14:14:28 +08:00
Marco129
908a4eb643
Fix delete relation field when _Join collection not exist
2016-03-06 17:22:36 +08:00
Nikita Lutsenko
295d361725
Convert Schema.js to ES6 class.
2016-03-04 01:05:49 -08:00
Nikita Lutsenko
9a7264100c
Merge pull request #794 from ParsePlatform/nlutsenko.schemasRouter
...
Completely migrate SchemasRouter to new MongoCollection API.
2016-03-03 14:55:54 -08:00
Marco129
50735c4cbb
Fix update system schema
2016-03-04 03:09:49 +08:00
Marco129
90a1e46905
Fix create system class with relation/pointer
2016-03-03 16:37:30 +08:00
Nikita Lutsenko
99cb05ea1e
Use throws syntax for errors in SchemasRouter.
2016-03-02 23:48:12 -08:00
Florent Vilmart
5f9a8d87e5
Nit for Object type
2016-03-02 20:00:26 -05:00
Drew
4b7447e228
Merge pull request #710 from sdf611097/typeChecking
...
Add __type checking
2016-03-02 14:57:19 -08:00
jim1_lin
36aa5935b1
change error msg
2016-03-02 16:50:00 +08:00
jim1_lin
a909ab71e3
ACL must be specified in _Role
2016-03-02 16:08:39 +08:00
jim1_lin
5f9b5d54f3
move check from classRouter to Schema.js
2016-03-02 12:21:18 +08:00
Nikita Lutsenko
6893895aea
Remove direct mongo access from SchemaRouter.modify, Schema.deleteField.
2016-02-29 19:47:08 -08:00
Nikita Lutsenko
d78c2746e9
Rename ExportAdapter to DatabaseController.
2016-02-29 12:50:47 -08:00
Jim Lin
f60c6af5e7
Fix bug to __type checking
2016-02-28 14:02:40 +08:00
Jim Lin
88b14a914a
url can & should be constructed during read
2016-02-28 14:02:40 +08:00
jim1_lin
ae9f196ec7
add Bytes to check
2016-02-28 14:02:40 +08:00
jim1_lin
dec95ca4fa
Add check of special type
2016-02-28 14:02:40 +08:00
jim1_lin
d067c0ba61
add invalid __type check
2016-02-28 14:02:40 +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