{"action":"created","comment":{"url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/comments/34359423","id":34359423,"diff_hunk":"@@ -0,0 +1,121 @@\n+/**\n+ * Created by clouway on 15-6-15.\n+ */\n+var registerModule = angular.module(\"registerModule\", ['httpModule', 'angularBootstrapNavTree', 'xeditable']);\n+\n+registerModule.service(\"subnetGateway\", [\"httpRequest\", function (httpRequest) {\n+\n+  this.register = function (obj) {\n+    return httpRequest.send(\"POST\", \"/r/subnets/new\", obj);\n+  };\n+}]);\n+\n+registerModule.service('networkGateway', ['httpRequest', function (httpRequest) {\n+\n+  return {\n+\n+    fetchAllByParent: function (id) {","path":"frontend/src/app/modules/RegisterSubnetModule.js","position":null,"original_position":17,"commit_id":"12c44d164251d5f621d1bc976b347abbe2b64578","original_commit_id":"cd23d95a4fedcdccaa3fd4bde90522ff6bcd4c87","user":{"login":"NewestUser","id":7418570,"avatar_url":"https://avatars.githubusercontent.com/u/7418570?v=3","gravatar_id":"","url":"https://api.github.com/users/NewestUser","html_url":"https://github.com/NewestUser","followers_url":"https://api.github.com/users/NewestUser/followers","following_url":"https://api.github.com/users/NewestUser/following{/other_user}","gists_url":"https://api.github.com/users/NewestUser/gists{/gist_id}","starred_url":"https://api.github.com/users/NewestUser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NewestUser/subscriptions","organizations_url":"https://api.github.com/users/NewestUser/orgs","repos_url":"https://api.github.com/users/NewestUser/repos","events_url":"https://api.github.com/users/NewestUser/events{/privacy}","received_events_url":"https://api.github.com/users/NewestUser/received_events","type":"User","site_admin":false},"body":"Yes but I am fetching nodes by their parentId.\r\n\r\nWhen I click on a node with id = 1\r\nI want to get all nodes that have a parentId = 1","created_at":"2015-07-10T14:32:43Z","updated_at":"2015-07-10T14:32:43Z","html_url":"https://github.com/clouway-incubator/subnet-management-system/pull/27#discussion_r34359423","pull_request_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/comments/34359423"},"html":{"href":"https://github.com/clouway-incubator/subnet-management-system/pull/27#discussion_r34359423"},"pull_request":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/27","id":39453407,"html_url":"https://github.com/clouway-incubator/subnet-management-system/pull/27","diff_url":"https://github.com/clouway-incubator/subnet-management-system/pull/27.diff","patch_url":"https://github.com/clouway-incubator/subnet-management-system/pull/27.patch","issue_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/27","number":27,"state":"open","locked":false,"title":"network tree view","user":{"login":"NewestUser","id":7418570,"avatar_url":"https://avatars.githubusercontent.com/u/7418570?v=3","gravatar_id":"","url":"https://api.github.com/users/NewestUser","html_url":"https://github.com/NewestUser","followers_url":"https://api.github.com/users/NewestUser/followers","following_url":"https://api.github.com/users/NewestUser/following{/other_user}","gists_url":"https://api.github.com/users/NewestUser/gists{/gist_id}","starred_url":"https://api.github.com/users/NewestUser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NewestUser/subscriptions","organizations_url":"https://api.github.com/users/NewestUser/orgs","repos_url":"https://api.github.com/users/NewestUser/repos","events_url":"https://api.github.com/users/NewestUser/events{/privacy}","received_events_url":"https://api.github.com/users/NewestUser/received_events","type":"User","site_admin":false},"body":"Added functionality for:\r\n- adding new NetworNode\r\n- deleting existing NetworkNode that is of type leaf\r\n\r\n![screenshot from 2015-07-10 14 31 52](https://cloud.githubusercontent.com/assets/7418570/8617884/f64d172c-2710-11e5-8f7b-1d19f710ef2d.png)\r\n\r\n![screenshot from 2015-07-08 11 38 45](https://cloud.githubusercontent.com/assets/7418570/8566313/f6be7d7e-2565-11e5-970c-055b43252c4e.png)\r\n","created_at":"2015-07-08T08:40:06Z","updated_at":"2015-07-10T14:32:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2d55a0d60147cefe7fbf73d182f28ace0b69df1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/27/commits","review_comments_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/27/comments","review_comment_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/27/comments","statuses_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/statuses/12c44d164251d5f621d1bc976b347abbe2b64578","head":{"label":"NewestUser:m_zlatev","ref":"m_zlatev","sha":"12c44d164251d5f621d1bc976b347abbe2b64578","user":{"login":"NewestUser","id":7418570,"avatar_url":"https://avatars.githubusercontent.com/u/7418570?v=3","gravatar_id":"","url":"https://api.github.com/users/NewestUser","html_url":"https://github.com/NewestUser","followers_url":"https://api.github.com/users/NewestUser/followers","following_url":"https://api.github.com/users/NewestUser/following{/other_user}","gists_url":"https://api.github.com/users/NewestUser/gists{/gist_id}","starred_url":"https://api.github.com/users/NewestUser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NewestUser/subscriptions","organizations_url":"https://api.github.com/users/NewestUser/orgs","repos_url":"https://api.github.com/users/NewestUser/repos","events_url":"https://api.github.com/users/NewestUser/events{/privacy}","received_events_url":"https://api.github.com/users/NewestUser/received_events","type":"User","site_admin":false},"repo":{"id":37460964,"name":"subnet-management-system","full_name":"NewestUser/subnet-management-system","owner":{"login":"NewestUser","id":7418570,"avatar_url":"https://avatars.githubusercontent.com/u/7418570?v=3","gravatar_id":"","url":"https://api.github.com/users/NewestUser","html_url":"https://github.com/NewestUser","followers_url":"https://api.github.com/users/NewestUser/followers","following_url":"https://api.github.com/users/NewestUser/following{/other_user}","gists_url":"https://api.github.com/users/NewestUser/gists{/gist_id}","starred_url":"https://api.github.com/users/NewestUser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NewestUser/subscriptions","organizations_url":"https://api.github.com/users/NewestUser/orgs","repos_url":"https://api.github.com/users/NewestUser/repos","events_url":"https://api.github.com/users/NewestUser/events{/privacy}","received_events_url":"https://api.github.com/users/NewestUser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NewestUser/subnet-management-system","description":"Manage subnets","fork":true,"url":"https://api.github.com/repos/NewestUser/subnet-management-system","forks_url":"https://api.github.com/repos/NewestUser/subnet-management-system/forks","keys_url":"https://api.github.com/repos/NewestUser/subnet-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NewestUser/subnet-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NewestUser/subnet-management-system/teams","hooks_url":"https://api.github.com/repos/NewestUser/subnet-management-system/hooks","issue_events_url":"https://api.github.com/repos/NewestUser/subnet-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/NewestUser/subnet-management-system/events","assignees_url":"https://api.github.com/repos/NewestUser/subnet-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/NewestUser/subnet-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/NewestUser/subnet-management-system/tags","blobs_url":"https://api.github.com/repos/NewestUser/subnet-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NewestUser/subnet-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NewestUser/subnet-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/NewestUser/subnet-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NewestUser/subnet-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/NewestUser/subnet-management-system/languages","stargazers_url":"https://api.github.com/repos/NewestUser/subnet-management-system/stargazers","contributors_url":"https://api.github.com/repos/NewestUser/subnet-management-system/contributors","subscribers_url":"https://api.github.com/repos/NewestUser/subnet-management-system/subscribers","subscription_url":"https://api.github.com/repos/NewestUser/subnet-management-system/subscription","commits_url":"https://api.github.com/repos/NewestUser/subnet-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/NewestUser/subnet-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/NewestUser/subnet-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/NewestUser/subnet-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/NewestUser/subnet-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/NewestUser/subnet-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NewestUser/subnet-management-system/merges","archive_url":"https://api.github.com/repos/NewestUser/subnet-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NewestUser/subnet-management-system/downloads","issues_url":"https://api.github.com/repos/NewestUser/subnet-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/NewestUser/subnet-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/NewestUser/subnet-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/NewestUser/subnet-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NewestUser/subnet-management-system/labels{/name}","releases_url":"https://api.github.com/repos/NewestUser/subnet-management-system/releases{/id}","created_at":"2015-06-15T11:26:15Z","updated_at":"2015-07-08T08:26:30Z","pushed_at":"2015-07-10T12:42:59Z","git_url":"git://github.com/NewestUser/subnet-management-system.git","ssh_url":"git@github.com:NewestUser/subnet-management-system.git","clone_url":"https://github.com/NewestUser/subnet-management-system.git","svn_url":"https://github.com/NewestUser/subnet-management-system","homepage":null,"size":958,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clouway-incubator:master","ref":"master","sha":"1c9a4047cb91cbcee0e7d7b300f2c5ac6fa6ee1c","user":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":37449766,"name":"subnet-management-system","full_name":"clouway-incubator/subnet-management-system","owner":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clouway-incubator/subnet-management-system","description":"Manage subnets","fork":false,"url":"https://api.github.com/repos/clouway-incubator/subnet-management-system","forks_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/forks","keys_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/teams","hooks_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/hooks","issue_events_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/events","assignees_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/tags","blobs_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/languages","stargazers_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/stargazers","contributors_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/contributors","subscribers_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/subscribers","subscription_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/subscription","commits_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/merges","archive_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/downloads","issues_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/labels{/name}","releases_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/releases{/id}","created_at":"2015-06-15T07:19:44Z","updated_at":"2015-06-15T10:25:17Z","pushed_at":"2015-07-10T12:42:59Z","git_url":"git://github.com/clouway-incubator/subnet-management-system.git","ssh_url":"git@github.com:clouway-incubator/subnet-management-system.git","clone_url":"https://github.com/clouway-incubator/subnet-management-system.git","svn_url":"https://github.com/clouway-incubator/subnet-management-system","homepage":null,"size":2619,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/27"},"html":{"href":"https://github.com/clouway-incubator/subnet-management-system/pull/27"},"issue":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/27"},"comments":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/statuses/12c44d164251d5f621d1bc976b347abbe2b64578"}}}}