{"action":"created","comment":{"url":"https://api.github.com/repos/pobonte/school_area_client/pulls/comments/114878116","pull_request_review_id":36376902,"id":114878116,"diff_hunk":"@@ -0,0 +1,121 @@\n+var presenceReportResource = require('./../resources/presenceReport.resource.js');\n+var reportTimeResource = require('./../resources/reportTime.resource.js');\n+\n+module.exports = angular\n+.module('presenceReport.service', [\n+  presenceReportResource.name,\n+  reportTimeResource.name\n+  ])\n+.factory('presenceReportService', presenceReportService);\n+\n+presenceReportService.$inject = ['presenceReportResource',\n+                                 'reportTimeResource',\n+                                 'currentGroupDay',\n+                                 '$mdToast'];\n+\n+function presenceReportService(\n+  presenceReportResource,\n+  reportTimeResource,\n+  currentGroupDay,\n+  $mdToast) {\n+  var service = {\n+    getPresenceReports: getPresenceReports,\n+    getReportTimes: getReportTimes,\n+    addReportTime: addReportTime,\n+    deleteReportTime: deleteReportTime,\n+    updateReportTime: updateReportTime,\n+    updateEndTime: updateEndTime,\n+    toggleErrorMsg: toggleErrorMsg\n+  };\n+  return service;\n+\n+  function getPresenceReports() {\n+    return presenceReportResource.query({group_id: currentGroupDay.group_id,\n+                                      day: currentGroupDay.day})\n+    .$promise.then(function(presenceReports) {\n+      return presenceReports;\n+    }, function() {","path":"app/js/common/services/presenceReport.service.js","position":37,"original_position":37,"commit_id":"1553540297c32843d2cdaf280667db5132d425a7","original_commit_id":"1553540297c32843d2cdaf280667db5132d425a7","user":{"login":"andriyarterchuk","id":23266936,"avatar_url":"https://avatars0.githubusercontent.com/u/23266936?v=3","gravatar_id":"","url":"https://api.github.com/users/andriyarterchuk","html_url":"https://github.com/andriyarterchuk","followers_url":"https://api.github.com/users/andriyarterchuk/followers","following_url":"https://api.github.com/users/andriyarterchuk/following{/other_user}","gists_url":"https://api.github.com/users/andriyarterchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/andriyarterchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andriyarterchuk/subscriptions","organizations_url":"https://api.github.com/users/andriyarterchuk/orgs","repos_url":"https://api.github.com/users/andriyarterchuk/repos","events_url":"https://api.github.com/users/andriyarterchuk/events{/privacy}","received_events_url":"https://api.github.com/users/andriyarterchuk/received_events","type":"User","site_admin":false},"body":"why is this callback empty?","created_at":"2017-05-04T20:22:03Z","updated_at":"2017-05-04T20:26:11Z","html_url":"https://github.com/pobonte/school_area_client/pull/14#discussion_r114878116","pull_request_url":"https://api.github.com/repos/pobonte/school_area_client/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/pobonte/school_area_client/pulls/comments/114878116"},"html":{"href":"https://github.com/pobonte/school_area_client/pull/14#discussion_r114878116"},"pull_request":{"href":"https://api.github.com/repos/pobonte/school_area_client/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/pobonte/school_area_client/pulls/14","id":117164151,"html_url":"https://github.com/pobonte/school_area_client/pull/14","diff_url":"https://github.com/pobonte/school_area_client/pull/14.diff","patch_url":"https://github.com/pobonte/school_area_client/pull/14.patch","issue_url":"https://api.github.com/repos/pobonte/school_area_client/issues/14","number":14,"state":"open","locked":false,"title":"LVRUBYM-191: created presenceReport","user":{"login":"Mykhailo123","id":22379100,"avatar_url":"https://avatars0.githubusercontent.com/u/22379100?v=3","gravatar_id":"","url":"https://api.github.com/users/Mykhailo123","html_url":"https://github.com/Mykhailo123","followers_url":"https://api.github.com/users/Mykhailo123/followers","following_url":"https://api.github.com/users/Mykhailo123/following{/other_user}","gists_url":"https://api.github.com/users/Mykhailo123/gists{/gist_id}","starred_url":"https://api.github.com/users/Mykhailo123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mykhailo123/subscriptions","organizations_url":"https://api.github.com/users/Mykhailo123/orgs","repos_url":"https://api.github.com/users/Mykhailo123/repos","events_url":"https://api.github.com/users/Mykhailo123/events{/privacy}","received_events_url":"https://api.github.com/users/Mykhailo123/received_events","type":"User","site_admin":false},"body":"## JIRA\r\n\r\n* [Main JIRA ticket](http://ssu-jira.softserveinc.com/browse/LVRUBYM-220)\r\n* [JIRA subtask](http://ssu-jira.softserveinc.com/browse/LVRUBYM-317)\r\n\r\n## Code reviewers\r\n\r\n- [ ] @yaremakleputs\r\n- [ ] @HelenMaherovska\r\n- [ ] @andriyarterchuk\r\n\r\n### Second Level Review\r\n\r\n- [ ] @4asof4ik\r\n\r\n## Summary of issue\r\n\r\nNeed to implement CI\r\n\r\n## Summary of change\r\n\r\n- implement CI(JSCS)\r\n\r\n## Testing approach\r\n\r\nTest with JSCS\r\n\r\n## CHECK LIST\r\n- [ ]  СI passed\r\n- [ ]  Сode coverage >=90%\r\n- [ ]  PR is reviewed manually again (to make sure you have 100% ready code)\r\n- [ ]  All reviewers agreed to merge the PR\r\n- [ ]  I've checked new feature as logged in and logged out user if needed\r\n- [ ]  PR meets all conventions\r\n","created_at":"2017-04-23T20:20:11Z","updated_at":"2017-05-04T20:26:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38b701845f853736a802d96313dbefa30c958b4f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pobonte/school_area_client/pulls/14/commits","review_comments_url":"https://api.github.com/repos/pobonte/school_area_client/pulls/14/comments","review_comment_url":"https://api.github.com/repos/pobonte/school_area_client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pobonte/school_area_client/issues/14/comments","statuses_url":"https://api.github.com/repos/pobonte/school_area_client/statuses/1553540297c32843d2cdaf280667db5132d425a7","head":{"label":"pobonte:LVRUBYM-191","ref":"LVRUBYM-191","sha":"1553540297c32843d2cdaf280667db5132d425a7","user":{"login":"pobonte","id":9717563,"avatar_url":"https://avatars0.githubusercontent.com/u/9717563?v=3","gravatar_id":"","url":"https://api.github.com/users/pobonte","html_url":"https://github.com/pobonte","followers_url":"https://api.github.com/users/pobonte/followers","following_url":"https://api.github.com/users/pobonte/following{/other_user}","gists_url":"https://api.github.com/users/pobonte/gists{/gist_id}","starred_url":"https://api.github.com/users/pobonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pobonte/subscriptions","organizations_url":"https://api.github.com/users/pobonte/orgs","repos_url":"https://api.github.com/users/pobonte/repos","events_url":"https://api.github.com/users/pobonte/events{/privacy}","received_events_url":"https://api.github.com/users/pobonte/received_events","type":"User","site_admin":false},"repo":{"id":87204698,"name":"school_area_client","full_name":"pobonte/school_area_client","owner":{"login":"pobonte","id":9717563,"avatar_url":"https://avatars0.githubusercontent.com/u/9717563?v=3","gravatar_id":"","url":"https://api.github.com/users/pobonte","html_url":"https://github.com/pobonte","followers_url":"https://api.github.com/users/pobonte/followers","following_url":"https://api.github.com/users/pobonte/following{/other_user}","gists_url":"https://api.github.com/users/pobonte/gists{/gist_id}","starred_url":"https://api.github.com/users/pobonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pobonte/subscriptions","organizations_url":"https://api.github.com/users/pobonte/orgs","repos_url":"https://api.github.com/users/pobonte/repos","events_url":"https://api.github.com/users/pobonte/events{/privacy}","received_events_url":"https://api.github.com/users/pobonte/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pobonte/school_area_client","description":null,"fork":false,"url":"https://api.github.com/repos/pobonte/school_area_client","forks_url":"https://api.github.com/repos/pobonte/school_area_client/forks","keys_url":"https://api.github.com/repos/pobonte/school_area_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pobonte/school_area_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pobonte/school_area_client/teams","hooks_url":"https://api.github.com/repos/pobonte/school_area_client/hooks","issue_events_url":"https://api.github.com/repos/pobonte/school_area_client/issues/events{/number}","events_url":"https://api.github.com/repos/pobonte/school_area_client/events","assignees_url":"https://api.github.com/repos/pobonte/school_area_client/assignees{/user}","branches_url":"https://api.github.com/repos/pobonte/school_area_client/branches{/branch}","tags_url":"https://api.github.com/repos/pobonte/school_area_client/tags","blobs_url":"https://api.github.com/repos/pobonte/school_area_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pobonte/school_area_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pobonte/school_area_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/pobonte/school_area_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pobonte/school_area_client/statuses/{sha}","languages_url":"https://api.github.com/repos/pobonte/school_area_client/languages","stargazers_url":"https://api.github.com/repos/pobonte/school_area_client/stargazers","contributors_url":"https://api.github.com/repos/pobonte/school_area_client/contributors","subscribers_url":"https://api.github.com/repos/pobonte/school_area_client/subscribers","subscription_url":"https://api.github.com/repos/pobonte/school_area_client/subscription","commits_url":"https://api.github.com/repos/pobonte/school_area_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/pobonte/school_area_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/pobonte/school_area_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/pobonte/school_area_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/pobonte/school_area_client/contents/{+path}","compare_url":"https://api.github.com/repos/pobonte/school_area_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pobonte/school_area_client/merges","archive_url":"https://api.github.com/repos/pobonte/school_area_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pobonte/school_area_client/downloads","issues_url":"https://api.github.com/repos/pobonte/school_area_client/issues{/number}","pulls_url":"https://api.github.com/repos/pobonte/school_area_client/pulls{/number}","milestones_url":"https://api.github.com/repos/pobonte/school_area_client/milestones{/number}","notifications_url":"https://api.github.com/repos/pobonte/school_area_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pobonte/school_area_client/labels{/name}","releases_url":"https://api.github.com/repos/pobonte/school_area_client/releases{/id}","deployments_url":"https://api.github.com/repos/pobonte/school_area_client/deployments","created_at":"2017-04-04T15:38:05Z","updated_at":"2017-04-15T16:05:28Z","pushed_at":"2017-05-04T20:12:06Z","git_url":"git://github.com/pobonte/school_area_client.git","ssh_url":"git@github.com:pobonte/school_area_client.git","clone_url":"https://github.com/pobonte/school_area_client.git","svn_url":"https://github.com/pobonte/school_area_client","homepage":null,"size":280,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"pobonte:master","ref":"master","sha":"ca307f1f2a4bec7a12f962299a9b46ded377783d","user":{"login":"pobonte","id":9717563,"avatar_url":"https://avatars0.githubusercontent.com/u/9717563?v=3","gravatar_id":"","url":"https://api.github.com/users/pobonte","html_url":"https://github.com/pobonte","followers_url":"https://api.github.com/users/pobonte/followers","following_url":"https://api.github.com/users/pobonte/following{/other_user}","gists_url":"https://api.github.com/users/pobonte/gists{/gist_id}","starred_url":"https://api.github.com/users/pobonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pobonte/subscriptions","organizations_url":"https://api.github.com/users/pobonte/orgs","repos_url":"https://api.github.com/users/pobonte/repos","events_url":"https://api.github.com/users/pobonte/events{/privacy}","received_events_url":"https://api.github.com/users/pobonte/received_events","type":"User","site_admin":false},"repo":{"id":87204698,"name":"school_area_client","full_name":"pobonte/school_area_client","owner":{"login":"pobonte","id":9717563,"avatar_url":"https://avatars0.githubusercontent.com/u/9717563?v=3","gravatar_id":"","url":"https://api.github.com/users/pobonte","html_url":"https://github.com/pobonte","followers_url":"https://api.github.com/users/pobonte/followers","following_url":"https://api.github.com/users/pobonte/following{/other_user}","gists_url":"https://api.github.com/users/pobonte/gists{/gist_id}","starred_url":"https://api.github.com/users/pobonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pobonte/subscriptions","organizations_url":"https://api.github.com/users/pobonte/orgs","repos_url":"https://api.github.com/users/pobonte/repos","events_url":"https://api.github.com/users/pobonte/events{/privacy}","received_events_url":"https://api.github.com/users/pobonte/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pobonte/school_area_client","description":null,"fork":false,"url":"https://api.github.com/repos/pobonte/school_area_client","forks_url":"https://api.github.com/repos/pobonte/school_area_client/forks","keys_url":"https://api.github.com/repos/pobonte/school_area_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pobonte/school_area_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pobonte/school_area_client/teams","hooks_url":"https://api.github.com/repos/pobonte/school_area_client/hooks","issue_events_url":"https://api.github.com/repos/pobonte/school_area_client/issues/events{/number}","events_url":"https://api.github.com/repos/pobonte/school_area_client/events","assignees_url":"https://api.github.com/repos/pobonte/school_area_client/assignees{/user}","branches_url":"https://api.github.com/repos/pobonte/school_area_client/branches{/branch}","tags_url":"https://api.github.com/repos/pobonte/school_area_client/tags","blobs_url":"https://api.github.com/repos/pobonte/school_area_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pobonte/school_area_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pobonte/school_area_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/pobonte/school_area_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pobonte/school_area_client/statuses/{sha}","languages_url":"https://api.github.com/repos/pobonte/school_area_client/languages","stargazers_url":"https://api.github.com/repos/pobonte/school_area_client/stargazers","contributors_url":"https://api.github.com/repos/pobonte/school_area_client/contributors","subscribers_url":"https://api.github.com/repos/pobonte/school_area_client/subscribers","subscription_url":"https://api.github.com/repos/pobonte/school_area_client/subscription","commits_url":"https://api.github.com/repos/pobonte/school_area_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/pobonte/school_area_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/pobonte/school_area_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/pobonte/school_area_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/pobonte/school_area_client/contents/{+path}","compare_url":"https://api.github.com/repos/pobonte/school_area_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pobonte/school_area_client/merges","archive_url":"https://api.github.com/repos/pobonte/school_area_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pobonte/school_area_client/downloads","issues_url":"https://api.github.com/repos/pobonte/school_area_client/issues{/number}","pulls_url":"https://api.github.com/repos/pobonte/school_area_client/pulls{/number}","milestones_url":"https://api.github.com/repos/pobonte/school_area_client/milestones{/number}","notifications_url":"https://api.github.com/repos/pobonte/school_area_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pobonte/school_area_client/labels{/name}","releases_url":"https://api.github.com/repos/pobonte/school_area_client/releases{/id}","deployments_url":"https://api.github.com/repos/pobonte/school_area_client/deployments","created_at":"2017-04-04T15:38:05Z","updated_at":"2017-04-15T16:05:28Z","pushed_at":"2017-05-04T20:12:06Z","git_url":"git://github.com/pobonte/school_area_client.git","ssh_url":"git@github.com:pobonte/school_area_client.git","clone_url":"https://github.com/pobonte/school_area_client.git","svn_url":"https://github.com/pobonte/school_area_client","homepage":null,"size":280,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pobonte/school_area_client/pulls/14"},"html":{"href":"https://github.com/pobonte/school_area_client/pull/14"},"issue":{"href":"https://api.github.com/repos/pobonte/school_area_client/issues/14"},"comments":{"href":"https://api.github.com/repos/pobonte/school_area_client/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/pobonte/school_area_client/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/pobonte/school_area_client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pobonte/school_area_client/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/pobonte/school_area_client/statuses/1553540297c32843d2cdaf280667db5132d425a7"}}}}
{"actor":{"display_login":"andriyarterchuk"}}