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 failing test on master by adding an invalid inverse to trigger th… #5370

Merged
merged 2 commits into from
Mar 4, 2018

Conversation

bmac
Copy link
Member

@bmac bmac commented Mar 2, 2018

…e expected error

@runspired I'd like you eyes on this since I don't have a great mental model of all the moving pieces in this part of the code. It seems like Ember Data is already detecting there is no valid inverse for the comment relationship so it never generates an inverseMeta. So I added an explicit inverse that is invalid (because the other side has inverse: null) to trigger the expected error.

@rwjblue rwjblue merged commit 1c09f9f into emberjs:master Mar 4, 2018
@bmac bmac deleted the fix-master branch March 4, 2018 18:56
@runspired
Copy link
Contributor

@bmac just to follow up:

The thing this test was intended to capture (once inverse: null is present) was indeed addressed here. This is the correct fix for this test.

However, investigating this made me realize there is still an uncovered case, I will PR a new test for it.

@bmac
Copy link
Member Author

bmac commented Mar 5, 2018

Thanks for the follow up @runspired.

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.

None yet

3 participants