data icon indicating copy to clipboard operation
data copied to clipboard

Failed test in ilios-frontend suggests potential bug in relationship work

Open runspired opened this issue 4 years ago • 1 comments

The setup is roughly that an async hasMany relationship knows its canonical membership but the related records are not loaded yet. Before model.anAsyncHasMany.length would give the length of the membership, now it will result in 0.

I suspect this is because length now calculates more accurately from the filtered ManyArray state (which hides any records that aren't loaded locally). It is likely the more correct behavior but we should investigate and confirm this is the source of the change. Test fix in https://github.com/ilios/frontend/pull/6120 illustrates this change.

runspired avatar Jun 22 '21 19:06 runspired

I'm realizing this is likely related to #8024

runspired avatar Aug 12 '22 00:08 runspired

closing in favor of #7529

runspired avatar Dec 07 '22 10:12 runspired