-
Notifications
You must be signed in to change notification settings - Fork 31
Description
The model homepage-item is expecting records that implement the itemizeable type, however no records do.
The included polymorphic test only checks whether these records can be loaded, it doesn't check the hasMany relationships state.
While working on relationships in ember-data I recently noticed that our polymorphic assertion does not currently run for canonical/remote state updates (but does run for all forms of local state updates). Adding this missing assertion causes this test to fail.
I'm opening this issue because while I think the test should correctly implement the current polymorphic setup requirements (e.g. post and comment should implement itemizeable via shared base class or mixin) the current work I am doing is intended to firm up some things that would allow us to utilize polymorphic relationships without mixins or inheritance. E.g. in a future state, because this relationship has no inverse defined on post or comment (or even on the itemizeable mixin) then this setup could possibly be considered correct.
See warp-drive-data/warp-drive#7491 for the PR which uncovered this.