{"action":"created","comment":{"url":"https://api.github.com/repos/cami-project/cami-project/pulls/comments/84888337","pull_request_review_id":5636391,"id":84888337,"diff_hunk":"@@ -74,6 +74,6 @@ def fetch_heart_rate_measurement():\n         )\n         heart_rate_measurement.save()\n \n-    analyze_heart_rates.delay()\n+    analyze_heart_rates.delay(last_meas)","path":"medical_compliance/medical_compliance/api/tasks.py","position":null,"original_position":5,"commit_id":"92300c008110e2eed7ef598aa48756ee9581cb59","original_commit_id":"92300c008110e2eed7ef598aa48756ee9581cb59","user":{"login":"rtud","id":1369088,"avatar_url":"https://avatars.githubusercontent.com/u/1369088?v=3","gravatar_id":"","url":"https://api.github.com/users/rtud","html_url":"https://github.com/rtud","followers_url":"https://api.github.com/users/rtud/followers","following_url":"https://api.github.com/users/rtud/following{/other_user}","gists_url":"https://api.github.com/users/rtud/gists{/gist_id}","starred_url":"https://api.github.com/users/rtud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtud/subscriptions","organizations_url":"https://api.github.com/users/rtud/orgs","repos_url":"https://api.github.com/users/rtud/repos","events_url":"https://api.github.com/users/rtud/events{/privacy}","received_events_url":"https://api.github.com/users/rtud/received_events","type":"User","site_admin":false},"body":"I generally try to have a clear name for the variables, \"no matter\" how long they get, so that it's easier to understand what they do, and also keep from shortening words if it's not at all necessary :)","created_at":"2016-10-25T12:16:05Z","updated_at":"2016-10-25T12:16:06Z","html_url":"https://github.com/cami-project/cami-project/pull/102#discussion_r84888337","pull_request_url":"https://api.github.com/repos/cami-project/cami-project/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/cami-project/cami-project/pulls/comments/84888337"},"html":{"href":"https://github.com/cami-project/cami-project/pull/102#discussion_r84888337"},"pull_request":{"href":"https://api.github.com/repos/cami-project/cami-project/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/cami-project/cami-project/pulls/102","id":90791721,"html_url":"https://github.com/cami-project/cami-project/pull/102","diff_url":"https://github.com/cami-project/cami-project/pull/102.diff","patch_url":"https://github.com/cami-project/cami-project/pull/102.patch","issue_url":"https://api.github.com/repos/cami-project/cami-project/issues/102","number":102,"state":"open","locked":false,"title":"Implement the mechanics for sending Heart Rate notifications to CAMI-frontend","user":{"login":"cretualexandru","id":22498361,"avatar_url":"https://avatars.githubusercontent.com/u/22498361?v=3","gravatar_id":"","url":"https://api.github.com/users/cretualexandru","html_url":"https://github.com/cretualexandru","followers_url":"https://api.github.com/users/cretualexandru/followers","following_url":"https://api.github.com/users/cretualexandru/following{/other_user}","gists_url":"https://api.github.com/users/cretualexandru/gists{/gist_id}","starred_url":"https://api.github.com/users/cretualexandru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cretualexandru/subscriptions","organizations_url":"https://api.github.com/users/cretualexandru/orgs","repos_url":"https://api.github.com/users/cretualexandru/repos","events_url":"https://api.github.com/users/cretualexandru/events{/privacy}","received_events_url":"https://api.github.com/users/cretualexandru/received_events","type":"User","site_admin":false},"body":"## Why\r\nAs a Caregiver using the CAMI system to take care of an Elder, it is essential for me to receive notifications whenever there is a warning regarding his heart-rate status, giving me the possibility to take immediate action.\r\n\r\nWe will use this in #101, as whenever we poll for new information about his heart-rate, we will analyze it and take the appropriate action.\r\n## What\r\n* [x] a Celery task that handles checking the measurements and sending notifications if needed\r\n* [x] the task is run manually to insure that notifications mechanics works properly\r\n* [x] the task is integrated in the #101 and is called whenever a new poll for data is made\r\n\r\n## Notes\r\n","created_at":"2016-10-25T11:50:17Z","updated_at":"2016-10-25T12:16:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ab908628c31e202442d8e58a351dfce762c7314","assignee":{"login":"cretualexandru","id":22498361,"avatar_url":"https://avatars.githubusercontent.com/u/22498361?v=3","gravatar_id":"","url":"https://api.github.com/users/cretualexandru","html_url":"https://github.com/cretualexandru","followers_url":"https://api.github.com/users/cretualexandru/followers","following_url":"https://api.github.com/users/cretualexandru/following{/other_user}","gists_url":"https://api.github.com/users/cretualexandru/gists{/gist_id}","starred_url":"https://api.github.com/users/cretualexandru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cretualexandru/subscriptions","organizations_url":"https://api.github.com/users/cretualexandru/orgs","repos_url":"https://api.github.com/users/cretualexandru/repos","events_url":"https://api.github.com/users/cretualexandru/events{/privacy}","received_events_url":"https://api.github.com/users/cretualexandru/received_events","type":"User","site_admin":false},"assignees":[{"login":"cretualexandru","id":22498361,"avatar_url":"https://avatars.githubusercontent.com/u/22498361?v=3","gravatar_id":"","url":"https://api.github.com/users/cretualexandru","html_url":"https://github.com/cretualexandru","followers_url":"https://api.github.com/users/cretualexandru/followers","following_url":"https://api.github.com/users/cretualexandru/following{/other_user}","gists_url":"https://api.github.com/users/cretualexandru/gists{/gist_id}","starred_url":"https://api.github.com/users/cretualexandru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cretualexandru/subscriptions","organizations_url":"https://api.github.com/users/cretualexandru/orgs","repos_url":"https://api.github.com/users/cretualexandru/repos","events_url":"https://api.github.com/users/cretualexandru/events{/privacy}","received_events_url":"https://api.github.com/users/cretualexandru/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cami-project/cami-project/pulls/102/commits","review_comments_url":"https://api.github.com/repos/cami-project/cami-project/pulls/102/comments","review_comment_url":"https://api.github.com/repos/cami-project/cami-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cami-project/cami-project/issues/102/comments","statuses_url":"https://api.github.com/repos/cami-project/cami-project/statuses/92300c008110e2eed7ef598aa48756ee9581cb59","head":{"label":"cami-project:102-notifications-mechanics","ref":"102-notifications-mechanics","sha":"92300c008110e2eed7ef598aa48756ee9581cb59","user":{"login":"cami-project","id":19607026,"avatar_url":"https://avatars.githubusercontent.com/u/19607026?v=3","gravatar_id":"","url":"https://api.github.com/users/cami-project","html_url":"https://github.com/cami-project","followers_url":"https://api.github.com/users/cami-project/followers","following_url":"https://api.github.com/users/cami-project/following{/other_user}","gists_url":"https://api.github.com/users/cami-project/gists{/gist_id}","starred_url":"https://api.github.com/users/cami-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cami-project/subscriptions","organizations_url":"https://api.github.com/users/cami-project/orgs","repos_url":"https://api.github.com/users/cami-project/repos","events_url":"https://api.github.com/users/cami-project/events{/privacy}","received_events_url":"https://api.github.com/users/cami-project/received_events","type":"Organization","site_admin":false},"repo":{"id":59824119,"name":"cami-project","full_name":"cami-project/cami-project","owner":{"login":"cami-project","id":19607026,"avatar_url":"https://avatars.githubusercontent.com/u/19607026?v=3","gravatar_id":"","url":"https://api.github.com/users/cami-project","html_url":"https://github.com/cami-project","followers_url":"https://api.github.com/users/cami-project/followers","following_url":"https://api.github.com/users/cami-project/following{/other_user}","gists_url":"https://api.github.com/users/cami-project/gists{/gist_id}","starred_url":"https://api.github.com/users/cami-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cami-project/subscriptions","organizations_url":"https://api.github.com/users/cami-project/orgs","repos_url":"https://api.github.com/users/cami-project/repos","events_url":"https://api.github.com/users/cami-project/events{/privacy}","received_events_url":"https://api.github.com/users/cami-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cami-project/cami-project","description":"http://www.camiproject.eu/","fork":false,"url":"https://api.github.com/repos/cami-project/cami-project","forks_url":"https://api.github.com/repos/cami-project/cami-project/forks","keys_url":"https://api.github.com/repos/cami-project/cami-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cami-project/cami-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cami-project/cami-project/teams","hooks_url":"https://api.github.com/repos/cami-project/cami-project/hooks","issue_events_url":"https://api.github.com/repos/cami-project/cami-project/issues/events{/number}","events_url":"https://api.github.com/repos/cami-project/cami-project/events","assignees_url":"https://api.github.com/repos/cami-project/cami-project/assignees{/user}","branches_url":"https://api.github.com/repos/cami-project/cami-project/branches{/branch}","tags_url":"https://api.github.com/repos/cami-project/cami-project/tags","blobs_url":"https://api.github.com/repos/cami-project/cami-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cami-project/cami-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cami-project/cami-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/cami-project/cami-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cami-project/cami-project/statuses/{sha}","languages_url":"https://api.github.com/repos/cami-project/cami-project/languages","stargazers_url":"https://api.github.com/repos/cami-project/cami-project/stargazers","contributors_url":"https://api.github.com/repos/cami-project/cami-project/contributors","subscribers_url":"https://api.github.com/repos/cami-project/cami-project/subscribers","subscription_url":"https://api.github.com/repos/cami-project/cami-project/subscription","commits_url":"https://api.github.com/repos/cami-project/cami-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/cami-project/cami-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/cami-project/cami-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/cami-project/cami-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/cami-project/cami-project/contents/{+path}","compare_url":"https://api.github.com/repos/cami-project/cami-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cami-project/cami-project/merges","archive_url":"https://api.github.com/repos/cami-project/cami-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cami-project/cami-project/downloads","issues_url":"https://api.github.com/repos/cami-project/cami-project/issues{/number}","pulls_url":"https://api.github.com/repos/cami-project/cami-project/pulls{/number}","milestones_url":"https://api.github.com/repos/cami-project/cami-project/milestones{/number}","notifications_url":"https://api.github.com/repos/cami-project/cami-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cami-project/cami-project/labels{/name}","releases_url":"https://api.github.com/repos/cami-project/cami-project/releases{/id}","deployments_url":"https://api.github.com/repos/cami-project/cami-project/deployments","created_at":"2016-05-27T09:49:17Z","updated_at":"2016-09-21T09:38:30Z","pushed_at":"2016-10-25T11:51:00Z","git_url":"git://github.com/cami-project/cami-project.git","ssh_url":"git@github.com:cami-project/cami-project.git","clone_url":"https://github.com/cami-project/cami-project.git","svn_url":"https://github.com/cami-project/cami-project","homepage":null,"size":4059,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":25,"forks":0,"open_issues":25,"watchers":0,"default_branch":"master"}},"base":{"label":"cami-project:master","ref":"master","sha":"399d3622e21d15a7f8dba117653d270ff87a0e21","user":{"login":"cami-project","id":19607026,"avatar_url":"https://avatars.githubusercontent.com/u/19607026?v=3","gravatar_id":"","url":"https://api.github.com/users/cami-project","html_url":"https://github.com/cami-project","followers_url":"https://api.github.com/users/cami-project/followers","following_url":"https://api.github.com/users/cami-project/following{/other_user}","gists_url":"https://api.github.com/users/cami-project/gists{/gist_id}","starred_url":"https://api.github.com/users/cami-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cami-project/subscriptions","organizations_url":"https://api.github.com/users/cami-project/orgs","repos_url":"https://api.github.com/users/cami-project/repos","events_url":"https://api.github.com/users/cami-project/events{/privacy}","received_events_url":"https://api.github.com/users/cami-project/received_events","type":"Organization","site_admin":false},"repo":{"id":59824119,"name":"cami-project","full_name":"cami-project/cami-project","owner":{"login":"cami-project","id":19607026,"avatar_url":"https://avatars.githubusercontent.com/u/19607026?v=3","gravatar_id":"","url":"https://api.github.com/users/cami-project","html_url":"https://github.com/cami-project","followers_url":"https://api.github.com/users/cami-project/followers","following_url":"https://api.github.com/users/cami-project/following{/other_user}","gists_url":"https://api.github.com/users/cami-project/gists{/gist_id}","starred_url":"https://api.github.com/users/cami-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cami-project/subscriptions","organizations_url":"https://api.github.com/users/cami-project/orgs","repos_url":"https://api.github.com/users/cami-project/repos","events_url":"https://api.github.com/users/cami-project/events{/privacy}","received_events_url":"https://api.github.com/users/cami-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cami-project/cami-project","description":"http://www.camiproject.eu/","fork":false,"url":"https://api.github.com/repos/cami-project/cami-project","forks_url":"https://api.github.com/repos/cami-project/cami-project/forks","keys_url":"https://api.github.com/repos/cami-project/cami-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cami-project/cami-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cami-project/cami-project/teams","hooks_url":"https://api.github.com/repos/cami-project/cami-project/hooks","issue_events_url":"https://api.github.com/repos/cami-project/cami-project/issues/events{/number}","events_url":"https://api.github.com/repos/cami-project/cami-project/events","assignees_url":"https://api.github.com/repos/cami-project/cami-project/assignees{/user}","branches_url":"https://api.github.com/repos/cami-project/cami-project/branches{/branch}","tags_url":"https://api.github.com/repos/cami-project/cami-project/tags","blobs_url":"https://api.github.com/repos/cami-project/cami-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cami-project/cami-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cami-project/cami-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/cami-project/cami-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cami-project/cami-project/statuses/{sha}","languages_url":"https://api.github.com/repos/cami-project/cami-project/languages","stargazers_url":"https://api.github.com/repos/cami-project/cami-project/stargazers","contributors_url":"https://api.github.com/repos/cami-project/cami-project/contributors","subscribers_url":"https://api.github.com/repos/cami-project/cami-project/subscribers","subscription_url":"https://api.github.com/repos/cami-project/cami-project/subscription","commits_url":"https://api.github.com/repos/cami-project/cami-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/cami-project/cami-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/cami-project/cami-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/cami-project/cami-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/cami-project/cami-project/contents/{+path}","compare_url":"https://api.github.com/repos/cami-project/cami-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cami-project/cami-project/merges","archive_url":"https://api.github.com/repos/cami-project/cami-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cami-project/cami-project/downloads","issues_url":"https://api.github.com/repos/cami-project/cami-project/issues{/number}","pulls_url":"https://api.github.com/repos/cami-project/cami-project/pulls{/number}","milestones_url":"https://api.github.com/repos/cami-project/cami-project/milestones{/number}","notifications_url":"https://api.github.com/repos/cami-project/cami-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cami-project/cami-project/labels{/name}","releases_url":"https://api.github.com/repos/cami-project/cami-project/releases{/id}","deployments_url":"https://api.github.com/repos/cami-project/cami-project/deployments","created_at":"2016-05-27T09:49:17Z","updated_at":"2016-09-21T09:38:30Z","pushed_at":"2016-10-25T11:51:00Z","git_url":"git://github.com/cami-project/cami-project.git","ssh_url":"git@github.com:cami-project/cami-project.git","clone_url":"https://github.com/cami-project/cami-project.git","svn_url":"https://github.com/cami-project/cami-project","homepage":null,"size":4059,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":25,"forks":0,"open_issues":25,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cami-project/cami-project/pulls/102"},"html":{"href":"https://github.com/cami-project/cami-project/pull/102"},"issue":{"href":"https://api.github.com/repos/cami-project/cami-project/issues/102"},"comments":{"href":"https://api.github.com/repos/cami-project/cami-project/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/cami-project/cami-project/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/cami-project/cami-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cami-project/cami-project/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/cami-project/cami-project/statuses/92300c008110e2eed7ef598aa48756ee9581cb59"}}}}
{"actor":{"display_login":"rtud"}}