-
Notifications
You must be signed in to change notification settings - Fork 9
Restore always returns 0 #14
Comments
I'll look into it as soon as possible |
Great, thanks! |
So what I think is going on here is that if you publish a set of posts if will only publish the posts which aren't soft-removed. Then you soft remove 1 post and that post will no longer be published to the client, because it's soft-removed. Then when you restore that same post using it's I'm looking into re-implmenting the |
Ah yes that makes sense! |
The reason that this works this way is because I allow I'll have a closer look at how |
I've given this more thought. I think you should not waste time looking into this. If we are on the client and we don't have the id of a removed item by normal means, we don't need to be able to recover it by normal means either. If we are on the client and know the id of a softremoved document, that actually means that we've deliberately subscribed to a publication that sends down those documents to the client, so I guess the client can use a server method for this. But, I do believe that this should be pointed out in the documentation as a caveat. |
I'm just gonna benchmark this against There's a small change I've already benchmarked this against But as you said, I need to update documentation either way. |
👍 |
I've tried to get this fixed, but I'm pretty sure I'll need to do some fundamental changes which are breaking changes in the behaviour of I'll try and get this done the coming weekend, hackathon time ;) |
Let me know if there's anything I can do to help :) |
After the changes I plan, you won't be able to restore or softRemove document from client unless the documents have been published to the client. This should sort out the restore returning 0 even if the restore was successful thing, but it'll be breaking changes, as people might be using the restore by id passthrough behaviour that's in play now. I just need to benchmark against remove first too. |
Well, I'd like to repeat this
You really don't have to cover all the edge cases. Even though I requested this, I now know that my reasoning was based on false pretense. |
Restoring a document returns 0 even on successful restore whereas it should be returning 1 just like it does when softremoved.
The text was updated successfully, but these errors were encountered: