{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/ng-admin/issues/1145","repository_url":"https://api.github.com/repos/marmelab/ng-admin","labels_url":"https://api.github.com/repos/marmelab/ng-admin/issues/1145/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/ng-admin/issues/1145/comments","events_url":"https://api.github.com/repos/marmelab/ng-admin/issues/1145/events","html_url":"https://github.com/marmelab/ng-admin/issues/1145","id":163786002,"number":1145,"title":"[Bug] Reference fields do not work inside Embedded List","user":{"login":"dowlingw","id":1167455,"avatar_url":"https://avatars.githubusercontent.com/u/1167455?v=3","gravatar_id":"","url":"https://api.github.com/users/dowlingw","html_url":"https://github.com/dowlingw","followers_url":"https://api.github.com/users/dowlingw/followers","following_url":"https://api.github.com/users/dowlingw/following{/other_user}","gists_url":"https://api.github.com/users/dowlingw/gists{/gist_id}","starred_url":"https://api.github.com/users/dowlingw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dowlingw/subscriptions","organizations_url":"https://api.github.com/users/dowlingw/orgs","repos_url":"https://api.github.com/users/dowlingw/repos","events_url":"https://api.github.com/users/dowlingw/events{/privacy}","received_events_url":"https://api.github.com/users/dowlingw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-05T07:17:55Z","updated_at":"2016-07-07T07:32:16Z","closed_at":"2016-07-07T07:32:16Z","body":"ng-admin version: 0.9.1\r\n\r\nUsing `reference` fields inside an `embedded_list` does not appear to work correctly.\r\n\r\nReading the guide, it's not clear whether this is supported behaviour:\r\n\r\n> 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.\r\n\r\nAnd in practice this seems to be inconsistently implemented:\r\n\r\n1. `showView` does not perform any retrievals of `reference` objects for rendering\r\n2. `creationView` and `editionView` both load listings and perform remote completion as expected\r\n3. `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.\r\n4. If this is not supported configuration, then there are no errors thrown from the `nga` object when providing an invalid configuration.\r\n\r\nI'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`.\r\n\r\nIf not, it would be good to clarify the documentation and possibly generate a warning or error from the configuration API in this situation."},"comment":{"url":"https://api.github.com/repos/marmelab/ng-admin/issues/comments/231004392","html_url":"https://github.com/marmelab/ng-admin/issues/1145#issuecomment-231004392","issue_url":"https://api.github.com/repos/marmelab/ng-admin/issues/1145","id":231004392,"user":{"login":"dowlingw","id":1167455,"avatar_url":"https://avatars.githubusercontent.com/u/1167455?v=3","gravatar_id":"","url":"https://api.github.com/users/dowlingw","html_url":"https://github.com/dowlingw","followers_url":"https://api.github.com/users/dowlingw/followers","following_url":"https://api.github.com/users/dowlingw/following{/other_user}","gists_url":"https://api.github.com/users/dowlingw/gists{/gist_id}","starred_url":"https://api.github.com/users/dowlingw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dowlingw/subscriptions","organizations_url":"https://api.github.com/users/dowlingw/orgs","repos_url":"https://api.github.com/users/dowlingw/repos","events_url":"https://api.github.com/users/dowlingw/events{/privacy}","received_events_url":"https://api.github.com/users/dowlingw/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T07:32:16Z","updated_at":"2016-07-07T07:32:16Z","body":"Yes, this looks like a duplicate of #786 \r\nClosing and adding notes there."}}
{"actor":{"display_login":"dowlingw"}}