Open marshall007 opened 10 years ago
After looking into this further, I think this test case fails because the existing behavior is bugged. Calling .all()
or .where()
with no parameters is going to default to { lazy: false }
. As a result, isn't the expected behavior in this test to eagerly fetch the hasOne
relationships (i.e. the GridController
associated with each system) as well?
+1 I'd love to drop the dependency to async and meld isn't used anywhere either.
It appears that
async
is relied upon for just two calls toasync.series()
. Here's my attempt at replicating this behavior using a promise chain. There's still one failing test case that I can't get to pass so I'm hoping someone more familiar with the internals can take a look: