Commit Graph

135 Commits

Author SHA1 Message Date
Tyler Brock
d57e384dcb Apply credential stripping to all untransforms for _User (#1498) 2016-04-14 14:50:16 -07: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
Florent Vilmart
c050a65d49 Schema.js database agnostic (#1468)
* Schema.js database agnostic

* nits
2016-04-12 17:39:27 -04:00
Florent Vilmart
0e3636d880 Make notEqual work on relations
*  regression tests for #1349

* 🎉 fixes #1349

* Adds support for multiple constraints on the same key
2016-04-04 11:05:03 -07:00
Florent Vilmart
f0ebb7bae6 Merge pull request #1295 from drew-gross/test-1259
Fixes #1271
2016-03-30 23:14:17 -04:00
Drew Gross
73bca3b64c Improve comments 2016-03-30 19:48:33 -07:00
Drew Gross
6311c95785 Fixes #1271 2016-03-30 19:35:54 -07:00
Florent Vilmart
5d99075663 Properly let masterKey add fields 2016-03-30 20:27:12 -04:00
Florent Vilmart
e1c475512c Returns updated keys when running with beforeSave 2016-03-16 23:48:52 -04:00
Florent Vilmart
ba545fbf59 Returns full modifications on PUT 2016-03-16 22:30:52 -04:00
Florent Vilmart
e75d233b7e Adds validation of addFields 2016-03-09 19:33:48 -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
2730398b92 Add new MongoSchemaCollection class that manages schemas for all collections. 2016-03-09 15:20:59 -08:00
Nikita Lutsenko
b9f08d9694 Do not mutate parameter object in DatabaseController. 2016-03-08 16:08:41 -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
f2ead46580 Remove .rawCollection method from DatabaseController. 2016-03-07 17:22:27 -08:00
Florent Vilmart
5cdcadea36 Fixes bug when querying equalTo on objectId and relation
- Adds $eq operator in transform
- Makes $eq operator on objectId when adding $in operator
2016-03-07 08:26:35 -05:00
Fosco Marotto
4ee9cb754c Fix for related query on non-existing column 2016-03-06 00:34:44 -08:00
Florent Vilmart
907a05c57a Sanitize objectId in
- if objectId is set in query, move it to $in array
- refactors to addInObjectIdsIds
2016-03-03 10:58:09 -05:00
Drew
2cc9600604 Merge pull request #785 from flessard/master
Fix : remove query count limit
2016-03-02 20:10:22 -08:00
Florent Vilmart
dac71019b6 Merge pull request #769 from ParsePlatform/flovilmart.fixFailingQueries
Adds support for multiple $in, pointer / relation queries on $or
2016-03-02 22:15:37 -05:00
Francis Lessard
f3b7138269 Fix : remove query count limit
Remove the limit on query count. By default the limit is 100. If you
try to get the count of a collection and the collection has more than
100 rows, the result is always 100.
2016-03-02 21:34:17 -05:00
Florent Vilmart
d872f52eff backbone style is BAD! 2016-03-02 20:37:45 -05:00
Florent Vilmart
43f014a47d nits 2016-03-02 15:16:48 -05:00
Florent Vilmart
3629c40036 Adds support for or queries on pointer and relations 2016-03-02 14:33:51 -05:00
Florent Vilmart
27815b18aa Adds support for multiple $in 2016-03-02 12:01:49 -05:00
Nikita Lutsenko
4049ce4102 Move DatabaseController to use new findOneAndUpdate. 2016-03-02 00:29:20 -08:00
Nikita Lutsenko
abde9484ce Use adaptiveCollection for main find/count inside DatabaseController. 2016-03-01 22:36:23 -08:00
Nikita Lutsenko
2733c0924b Remove direct mongo access from Schema.spec.js. 2016-02-29 19:47:08 -08:00
Nikita Lutsenko
028ef2a7b2 Remove dependency on raw mongo from SchemaRouter.delete. 2016-02-29 19:47:08 -08:00
Nikita Lutsenko
eb892830e6 Move and cleanup getting collections into MongoStorageAdapter. 2016-02-29 12:51:43 -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