Skip to content
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

fix relationships with links #5256

Closed
wants to merge 5 commits into from

Conversation

BryanCrotaz
Copy link
Contributor

@BryanCrotaz BryanCrotaz commented Nov 12, 2017

Fix issue #5209 and #5211

when one end of a relationship is marked {inverse:null} keep the two relationships separate in the cache and don't create the ":" cache entry
minor optimisation too in relationship-payloads.js

In RelationshipPayloads, don't overwrite an inverse relationship if it's got links instead of data

Added ember-cli-babel polyfill to allow async/await in tests for clarity

when one end of a relationship is marked {inverse:null} keep the two relationships separate in the cache
minor optimisation too
Don't overwrite links in cached payload when populating the other side of a relationship
@BryanCrotaz BryanCrotaz changed the title fix relationships where one end is inverse:null fix relationships where one end is inverse:null and has-many with links Nov 12, 2017
@BryanCrotaz BryanCrotaz changed the title fix relationships where one end is inverse:null and has-many with links fix relationships with links Nov 12, 2017
@BryanCrotaz
Copy link
Contributor Author

It's failing in the production environment as we've both added async-await. But I can't see where that's been done in master in order to avoid the clash

@BryanCrotaz
Copy link
Contributor Author

Shame, but removing async/await fixed it

@BryanCrotaz
Copy link
Contributor Author

Can't get clean code, so creating a new PR #5257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant