-
Notifications
You must be signed in to change notification settings - Fork 27
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
[v2] Possible marshal/unmarshaling bug #64
Comments
I've finally tracked this issue down - I implement the PropertyLoadSaver interface and during migrations I may drop a field from my structs and thus remove it from the PropertyList slice prior to calling I'm not sure what's the best way to address this. I don't think that updating entities using this interface is bad practice perse, and we can't modify the signature of the function so maybe this can be supported another way? What do you think of the following:
Alternatively, push this back on the user (me in this case) to explicitly save the new entity if its updated during a |
Actually, I think the best solution here is to call No dumb hacks like I described, no user "gotchas" like copying the list before modifying or must save after update when it's not required. |
I've been getting warnings from the logger I placed in the
onError
function:nds:loadCache setValue: datastore: cannot load field "rg" into a "models.UserAccount": multiple-valued property requires a slice field type
I think there's an opportunity to update the tests to ensure that any logs made are expected, otherwise to fail. This may help uncover situations in which we think we're pulling from the cache but are really failing at a later step (e.g.
setValue
) and falling back to the datastore.The text was updated successfully, but these errors were encountered: