{"action":"created","comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/comments/46449486","id":46449486,"diff_hunk":"@@ -149,18 +149,20 @@ function searchSubscription(user, regions, callback) {\n \n /**\n  * notify to region list for a change in region\n- * @param {String} region\n+ * @param {Object} region\n  * @param {function} notifyCallback\n  */\n function notify(region, notifyCallback) {\n \n-    logger.info({op: 'subscribe#notify'}, 'notify to region: ' + region);\n+    var regionName = region.node,\n+        regionStatus = region.status;\n \n+    logger.info({op: 'subscribe#notify'}, 'notify to region: ' + regionName);\n \n     var payloadString = 'name_from= fi-health sanity&';\n         payloadString += 'email_from=' + config.mailman.emailFrom + '&';\n-        payloadString += 'subject=Status changed for region ' + region + '&';\n-        payloadString += 'body=Status changed for region ' + region;\n+        payloadString += 'subject=Status changed for region ' + regionName + '&';\n+        payloadString += 'body=Status changed to ' + regionStatus + ' for region ' + regionName;\n ","path":"dashboard/lib/routes/subscribe.js","position":22,"original_position":22,"commit_id":"ae1a219aa562526685e8bf8b99fe867088ac8c6c","original_commit_id":"ae1a219aa562526685e8bf8b99fe867088ac8c6c","user":{"login":"jframos","id":8695972,"avatar_url":"https://avatars.githubusercontent.com/u/8695972?v=3","gravatar_id":"","url":"https://api.github.com/users/jframos","html_url":"https://github.com/jframos","followers_url":"https://api.github.com/users/jframos/followers","following_url":"https://api.github.com/users/jframos/following{/other_user}","gists_url":"https://api.github.com/users/jframos/gists{/gist_id}","starred_url":"https://api.github.com/users/jframos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jframos/subscriptions","organizations_url":"https://api.github.com/users/jframos/orgs","repos_url":"https://api.github.com/users/jframos/repos","events_url":"https://api.github.com/users/jframos/events{/privacy}","received_events_url":"https://api.github.com/users/jframos/received_events","type":"User","site_admin":false},"body":"Some questions that I think are interesting to be considered:\r\n- Why don't we use **HTML** to put some style to the 'status'?\r\n- Why don't we send **timestamp** and **elapsed time** information?","created_at":"2015-12-02T17:58:39Z","updated_at":"2015-12-02T17:58:39Z","html_url":"https://github.com/telefonicaid/fiware-health/pull/216#discussion_r46449486","pull_request_url":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/216","_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/comments/46449486"},"html":{"href":"https://github.com/telefonicaid/fiware-health/pull/216#discussion_r46449486"},"pull_request":{"href":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/216"}}},"pull_request":{"url":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/216","id":52404427,"html_url":"https://github.com/telefonicaid/fiware-health/pull/216","diff_url":"https://github.com/telefonicaid/fiware-health/pull/216.diff","patch_url":"https://github.com/telefonicaid/fiware-health/pull/216.patch","issue_url":"https://api.github.com/repos/telefonicaid/fiware-health/issues/216","number":216,"state":"open","locked":false,"title":"[US in progress] Add new information to the mails sent to subscribers","user":{"login":"pratid","id":2345596,"avatar_url":"https://avatars.githubusercontent.com/u/2345596?v=3","gravatar_id":"","url":"https://api.github.com/users/pratid","html_url":"https://github.com/pratid","followers_url":"https://api.github.com/users/pratid/followers","following_url":"https://api.github.com/users/pratid/following{/other_user}","gists_url":"https://api.github.com/users/pratid/gists{/gist_id}","starred_url":"https://api.github.com/users/pratid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratid/subscriptions","organizations_url":"https://api.github.com/users/pratid/orgs","repos_url":"https://api.github.com/users/pratid/repos","events_url":"https://api.github.com/users/pratid/events{/privacy}","received_events_url":"https://api.github.com/users/pratid/received_events","type":"User","site_admin":false},"body":"#### Reviewers\r\n@flopezag @jframos \r\n\r\n#### Description\r\n- Send the new region status (Sanity Status) as part of each mail notification (subtask 5653)\r\n\r\n#### Testing\r\nVerified.","created_at":"2015-12-02T14:47:47Z","updated_at":"2015-12-02T17:58:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52bc9ccee9c2fb3482079c32aaf722c12808a9f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/216/commits","review_comments_url":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/216/comments","review_comment_url":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-health/issues/216/comments","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-health/statuses/ae1a219aa562526685e8bf8b99fe867088ac8c6c","head":{"label":"telefonicaid:feature/5640_addition_info_in_mails","ref":"feature/5640_addition_info_in_mails","sha":"ae1a219aa562526685e8bf8b99fe867088ac8c6c","user":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"repo":{"id":30652552,"name":"fiware-health","full_name":"telefonicaid/fiware-health","owner":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telefonicaid/fiware-health","description":"Program to check the functionality of each FIWARE Lab node.","fork":false,"url":"https://api.github.com/repos/telefonicaid/fiware-health","forks_url":"https://api.github.com/repos/telefonicaid/fiware-health/forks","keys_url":"https://api.github.com/repos/telefonicaid/fiware-health/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telefonicaid/fiware-health/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telefonicaid/fiware-health/teams","hooks_url":"https://api.github.com/repos/telefonicaid/fiware-health/hooks","issue_events_url":"https://api.github.com/repos/telefonicaid/fiware-health/issues/events{/number}","events_url":"https://api.github.com/repos/telefonicaid/fiware-health/events","assignees_url":"https://api.github.com/repos/telefonicaid/fiware-health/assignees{/user}","branches_url":"https://api.github.com/repos/telefonicaid/fiware-health/branches{/branch}","tags_url":"https://api.github.com/repos/telefonicaid/fiware-health/tags","blobs_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/refs{/sha}","trees_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-health/statuses/{sha}","languages_url":"https://api.github.com/repos/telefonicaid/fiware-health/languages","stargazers_url":"https://api.github.com/repos/telefonicaid/fiware-health/stargazers","contributors_url":"https://api.github.com/repos/telefonicaid/fiware-health/contributors","subscribers_url":"https://api.github.com/repos/telefonicaid/fiware-health/subscribers","subscription_url":"https://api.github.com/repos/telefonicaid/fiware-health/subscription","commits_url":"https://api.github.com/repos/telefonicaid/fiware-health/commits{/sha}","git_commits_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/commits{/sha}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-health/comments{/number}","issue_comment_url":"https://api.github.com/repos/telefonicaid/fiware-health/issues/comments{/number}","contents_url":"https://api.github.com/repos/telefonicaid/fiware-health/contents/{+path}","compare_url":"https://api.github.com/repos/telefonicaid/fiware-health/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telefonicaid/fiware-health/merges","archive_url":"https://api.github.com/repos/telefonicaid/fiware-health/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telefonicaid/fiware-health/downloads","issues_url":"https://api.github.com/repos/telefonicaid/fiware-health/issues{/number}","pulls_url":"https://api.github.com/repos/telefonicaid/fiware-health/pulls{/number}","milestones_url":"https://api.github.com/repos/telefonicaid/fiware-health/milestones{/number}","notifications_url":"https://api.github.com/repos/telefonicaid/fiware-health/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telefonicaid/fiware-health/labels{/name}","releases_url":"https://api.github.com/repos/telefonicaid/fiware-health/releases{/id}","created_at":"2015-02-11T14:51:58Z","updated_at":"2015-05-07T12:29:16Z","pushed_at":"2015-12-02T17:02:40Z","git_url":"git://github.com/telefonicaid/fiware-health.git","ssh_url":"git@github.com:telefonicaid/fiware-health.git","clone_url":"https://github.com/telefonicaid/fiware-health.git","svn_url":"https://github.com/telefonicaid/fiware-health","homepage":null,"size":1552,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":2,"default_branch":"develop"}},"base":{"label":"telefonicaid:develop","ref":"develop","sha":"57a7a8108c27ee64f1ce929aa7b5bf8d7539262a","user":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"repo":{"id":30652552,"name":"fiware-health","full_name":"telefonicaid/fiware-health","owner":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telefonicaid/fiware-health","description":"Program to check the functionality of each FIWARE Lab node.","fork":false,"url":"https://api.github.com/repos/telefonicaid/fiware-health","forks_url":"https://api.github.com/repos/telefonicaid/fiware-health/forks","keys_url":"https://api.github.com/repos/telefonicaid/fiware-health/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telefonicaid/fiware-health/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telefonicaid/fiware-health/teams","hooks_url":"https://api.github.com/repos/telefonicaid/fiware-health/hooks","issue_events_url":"https://api.github.com/repos/telefonicaid/fiware-health/issues/events{/number}","events_url":"https://api.github.com/repos/telefonicaid/fiware-health/events","assignees_url":"https://api.github.com/repos/telefonicaid/fiware-health/assignees{/user}","branches_url":"https://api.github.com/repos/telefonicaid/fiware-health/branches{/branch}","tags_url":"https://api.github.com/repos/telefonicaid/fiware-health/tags","blobs_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/refs{/sha}","trees_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-health/statuses/{sha}","languages_url":"https://api.github.com/repos/telefonicaid/fiware-health/languages","stargazers_url":"https://api.github.com/repos/telefonicaid/fiware-health/stargazers","contributors_url":"https://api.github.com/repos/telefonicaid/fiware-health/contributors","subscribers_url":"https://api.github.com/repos/telefonicaid/fiware-health/subscribers","subscription_url":"https://api.github.com/repos/telefonicaid/fiware-health/subscription","commits_url":"https://api.github.com/repos/telefonicaid/fiware-health/commits{/sha}","git_commits_url":"https://api.github.com/repos/telefonicaid/fiware-health/git/commits{/sha}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-health/comments{/number}","issue_comment_url":"https://api.github.com/repos/telefonicaid/fiware-health/issues/comments{/number}","contents_url":"https://api.github.com/repos/telefonicaid/fiware-health/contents/{+path}","compare_url":"https://api.github.com/repos/telefonicaid/fiware-health/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telefonicaid/fiware-health/merges","archive_url":"https://api.github.com/repos/telefonicaid/fiware-health/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telefonicaid/fiware-health/downloads","issues_url":"https://api.github.com/repos/telefonicaid/fiware-health/issues{/number}","pulls_url":"https://api.github.com/repos/telefonicaid/fiware-health/pulls{/number}","milestones_url":"https://api.github.com/repos/telefonicaid/fiware-health/milestones{/number}","notifications_url":"https://api.github.com/repos/telefonicaid/fiware-health/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telefonicaid/fiware-health/labels{/name}","releases_url":"https://api.github.com/repos/telefonicaid/fiware-health/releases{/id}","created_at":"2015-02-11T14:51:58Z","updated_at":"2015-05-07T12:29:16Z","pushed_at":"2015-12-02T17:02:40Z","git_url":"git://github.com/telefonicaid/fiware-health.git","ssh_url":"git@github.com:telefonicaid/fiware-health.git","clone_url":"https://github.com/telefonicaid/fiware-health.git","svn_url":"https://github.com/telefonicaid/fiware-health","homepage":null,"size":1552,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/216"},"html":{"href":"https://github.com/telefonicaid/fiware-health/pull/216"},"issue":{"href":"https://api.github.com/repos/telefonicaid/fiware-health/issues/216"},"comments":{"href":"https://api.github.com/repos/telefonicaid/fiware-health/issues/216/comments"},"review_comments":{"href":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/216/comments"},"review_comment":{"href":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telefonicaid/fiware-health/pulls/216/commits"},"statuses":{"href":"https://api.github.com/repos/telefonicaid/fiware-health/statuses/ae1a219aa562526685e8bf8b99fe867088ac8c6c"}}}}