{"action":"created","comment":{"url":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/comments/53694906","id":53694906,"diff_hunk":"@@ -0,0 +1,38 @@\n+(function(angular) {\n+  'use strict';\n+  angular.module('itLabsControl.teachers')\n+    .controller('TeachersCtrl', ['$scope', '$location', 'Teachers', function($scope, $location, Teachers) {\n+      $scope.getSubjects = getSubjects;\n+      $scope.addTeacher = addTeacher;\n+      $scope.deleteTeacher = deleteTeacher;\n+\n+      update();\n+\n+      function getSubjects (id) {\n+        $location.path('/teacher/' + id);\n+      };\n+\n+      function addTeacher (newTeacher) {\n+        Teachers.addTeacher(newTeacher);\n+        update();\n+      };\n+\n+      function deleteTeacher (id) {\n+        Teachers.deleteTeacher(id);\n+        update();\n+      };","path":"public/js/teachers/teachers.controller.js","position":23,"original_position":23,"commit_id":"80fb1a0aa731330fc0680e593d04e063ba4c127f","original_commit_id":"80fb1a0aa731330fc0680e593d04e063ba4c127f","user":{"login":"strellka","id":17065618,"avatar_url":"https://avatars.githubusercontent.com/u/17065618?v=3","gravatar_id":"","url":"https://api.github.com/users/strellka","html_url":"https://github.com/strellka","followers_url":"https://api.github.com/users/strellka/followers","following_url":"https://api.github.com/users/strellka/following{/other_user}","gists_url":"https://api.github.com/users/strellka/gists{/gist_id}","starred_url":"https://api.github.com/users/strellka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strellka/subscriptions","organizations_url":"https://api.github.com/users/strellka/orgs","repos_url":"https://api.github.com/users/strellka/repos","events_url":"https://api.github.com/users/strellka/events{/privacy}","received_events_url":"https://api.github.com/users/strellka/received_events","type":"User","site_admin":false},"body":"redundant semicolon","created_at":"2016-02-22T21:21:42Z","updated_at":"2016-02-22T21:21:42Z","html_url":"https://github.com/XQuader/itlabsctrl/pull/8#discussion_r53694906","pull_request_url":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/comments/53694906"},"html":{"href":"https://github.com/XQuader/itlabsctrl/pull/8#discussion_r53694906"},"pull_request":{"href":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/8","id":60184213,"html_url":"https://github.com/XQuader/itlabsctrl/pull/8","diff_url":"https://github.com/XQuader/itlabsctrl/pull/8.diff","patch_url":"https://github.com/XQuader/itlabsctrl/pull/8.patch","issue_url":"https://api.github.com/repos/XQuader/itlabsctrl/issues/8","number":8,"state":"open","locked":false,"title":"Backend init","user":{"login":"XQuader","id":17005458,"avatar_url":"https://avatars.githubusercontent.com/u/17005458?v=3","gravatar_id":"","url":"https://api.github.com/users/XQuader","html_url":"https://github.com/XQuader","followers_url":"https://api.github.com/users/XQuader/followers","following_url":"https://api.github.com/users/XQuader/following{/other_user}","gists_url":"https://api.github.com/users/XQuader/gists{/gist_id}","starred_url":"https://api.github.com/users/XQuader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XQuader/subscriptions","organizations_url":"https://api.github.com/users/XQuader/orgs","repos_url":"https://api.github.com/users/XQuader/repos","events_url":"https://api.github.com/users/XQuader/events{/privacy}","received_events_url":"https://api.github.com/users/XQuader/received_events","type":"User","site_admin":false},"body":"Added connection with PostgreSQL database and a simple api:\r\n 1. GET requests to '/api/teachers' - send back list of teachers;\r\n 2. GET requests to '/api/teacher/id' - send back info about selected teacher(list of subjects of a teacher)\r\n 3. POST request to '/api/teacher/' - create a new teacher (dummy \"asd asd\" teacher)\r\n 4. DELETE request to '/api/teacher/id' - delete selected teacher\r\n\r\nPS. There is no need to merge gh-pages with it anymore (project uses PostgreSQL database, which is not accessible on github)","created_at":"2016-02-22T14:52:43Z","updated_at":"2016-02-22T21:21:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8d564be960d9d40b24270e2a2f09821ea2f44d1","assignee":{"login":"strellka","id":17065618,"avatar_url":"https://avatars.githubusercontent.com/u/17065618?v=3","gravatar_id":"","url":"https://api.github.com/users/strellka","html_url":"https://github.com/strellka","followers_url":"https://api.github.com/users/strellka/followers","following_url":"https://api.github.com/users/strellka/following{/other_user}","gists_url":"https://api.github.com/users/strellka/gists{/gist_id}","starred_url":"https://api.github.com/users/strellka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strellka/subscriptions","organizations_url":"https://api.github.com/users/strellka/orgs","repos_url":"https://api.github.com/users/strellka/repos","events_url":"https://api.github.com/users/strellka/events{/privacy}","received_events_url":"https://api.github.com/users/strellka/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/8/commits","review_comments_url":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/8/comments","review_comment_url":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/XQuader/itlabsctrl/issues/8/comments","statuses_url":"https://api.github.com/repos/XQuader/itlabsctrl/statuses/80fb1a0aa731330fc0680e593d04e063ba4c127f","head":{"label":"XQuader:backend_init","ref":"backend_init","sha":"80fb1a0aa731330fc0680e593d04e063ba4c127f","user":{"login":"XQuader","id":17005458,"avatar_url":"https://avatars.githubusercontent.com/u/17005458?v=3","gravatar_id":"","url":"https://api.github.com/users/XQuader","html_url":"https://github.com/XQuader","followers_url":"https://api.github.com/users/XQuader/followers","following_url":"https://api.github.com/users/XQuader/following{/other_user}","gists_url":"https://api.github.com/users/XQuader/gists{/gist_id}","starred_url":"https://api.github.com/users/XQuader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XQuader/subscriptions","organizations_url":"https://api.github.com/users/XQuader/orgs","repos_url":"https://api.github.com/users/XQuader/repos","events_url":"https://api.github.com/users/XQuader/events{/privacy}","received_events_url":"https://api.github.com/users/XQuader/received_events","type":"User","site_admin":false},"repo":{"id":51074806,"name":"itlabsctrl","full_name":"XQuader/itlabsctrl","owner":{"login":"XQuader","id":17005458,"avatar_url":"https://avatars.githubusercontent.com/u/17005458?v=3","gravatar_id":"","url":"https://api.github.com/users/XQuader","html_url":"https://github.com/XQuader","followers_url":"https://api.github.com/users/XQuader/followers","following_url":"https://api.github.com/users/XQuader/following{/other_user}","gists_url":"https://api.github.com/users/XQuader/gists{/gist_id}","starred_url":"https://api.github.com/users/XQuader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XQuader/subscriptions","organizations_url":"https://api.github.com/users/XQuader/orgs","repos_url":"https://api.github.com/users/XQuader/repos","events_url":"https://api.github.com/users/XQuader/events{/privacy}","received_events_url":"https://api.github.com/users/XQuader/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XQuader/itlabsctrl","description":"Online Judge system for organization and validation of laboratory works in programming.","fork":false,"url":"https://api.github.com/repos/XQuader/itlabsctrl","forks_url":"https://api.github.com/repos/XQuader/itlabsctrl/forks","keys_url":"https://api.github.com/repos/XQuader/itlabsctrl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XQuader/itlabsctrl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XQuader/itlabsctrl/teams","hooks_url":"https://api.github.com/repos/XQuader/itlabsctrl/hooks","issue_events_url":"https://api.github.com/repos/XQuader/itlabsctrl/issues/events{/number}","events_url":"https://api.github.com/repos/XQuader/itlabsctrl/events","assignees_url":"https://api.github.com/repos/XQuader/itlabsctrl/assignees{/user}","branches_url":"https://api.github.com/repos/XQuader/itlabsctrl/branches{/branch}","tags_url":"https://api.github.com/repos/XQuader/itlabsctrl/tags","blobs_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/refs{/sha}","trees_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XQuader/itlabsctrl/statuses/{sha}","languages_url":"https://api.github.com/repos/XQuader/itlabsctrl/languages","stargazers_url":"https://api.github.com/repos/XQuader/itlabsctrl/stargazers","contributors_url":"https://api.github.com/repos/XQuader/itlabsctrl/contributors","subscribers_url":"https://api.github.com/repos/XQuader/itlabsctrl/subscribers","subscription_url":"https://api.github.com/repos/XQuader/itlabsctrl/subscription","commits_url":"https://api.github.com/repos/XQuader/itlabsctrl/commits{/sha}","git_commits_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/commits{/sha}","comments_url":"https://api.github.com/repos/XQuader/itlabsctrl/comments{/number}","issue_comment_url":"https://api.github.com/repos/XQuader/itlabsctrl/issues/comments{/number}","contents_url":"https://api.github.com/repos/XQuader/itlabsctrl/contents/{+path}","compare_url":"https://api.github.com/repos/XQuader/itlabsctrl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XQuader/itlabsctrl/merges","archive_url":"https://api.github.com/repos/XQuader/itlabsctrl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XQuader/itlabsctrl/downloads","issues_url":"https://api.github.com/repos/XQuader/itlabsctrl/issues{/number}","pulls_url":"https://api.github.com/repos/XQuader/itlabsctrl/pulls{/number}","milestones_url":"https://api.github.com/repos/XQuader/itlabsctrl/milestones{/number}","notifications_url":"https://api.github.com/repos/XQuader/itlabsctrl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XQuader/itlabsctrl/labels{/name}","releases_url":"https://api.github.com/repos/XQuader/itlabsctrl/releases{/id}","deployments_url":"https://api.github.com/repos/XQuader/itlabsctrl/deployments","created_at":"2016-02-04T12:32:14Z","updated_at":"2016-02-09T12:08:40Z","pushed_at":"2016-02-22T14:52:43Z","git_url":"git://github.com/XQuader/itlabsctrl.git","ssh_url":"git@github.com:XQuader/itlabsctrl.git","clone_url":"https://github.com/XQuader/itlabsctrl.git","svn_url":"https://github.com/XQuader/itlabsctrl","homepage":"","size":1018,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"XQuader:master","ref":"master","sha":"74bfa137945e779552ab9d21e9ddc164d48b96fe","user":{"login":"XQuader","id":17005458,"avatar_url":"https://avatars.githubusercontent.com/u/17005458?v=3","gravatar_id":"","url":"https://api.github.com/users/XQuader","html_url":"https://github.com/XQuader","followers_url":"https://api.github.com/users/XQuader/followers","following_url":"https://api.github.com/users/XQuader/following{/other_user}","gists_url":"https://api.github.com/users/XQuader/gists{/gist_id}","starred_url":"https://api.github.com/users/XQuader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XQuader/subscriptions","organizations_url":"https://api.github.com/users/XQuader/orgs","repos_url":"https://api.github.com/users/XQuader/repos","events_url":"https://api.github.com/users/XQuader/events{/privacy}","received_events_url":"https://api.github.com/users/XQuader/received_events","type":"User","site_admin":false},"repo":{"id":51074806,"name":"itlabsctrl","full_name":"XQuader/itlabsctrl","owner":{"login":"XQuader","id":17005458,"avatar_url":"https://avatars.githubusercontent.com/u/17005458?v=3","gravatar_id":"","url":"https://api.github.com/users/XQuader","html_url":"https://github.com/XQuader","followers_url":"https://api.github.com/users/XQuader/followers","following_url":"https://api.github.com/users/XQuader/following{/other_user}","gists_url":"https://api.github.com/users/XQuader/gists{/gist_id}","starred_url":"https://api.github.com/users/XQuader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XQuader/subscriptions","organizations_url":"https://api.github.com/users/XQuader/orgs","repos_url":"https://api.github.com/users/XQuader/repos","events_url":"https://api.github.com/users/XQuader/events{/privacy}","received_events_url":"https://api.github.com/users/XQuader/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XQuader/itlabsctrl","description":"Online Judge system for organization and validation of laboratory works in programming.","fork":false,"url":"https://api.github.com/repos/XQuader/itlabsctrl","forks_url":"https://api.github.com/repos/XQuader/itlabsctrl/forks","keys_url":"https://api.github.com/repos/XQuader/itlabsctrl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XQuader/itlabsctrl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XQuader/itlabsctrl/teams","hooks_url":"https://api.github.com/repos/XQuader/itlabsctrl/hooks","issue_events_url":"https://api.github.com/repos/XQuader/itlabsctrl/issues/events{/number}","events_url":"https://api.github.com/repos/XQuader/itlabsctrl/events","assignees_url":"https://api.github.com/repos/XQuader/itlabsctrl/assignees{/user}","branches_url":"https://api.github.com/repos/XQuader/itlabsctrl/branches{/branch}","tags_url":"https://api.github.com/repos/XQuader/itlabsctrl/tags","blobs_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/refs{/sha}","trees_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XQuader/itlabsctrl/statuses/{sha}","languages_url":"https://api.github.com/repos/XQuader/itlabsctrl/languages","stargazers_url":"https://api.github.com/repos/XQuader/itlabsctrl/stargazers","contributors_url":"https://api.github.com/repos/XQuader/itlabsctrl/contributors","subscribers_url":"https://api.github.com/repos/XQuader/itlabsctrl/subscribers","subscription_url":"https://api.github.com/repos/XQuader/itlabsctrl/subscription","commits_url":"https://api.github.com/repos/XQuader/itlabsctrl/commits{/sha}","git_commits_url":"https://api.github.com/repos/XQuader/itlabsctrl/git/commits{/sha}","comments_url":"https://api.github.com/repos/XQuader/itlabsctrl/comments{/number}","issue_comment_url":"https://api.github.com/repos/XQuader/itlabsctrl/issues/comments{/number}","contents_url":"https://api.github.com/repos/XQuader/itlabsctrl/contents/{+path}","compare_url":"https://api.github.com/repos/XQuader/itlabsctrl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XQuader/itlabsctrl/merges","archive_url":"https://api.github.com/repos/XQuader/itlabsctrl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XQuader/itlabsctrl/downloads","issues_url":"https://api.github.com/repos/XQuader/itlabsctrl/issues{/number}","pulls_url":"https://api.github.com/repos/XQuader/itlabsctrl/pulls{/number}","milestones_url":"https://api.github.com/repos/XQuader/itlabsctrl/milestones{/number}","notifications_url":"https://api.github.com/repos/XQuader/itlabsctrl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XQuader/itlabsctrl/labels{/name}","releases_url":"https://api.github.com/repos/XQuader/itlabsctrl/releases{/id}","deployments_url":"https://api.github.com/repos/XQuader/itlabsctrl/deployments","created_at":"2016-02-04T12:32:14Z","updated_at":"2016-02-09T12:08:40Z","pushed_at":"2016-02-22T14:52:43Z","git_url":"git://github.com/XQuader/itlabsctrl.git","ssh_url":"git@github.com:XQuader/itlabsctrl.git","clone_url":"https://github.com/XQuader/itlabsctrl.git","svn_url":"https://github.com/XQuader/itlabsctrl","homepage":"","size":1018,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/8"},"html":{"href":"https://github.com/XQuader/itlabsctrl/pull/8"},"issue":{"href":"https://api.github.com/repos/XQuader/itlabsctrl/issues/8"},"comments":{"href":"https://api.github.com/repos/XQuader/itlabsctrl/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/XQuader/itlabsctrl/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/XQuader/itlabsctrl/statuses/80fb1a0aa731330fc0680e593d04e063ba4c127f"}}}}