-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Self-Referent Relationship in Save Response Blows Up Save #7265
Comments
…ent relationship in save response blows up)
…in Save Response Blows Up Save). Tests the case where a save-response returns a relationship that includes the self-id. This passes in master, but is broken in 3.12 LTS
This can be resolved in your app by reflecting the record identifier's RFC: https://github.com/emberjs/rfcs/blob/master/text/0403-ember-data-identifiers.md |
Going to reopen this since the proposed fix was simple enough it seems ok to add so that fewer folks need to worry about adding lid for a case we can potentially trivially cover. |
Closing since this works on master without the need for reflecting the lid back. |
Reproduction
See the Ember Twiddle at:
https://ember-twiddle.com/5fd0892440b64337440c13d4317ed295
The component provides a 'Save' button and instructions (clicking the 'Save' will immediately cause the error).
Description
We have a case where we:
For example, our model looks something like this:
and the save returns data something like this:
The Ember Data sequence of events appears to be:
var existingInternalModel = this.peekIdOnly(modelName, id);
Versions
Since we do not use yarn, we cannot run the indicated commands to get versions - however, here is what package.json/package-lock.json has to say about the packages of interest:
The text was updated successfully, but these errors were encountered: