Simon Schick
Simon Schick
By "getting the behavior back" I mean that all the changes made on the database are published to the meteor instances. Please consider to just name it in the md-file...
@theodorDiaconu Reading through the code and the changes here made me very curious about this snippet: https://github.com/cult-of-coders/redis-oplog/commit/df7ece3fea30e52bd7d236ff3fbca62eef0fd68c#diff-20ded112a1c5c61da0cb2325b5671e12 https://github.com/cult-of-coders/redis-oplog/blob/df7ece3fea30e52bd7d236ff3fbca62eef0fd68c/lib/mongo/ObserveMultiplex.js#L215-L228 So ... the callback is checked to be the string `removed` and...
p.s. This is a copy of https://github.com/meteor/meteor/issues/10443, because it also applies to the library here. Maybe you'll find a way which differs from the meteor core ...
I could confirm that both, the update and the remove notification, are received in the correct order, but I expect that the document already was removed when updating, which is...
I've checked, it still is an issue using the code above.
@nick-gudumac This should be fixed in version 2.0.0. Please also try switching to my fork https://github.com/simonsimcity/meteor-job-collection which adds support for Meteor
Just FYI, I think it's extremely important for this issue to have a deep understanding of the event loop: * https://www.youtube.com/watch?v=PNa9OMajw9w * https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/ The callbacks, set by `async-hooks` are called...
I personally would go for the function `Roles.removeScope()` in the first use-cases, and `Roles.setUserRoles()` for the second and third (there in combination with the option `anyScope`). It might be weird...
Well, it's not weird to have the two collections. The collection `Meteor.roles` stores the existance of a role, and `Meteor.roleAssignment` stores the assignment - the connection between a role and...
The documentation there still shows the API of v1 🙈- the function `Roles.removeScope()` was added as part of v2. A ticket has been opened to discuss which version should be...