{"action":"opened","issue":{"url":"https://api.github.com/repos/sdl/dxa-web-application-dotnet/issues/69","repository_url":"https://api.github.com/repos/sdl/dxa-web-application-dotnet","labels_url":"https://api.github.com/repos/sdl/dxa-web-application-dotnet/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/sdl/dxa-web-application-dotnet/issues/69/comments","events_url":"https://api.github.com/repos/sdl/dxa-web-application-dotnet/issues/69/events","html_url":"https://github.com/sdl/dxa-web-application-dotnet/issues/69","id":343761733,"node_id":"MDU6SXNzdWUzNDM3NjE3MzM=","number":69,"title":"Model Service (R2) ComponentTemplate missing from DCP(s)","user":{"login":"Vouzamo","id":5550266,"node_id":"MDQ6VXNlcjU1NTAyNjY=","avatar_url":"https://avatars2.githubusercontent.com/u/5550266?v=4","gravatar_id":"","url":"https://api.github.com/users/Vouzamo","html_url":"https://github.com/Vouzamo","followers_url":"https://api.github.com/users/Vouzamo/followers","following_url":"https://api.github.com/users/Vouzamo/following{/other_user}","gists_url":"https://api.github.com/users/Vouzamo/gists{/gist_id}","starred_url":"https://api.github.com/users/Vouzamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vouzamo/subscriptions","organizations_url":"https://api.github.com/users/Vouzamo/orgs","repos_url":"https://api.github.com/users/Vouzamo/repos","events_url":"https://api.github.com/users/Vouzamo/events{/privacy}","received_events_url":"https://api.github.com/users/Vouzamo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-23T19:19:52Z","updated_at":"2018-07-23T19:19:52Z","closed_at":null,"author_association":"NONE","body":"When you have a DCP on a page, the preview just has an id reference in the EntityModelData in the form \"[component item id]-[template item id]\".\r\n\r\nThis makes sense and I understand the purpose of normalizing the model.\r\n\r\nHowever, when I get the published Page from the model service it replaces the reference with EntityModelData to save me a round trip to the database but doesn't include the ComponentTemplate so I can't access the template metadata.\r\n\r\nIs this by design or a bug? I would have thought the model service should have assigned ComponentTemplate before returning the model as it would for an embedded Component Template."}}
{"actor":{"display_login":"Vouzamo"}}