{"action":"created","issue":{"url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/479","repository_url":"https://api.github.com/repos/Financial-Times/origami-build-tools","labels_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/479/comments","events_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/479/events","html_url":"https://github.com/Financial-Times/origami-build-tools/pull/479","id":254341240,"number":479,"title":"Allow remote demo data","user":{"login":"notlee","id":10405691,"avatar_url":"https://avatars3.githubusercontent.com/u/10405691?v=4","gravatar_id":"","url":"https://api.github.com/users/notlee","html_url":"https://github.com/notlee","followers_url":"https://api.github.com/users/notlee/followers","following_url":"https://api.github.com/users/notlee/following{/other_user}","gists_url":"https://api.github.com/users/notlee/gists{/gist_id}","starred_url":"https://api.github.com/users/notlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notlee/subscriptions","organizations_url":"https://api.github.com/users/notlee/orgs","repos_url":"https://api.github.com/users/notlee/repos","events_url":"https://api.github.com/users/notlee/events{/privacy}","received_events_url":"https://api.github.com/users/notlee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T13:50:06Z","updated_at":"2017-09-14T14:24:15Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/Financial-Times/origami-build-tools/pulls/479","html_url":"https://github.com/Financial-Times/origami-build-tools/pull/479","diff_url":"https://github.com/Financial-Times/origami-build-tools/pull/479.diff","patch_url":"https://github.com/Financial-Times/origami-build-tools/pull/479.patch"},"body":"In some cases we would like to use external data when building component demos so our demos match reality. For example in `o-footer`:\r\nhttps://github.com/Financial-Times/o-footer/issues/81\r\n\r\nFor reliability of build this should be used sparingly. The `o-footer` example would depend on the navigation service, a \"platinum\" application.\r\n\r\n\r\nE.g `origami.json` `demos` config using a remote data source (new ability):\r\n```\r\n{\r\n    \"name\": \"footer\",\r\n    \"title\": \"Dark theme\",\r\n    \"template\": \"demos/src/footer-dark.mustache\",\r\n    \"data\": \"https://www.ft.com/__origami/service/navigation/v2/menus/footer/?source=test\",\r\n    \"description\": \"This is the standard masterbrand footer used on most pages.\"\r\n}\r\n```\r\n\r\nE.g `origami.json` `demos` config using a local data source (current):\r\n```\r\n{\r\n    \"name\": \"footer\",\r\n    \"title\": \"Dark theme\",\r\n    \"template\": \"demos/src/footer-dark.mustache\",\r\n    \"data\": \"demos/src/footer.json\",\r\n    \"description\": \"This is the standard masterbrand footer used on most pages.\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/comments/329498471","html_url":"https://github.com/Financial-Times/origami-build-tools/pull/479#issuecomment-329498471","issue_url":"https://api.github.com/repos/Financial-Times/origami-build-tools/issues/479","id":329498471,"user":{"login":"notlee","id":10405691,"avatar_url":"https://avatars3.githubusercontent.com/u/10405691?v=4","gravatar_id":"","url":"https://api.github.com/users/notlee","html_url":"https://github.com/notlee","followers_url":"https://api.github.com/users/notlee/followers","following_url":"https://api.github.com/users/notlee/following{/other_user}","gists_url":"https://api.github.com/users/notlee/gists{/gist_id}","starred_url":"https://api.github.com/users/notlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notlee/subscriptions","organizations_url":"https://api.github.com/users/notlee/orgs","repos_url":"https://api.github.com/users/notlee/repos","events_url":"https://api.github.com/users/notlee/events{/privacy}","received_events_url":"https://api.github.com/users/notlee/received_events","type":"User","site_admin":false},"created_at":"2017-09-14T14:24:15Z","updated_at":"2017-09-14T14:24:15Z","author_association":"NONE","body":"@rowanmanning I made a couple of tweaks that should address your comments."}}
{"actor":{"display_login":"notlee"}}