-
-
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
Add failing test when changing parent and unloading original parent #5571
Conversation
At first glance this looks good, will want to poke around at it locally before merging to gain more confidence that this is the correct fix. |
@runspired Got it. Thank you. |
Hi @runspired just wanted to ask if there are updates on this bug. Thank you! |
@lsg-braymon sadly I didn't spend the time to review this yet, thanks for the reminder! Will attach some labels so I don't forget :P |
I work with @lsg-braymon and have just rebased this PR against the latest master and added some more detail into the commit message. Is there anything we can do to help with getting this fix included as part of an upcoming release? Thanks! |
packages/store/addon/-private/system/relationships/state/relationship.ts
Outdated
Show resolved
Hide resolved
…rent of a child record Fixes an issue where changing the parent of a child record then unloading the original parent incorrectly resets the child association to null. See PR #5571.
Thanks heaps, is this change a candidate for inclusion in the current 3.10 betas? |
@richard-viney yes, but I haven’t gotten publishing to work correctly with the monorepo just yet. Need to tweak the tsconfig some more so that prepublish works. If you have a moment to help on that this weekend I’d love it cause I don’t have much time ❤️ TL;DR npm prebublish command needs to work correctly in each individual package and is broken in a few atm. |
Sure thing, I'll take a look later today |
@richard-viney the beta branch has some work towards it to bring back to master. Trying to release last night was an adventure 😂 |
@richard-viney ended up with a little time to poke at it and think I resolved the issues :) Thank you for the offer, if you do have some time and want to contribute I left some notes in the fix-pr of some things we need to still do to the prepublish infra prior to our next stable release. |
Bug wherein changing the parent of a child then unloading the original parent sets the child association to
null
.Setup:
Current work around: