-
Notifications
You must be signed in to change notification settings - Fork 31
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
Missing remote relationship after offline retry #267
Comments
Makes sense as retries will attempt to send the exact same original request. Changes after that are not captured. I'm not sure, maybe we should re-serialize the updated model |
Need to decide whether to re-serialize the updated model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, when creating objects with relationships directly one after the other, or in offline mode, the remote server does not have the relationship after posting data via the retry offlineOperation.
I have two models. Crop and Cultivar. Crops can have multiple Cultivars and Cultivars may be assigned to a Crop.
When I do the following only the local repository has the relationship saved. The remote one does not save any id for the corresponding crop:
When a change the function to async and add
await
before each save the relation is stored correctly.But, when I shut down the remote server and the offline functionality retries both posts. The crop id is empty for the
newCultivar
.Summary:
The desiged objects should look like this:
but in offline mode or without using async + await I get this instead:
I appreciate any help.
The text was updated successfully, but these errors were encountered: