-
Notifications
You must be signed in to change notification settings - Fork 47
links object in POST response dirtying relationship #7
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
Comments
What is the issue then .. are you using keepOnlyChanged mixin? and want to not resend this relationship? |
Yes, am using the mixin and prefer not to send this relationship |
ok .. you want to dig in there and find out why this is being flagged as changed? or you want me to? |
Yeah am up for helping with this. Raised the issue to know if there was any existing workaround to this. Will do a PR once I get to the bottom of it. |
I have not seen this because I did not test with links payload .. so just needs a test or two to figure out what is going on. But I am not sure it is fixable though .. but if you dig in and see strange things, let me know. I will bring out the flashlight and goggles. |
Say I do a POST to create a photo with a photographer relationship,
The following JSON API compliant response to the POST makes the photographer relationship dirty (owing to the links object in the response),
This means that a subsequent PATCH operation on this record (triggered by an update to title for example) will pass the photographer relationship in the request, despite the client not modifying it. Is there a way this can be avoided?
The text was updated successfully, but these errors were encountered: