{"action":"opened","issue":{"url":"https://api.github.com/repos/AzureCAT-GSI/DevCamp/issues/119","repository_url":"https://api.github.com/repos/AzureCAT-GSI/DevCamp","labels_url":"https://api.github.com/repos/AzureCAT-GSI/DevCamp/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/AzureCAT-GSI/DevCamp/issues/119/comments","events_url":"https://api.github.com/repos/AzureCAT-GSI/DevCamp/issues/119/events","html_url":"https://github.com/AzureCAT-GSI/DevCamp/issues/119","id":194327531,"number":119,"title":"HOL - NodeJS - 02 - Ex 1 - Unclear explanation with getIncidents() call placement","user":{"login":"mrdemc","id":1822737,"avatar_url":"https://avatars.githubusercontent.com/u/1822737?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdemc","html_url":"https://github.com/mrdemc","followers_url":"https://api.github.com/users/mrdemc/followers","following_url":"https://api.github.com/users/mrdemc/following{/other_user}","gists_url":"https://api.github.com/users/mrdemc/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdemc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdemc/subscriptions","organizations_url":"https://api.github.com/users/mrdemc/orgs","repos_url":"https://api.github.com/users/mrdemc/repos","events_url":"https://api.github.com/users/mrdemc/events{/privacy}","received_events_url":"https://api.github.com/users/mrdemc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T12:47:58Z","updated_at":"2016-12-08T12:47:58Z","closed_at":null,"body":"Below code should be included in router.get function and should therefor replace the original code:\r\n\r\nOriginal\r\n```javascript\r\n// Render view\r\n    res.render('dashboard', {\r\n        title: 'Outage Dashboard'\r\n    });\r\n```\r\nReplacement:\r\n```javascript\r\n    // Query the API for incident data\r\n    getIncidents().then(function (incidents) {\r\n\r\n        // Render view\r\n        res.render('dashboard', {\r\n            title: 'Outage Dashboard',\r\n            incidents: incidents\r\n        });\r\n\r\n    });\r\n    ```\r\n\r\n\r\nThis may not be explained clearly enough in the current explanation on line 146 +/-"}}
{"actor":{"display_login":"mrdemc"}}