Re:Open Sourcing Our SDKs
by codegefluester on Friday August 14, 2015 @10:28AM
(#10060251)
I'm curious about an example for (5), mind sharing one?
Re:Open Sourcing Our SDKs
by roddylindsay on Friday August 14, 2015 @12:59PM
(#10061246)
Sure. Let's say I have a Group collection, a User collection, and a Post collection. A Post has a pointer to a Group and is public to that group. I would like to specify that each Post should be able to be read only by Users who belong to that group, by having a pointer to that Group in their "group" field. I could specify this permission at a class level as a Parse Query.
Basically I want a more powerful version of this: http://blog.parse.com/learn/secure-your-app-from-the-data-br...
1) Don't even bother with their hosted Cloud Code, spin up your own backend and use the webhooks. As of the JS SDK 1.5 you can finally run a node backend securely.
2) Push complex logic off the client and into Cloud Functions.
3) Put plenty lot of thought into your schemas before creating them.
That said, there are a few big areas of need that I see that I hope the team will address:
1) Development/Staging environments are a pain, particularly around schemas. Tooling around migrations would help a lot here.
2) Testing tools leave a lot to be desired (I had to roll my own backend mock library for node, https://github.com/HustleInc/parse-mockdb )
3) Limited exposure of MongoDB feature set (e.g. aggregation framework)
4) Downtime (and notification speed / transparency thereof)
5) Security/ACLs leave a lot to be desired, particularly for complex schemas. For instance, it would be great to specify object-level access controls in terms of Parse queries (e.g. Users that satisfy a query built around the object in question).