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
Using reference fields inside an embedded_list does not appear to work correctly.
Reading the guide, it's not clear whether this is supported behaviour:
Ng-admin renders embedded_list fields as a datagrid in read context (showView), and as a list of embedded forms in write context (creationView and editionView). This won't issue any additional query to the REST API, since the related entities are already embedded.
And in practice this seems to be inconsistently implemented:
showView does not perform any retrievals of reference objects for rendering
creationView and editionView both load listings and perform remote completion as expected
editionView does not retrieve the reference object for rendering. However if the object is returned in the listing of objects used to render the dropdown, this does work as expected.
If this is not supported configuration, then there are no errors thrown from the nga object when providing an invalid configuration.
I'm hoping the intent is for this to work, as most of the functionality works already. In which case it looks like this might be a small bug rendering reference fields in the scope of an embedded_list.
If not, it would be good to clarify the documentation and possibly generate a warning or error from the configuration API in this situation.
The text was updated successfully, but these errors were encountered:
ng-admin version: 0.9.1
Using
reference
fields inside anembedded_list
does not appear to work correctly.Reading the guide, it's not clear whether this is supported behaviour:
And in practice this seems to be inconsistently implemented:
showView
does not perform any retrievals ofreference
objects for renderingcreationView
andeditionView
both load listings and perform remote completion as expectededitionView
does not retrieve thereference
object for rendering. However if the object is returned in the listing of objects used to render the dropdown, this does work as expected.nga
object when providing an invalid configuration.I'm hoping the intent is for this to work, as most of the functionality works already. In which case it looks like this might be a small bug rendering
reference
fields in the scope of anembedded_list
.If not, it would be good to clarify the documentation and possibly generate a warning or error from the configuration API in this situation.
The text was updated successfully, but these errors were encountered: