You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
afterModel: function(model) {
if (model) {
return model.user.get('invitations').then((invitations) => (
Ember.RSVP.all(
invitations.map((invitation) => (
invitation.get('group').then(group => {
return group.reload(); // makes the test hang
})
))
)
));
}
},
I have a Twiddle which shows the rest of the relevant code (minus the adapter and the test), but I suspect it's not really necessary.
From our email exchange, I'll quote:
Apparently, when you coalesceFindRequests, the AJAX request isn’t immediately started, thus when the waiter checks it doesn’t see any requests in flight and presumes that things are “settled”. The test is permitted, incorrectly, to continue.
Disabling coalesceFindRequests allows the test to run!
At this point, it's probably best for Matthew to chime in with his knowledge and suggestions for how to fix the issue 😁
The text was updated successfully, but these errors were encountered:
@fivetanley we talked about adding a waiter for ember-data separately from this, but it seems coalesceFindRequests is another spot where ember-data should be expressing waiting itself instead of relying on the jQuery ajax system.
Hey!
I ran into a bug recently, which @mixonic helped me with. Essentially, enabling
coalesceFindRequests
caused one of my acceptance tests to hang.The test:
The offending code:
I have a Twiddle which shows the rest of the relevant code (minus the adapter and the test), but I suspect it's not really necessary.
From our email exchange, I'll quote:
Disabling
coalesceFindRequests
allows the test to run!At this point, it's probably best for Matthew to chime in with his knowledge and suggestions for how to fix the issue 😁
The text was updated successfully, but these errors were encountered: