You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
DualStorage uses UUIDs as the temporary id generator. And detects the id being a temporary id as one that looks like a UUID. This means that it's impossible to use DualStorage out of the box if the server also uses UUIDs as the permanent id. I can see this being a very common use case. What ends up happening is that DualStorage never issues "remote" server commands when inserting/updating/deleting items. You should change it to use temporary ids that are something more unique instead of using a standard for real ids.
In order to get this to work, I had to override the temporary id generation and check. I just prepended a "t" to a UUID so it was a different length than a normal UUID.
I like your solution and agree that this is a problem. We cannot prepend a
t and have it be backward compatible, but it will be backward compatible if
the length is still 36 characters, like if the first character was a T
rather than a hex character. If you'd like to see this in the official
repo, go ahead and make a pull request. If you run make and update
CHANGES.md, then I can accept it directly. Thanks!
DualStorage uses UUIDs as the temporary id generator. And detects the id being a temporary id as one that looks like a UUID. This means that it's impossible to use DualStorage out of the box if the server also uses UUIDs as the permanent id. I can see this being a very common use case. What ends up happening is that DualStorage never issues "remote" server commands when inserting/updating/deleting items. You should change it to use temporary ids that are something more unique instead of using a standard for real ids.
In order to get this to work, I had to override the temporary id generation and check. I just prepended a "t" to a UUID so it was a different length than a normal UUID.
The text was updated successfully, but these errors were encountered: