-
-
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
unloadRecord is not under as much test coverage as we think it is #5472
Comments
@fivetanley I suspect this is why our Also related: #5006 |
Hello, I was wondering if this issue is still open? I'm a beginning and would be interested in learning more! |
Hi! I tried the latest ember-data version (3.2.0-beta.2) and the problem described here #5328 is still here. I'm stuck in 2.12 because of this.
After that, I get a bunch of 404, ember data is trying to get the record again. |
@Gabbyjose we're still working on this one, I've added some tests but we're not quite done. Sorry for not getting back to you sooner, last month was a bit... out there. If you'd still like to help I'd love to pair with you! |
@runspired no worries at all - crazy what happened! i'm definitely still happy to take a stab at this and work with you. please let me know what works best for you! |
@Gabbyjose awesome to hear! Is there a good time tomorrow to sync for 30 minutes or so? I'm on Pacific Time. You can find me on Slack/Discord/Twitter/Gmail as @runspired if that's easier to chat to set something up. |
@runspired Thank you for sharing your code. I tried it and it seems to work just fine :) I'm just worried about relationship without inverse ( |
I think I have one of the scenarios that is not covered. I am trying to upgrade from 2.18, in which I have good, passing test coverage. I've ruled out a couple of issues (#5517, ember-fastboot/ember-cli-fastboot#223) But have eventually ended up here. |
@amk221 if you can describe it, that would be awesome! There are a couple of known outstanding issues / areas of coverage needed, but most of the ones above have been added. |
I think there are a couple of things, all demo'd in the above repo.
|
The following PRs were created or include tests that address this:
#5400 should be investigated for additional coverage. Closing as I think our coverage gap is no longer so severe. |
I recently dove into a few scenarios where unloadRecord was behaving badly but which seemed as though they should have failed tests. I discovered:
deleteRecord
anddestroyRecord
scenariosdestroyRecord
+unloadRecord
moves the record to an empty non-deleted, non-destroyed (simply non-loaded) state 😱createRecord
scenarios where relationships are involvedThe text was updated successfully, but these errors were encountered: