-
Notifications
You must be signed in to change notification settings - Fork 11
send projection information to the readSnapshot middleware #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
send projection information to the readSnapshot middleware #1
Conversation
@@ -82,6 +82,9 @@ Backend.prototype._shimDocAction = function() { | |||
this.use(this.MIDDLEWARE_ACTIONS.readSnapshots, function(request, callback) { | |||
async.each(request.snapshots, function(snapshot, eachCb) { | |||
var docRequest = {collection: request.collection, id: snapshot.id, snapshot: snapshot}; | |||
if(request.projection) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sharedb-access expect an index property and use the deprecated doc middleware
Pull Request Test Coverage Report for Build 98
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not totally clear what problem this solves. The description in the issue mentions "correctly setup authorizations", but how does this change solve that problem?
Adding tests to cover the changes here would be good to do.
CI is currently failing on this PR.
@@ -1,7 +1,7 @@ | |||
var json0 = require('ot-json0').type; | |||
|
|||
exports.projectSnapshot = projectSnapshot; | |||
exports.projectSnapshots = projectSnapshots; | |||
exports.projectsSnapshots = projectsSnapshots; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why rename this?
fix share#234