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

Failing test for unloadAll scenario with hasMany relationship that ends up wrong #5572

Closed
wants to merge 1 commit into from

Conversation

lukemelia
Copy link
Member

This is a simplified failing test for an issue we experienced in our app.

The test passes when an optimization is commented out, specifically the conditional here:

if (relationshipExisted || this.isPolymorphic) {

We're happy to work on a fix but are not sure where to go from here.

@runspired
Copy link
Contributor

@lukemelia thanks! I'll investigate what the next step is

@lukemelia
Copy link
Member Author

Cool @runspired. FWIW, we decided to temporarily run with a fork that has the optimization line I referenced commented out.

@runspired
Copy link
Contributor

@lukemelia any chance you got stuck here at some point? I doubt this is still a bug but if it is happy to get the test caught up and a fix investigated. Because of the way the relationship layer and unload works today this test probably isn't a meaningful addition anymore unless there's still a known issue it manages to catch

@runspired runspired closed this Dec 7, 2022
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.

2 participants