{"action":"created","comment":{"url":"https://api.github.com/repos/control-center/serviced/pulls/comments/22661098","id":22661098,"diff_hunk":"@@ -0,0 +1,563 @@\n+// serviceService\n+// maintains a list of services and fills out children,\n+// hosts, ips, etc\n+(function() {\n+    'use strict';\n+\n+    // services in tree form\n+    var serviceTree = [],\n+    // service dictionary keyed by id\n+        serviceMap = {},\n+        // make angular share with everybody!\n+        resourcesService, $q;\n+\n+    var UPDATE_FREQUENCY = 3000;\n+\n+    angular.module('servicesService', []).\n+    factory(\"$servicesService\", [\"$rootScope\", \"$q\", \"resourcesService\", \"$interval\", \"$serviceHealth\",\n+    function($rootScope, q, $resourcesService, $interval, serviceHealth){\n+\n+        // share resourcesService throughout\n+        resourcesService = $resourcesService;\n+        $q = q;\n+        init();\n+\n+        return {","path":"web/static/js/modules/serviceService.js","position":25,"original_position":25,"commit_id":"3199630a39d225a3aeff01c85a7fd13f290c3b74","original_commit_id":"3199630a39d225a3aeff01c85a7fd13f290c3b74","user":{"login":"jhanson","id":383463,"avatar_url":"https://avatars.githubusercontent.com/u/383463?v=3","gravatar_id":"","url":"https://api.github.com/users/jhanson","html_url":"https://github.com/jhanson","followers_url":"https://api.github.com/users/jhanson/followers","following_url":"https://api.github.com/users/jhanson/following{/other_user}","gists_url":"https://api.github.com/users/jhanson/gists{/gist_id}","starred_url":"https://api.github.com/users/jhanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhanson/subscriptions","organizations_url":"https://api.github.com/users/jhanson/orgs","repos_url":"https://api.github.com/users/jhanson/repos","events_url":"https://api.github.com/users/jhanson/events{/privacy}","received_events_url":"https://api.github.com/users/jhanson/received_events","type":"User","site_admin":false},"body":"Comment that this is the interface for the services service. ","created_at":"2015-01-08T16:16:17Z","updated_at":"2015-01-08T16:16:17Z","html_url":"https://github.com/control-center/serviced/pull/1444#discussion_r22661098","pull_request_url":"https://api.github.com/repos/control-center/serviced/pulls/1444","_links":{"self":{"href":"https://api.github.com/repos/control-center/serviced/pulls/comments/22661098"},"html":{"href":"https://github.com/control-center/serviced/pull/1444#discussion_r22661098"},"pull_request":{"href":"https://api.github.com/repos/control-center/serviced/pulls/1444"}}},"pull_request":{"url":"https://api.github.com/repos/control-center/serviced/pulls/1444","id":26991254,"html_url":"https://github.com/control-center/serviced/pull/1444","diff_url":"https://github.com/control-center/serviced/pull/1444.diff","patch_url":"https://github.com/control-center/serviced/pull/1444.patch","issue_url":"https://api.github.com/repos/control-center/serviced/issues/1444","number":1444,"state":"open","locked":false,"title":"refactor services","user":{"login":"rDr4g0n","id":1927558,"avatar_url":"https://avatars.githubusercontent.com/u/1927558?v=3","gravatar_id":"","url":"https://api.github.com/users/rDr4g0n","html_url":"https://github.com/rDr4g0n","followers_url":"https://api.github.com/users/rDr4g0n/followers","following_url":"https://api.github.com/users/rDr4g0n/following{/other_user}","gists_url":"https://api.github.com/users/rDr4g0n/gists{/gist_id}","starred_url":"https://api.github.com/users/rDr4g0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rDr4g0n/subscriptions","organizations_url":"https://api.github.com/users/rDr4g0n/orgs","repos_url":"https://api.github.com/users/rDr4g0n/repos","events_url":"https://api.github.com/users/rDr4g0n/events{/privacy}","received_events_url":"https://api.github.com/users/rDr4g0n/received_events","type":"User","site_admin":false},"body":"refactor services to have its own controller.","created_at":"2015-01-07T22:00:32Z","updated_at":"2015-01-08T16:16:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8d0d33a6fc2799c19ddf0ea3fac3bdffd53b296","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/control-center/serviced/pulls/1444/commits","review_comments_url":"https://api.github.com/repos/control-center/serviced/pulls/1444/comments","review_comment_url":"https://api.github.com/repos/control-center/serviced/pulls/comments/{number}","comments_url":"https://api.github.com/repos/control-center/serviced/issues/1444/comments","statuses_url":"https://api.github.com/repos/control-center/serviced/statuses/3199630a39d225a3aeff01c85a7fd13f290c3b74","head":{"label":"control-center:feature/servicesRefactor-2","ref":"feature/servicesRefactor-2","sha":"3199630a39d225a3aeff01c85a7fd13f290c3b74","user":{"login":"control-center","id":8160673,"avatar_url":"https://avatars.githubusercontent.com/u/8160673?v=3","gravatar_id":"","url":"https://api.github.com/users/control-center","html_url":"https://github.com/control-center","followers_url":"https://api.github.com/users/control-center/followers","following_url":"https://api.github.com/users/control-center/following{/other_user}","gists_url":"https://api.github.com/users/control-center/gists{/gist_id}","starred_url":"https://api.github.com/users/control-center/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/control-center/subscriptions","organizations_url":"https://api.github.com/users/control-center/orgs","repos_url":"https://api.github.com/users/control-center/repos","events_url":"https://api.github.com/users/control-center/events{/privacy}","received_events_url":"https://api.github.com/users/control-center/received_events","type":"Organization","site_admin":false},"repo":{"id":11929217,"name":"serviced","full_name":"control-center/serviced","owner":{"login":"control-center","id":8160673,"avatar_url":"https://avatars.githubusercontent.com/u/8160673?v=3","gravatar_id":"","url":"https://api.github.com/users/control-center","html_url":"https://github.com/control-center","followers_url":"https://api.github.com/users/control-center/followers","following_url":"https://api.github.com/users/control-center/following{/other_user}","gists_url":"https://api.github.com/users/control-center/gists{/gist_id}","starred_url":"https://api.github.com/users/control-center/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/control-center/subscriptions","organizations_url":"https://api.github.com/users/control-center/orgs","repos_url":"https://api.github.com/users/control-center/repos","events_url":"https://api.github.com/users/control-center/events{/privacy}","received_events_url":"https://api.github.com/users/control-center/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/control-center/serviced","description":"Serviced is a PaaS runtime. It allows users to create, manage and scale services in a uniform way.","fork":false,"url":"https://api.github.com/repos/control-center/serviced","forks_url":"https://api.github.com/repos/control-center/serviced/forks","keys_url":"https://api.github.com/repos/control-center/serviced/keys{/key_id}","collaborators_url":"https://api.github.com/repos/control-center/serviced/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/control-center/serviced/teams","hooks_url":"https://api.github.com/repos/control-center/serviced/hooks","issue_events_url":"https://api.github.com/repos/control-center/serviced/issues/events{/number}","events_url":"https://api.github.com/repos/control-center/serviced/events","assignees_url":"https://api.github.com/repos/control-center/serviced/assignees{/user}","branches_url":"https://api.github.com/repos/control-center/serviced/branches{/branch}","tags_url":"https://api.github.com/repos/control-center/serviced/tags","blobs_url":"https://api.github.com/repos/control-center/serviced/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/control-center/serviced/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/control-center/serviced/git/refs{/sha}","trees_url":"https://api.github.com/repos/control-center/serviced/git/trees{/sha}","statuses_url":"https://api.github.com/repos/control-center/serviced/statuses/{sha}","languages_url":"https://api.github.com/repos/control-center/serviced/languages","stargazers_url":"https://api.github.com/repos/control-center/serviced/stargazers","contributors_url":"https://api.github.com/repos/control-center/serviced/contributors","subscribers_url":"https://api.github.com/repos/control-center/serviced/subscribers","subscription_url":"https://api.github.com/repos/control-center/serviced/subscription","commits_url":"https://api.github.com/repos/control-center/serviced/commits{/sha}","git_commits_url":"https://api.github.com/repos/control-center/serviced/git/commits{/sha}","comments_url":"https://api.github.com/repos/control-center/serviced/comments{/number}","issue_comment_url":"https://api.github.com/repos/control-center/serviced/issues/comments/{number}","contents_url":"https://api.github.com/repos/control-center/serviced/contents/{+path}","compare_url":"https://api.github.com/repos/control-center/serviced/compare/{base}...{head}","merges_url":"https://api.github.com/repos/control-center/serviced/merges","archive_url":"https://api.github.com/repos/control-center/serviced/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/control-center/serviced/downloads","issues_url":"https://api.github.com/repos/control-center/serviced/issues{/number}","pulls_url":"https://api.github.com/repos/control-center/serviced/pulls{/number}","milestones_url":"https://api.github.com/repos/control-center/serviced/milestones{/number}","notifications_url":"https://api.github.com/repos/control-center/serviced/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/control-center/serviced/labels{/name}","releases_url":"https://api.github.com/repos/control-center/serviced/releases{/id}","created_at":"2013-08-06T16:45:00Z","updated_at":"2015-01-06T16:02:27Z","pushed_at":"2015-01-08T16:03:50Z","git_url":"git://github.com/control-center/serviced.git","ssh_url":"git@github.com:control-center/serviced.git","clone_url":"https://github.com/control-center/serviced.git","svn_url":"https://github.com/control-center/serviced","homepage":null,"size":42976,"stargazers_count":50,"watchers_count":50,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":50,"default_branch":"develop"}},"base":{"label":"control-center:develop","ref":"develop","sha":"5bb198af2fad5ee430b28d20d0159a430767cf04","user":{"login":"control-center","id":8160673,"avatar_url":"https://avatars.githubusercontent.com/u/8160673?v=3","gravatar_id":"","url":"https://api.github.com/users/control-center","html_url":"https://github.com/control-center","followers_url":"https://api.github.com/users/control-center/followers","following_url":"https://api.github.com/users/control-center/following{/other_user}","gists_url":"https://api.github.com/users/control-center/gists{/gist_id}","starred_url":"https://api.github.com/users/control-center/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/control-center/subscriptions","organizations_url":"https://api.github.com/users/control-center/orgs","repos_url":"https://api.github.com/users/control-center/repos","events_url":"https://api.github.com/users/control-center/events{/privacy}","received_events_url":"https://api.github.com/users/control-center/received_events","type":"Organization","site_admin":false},"repo":{"id":11929217,"name":"serviced","full_name":"control-center/serviced","owner":{"login":"control-center","id":8160673,"avatar_url":"https://avatars.githubusercontent.com/u/8160673?v=3","gravatar_id":"","url":"https://api.github.com/users/control-center","html_url":"https://github.com/control-center","followers_url":"https://api.github.com/users/control-center/followers","following_url":"https://api.github.com/users/control-center/following{/other_user}","gists_url":"https://api.github.com/users/control-center/gists{/gist_id}","starred_url":"https://api.github.com/users/control-center/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/control-center/subscriptions","organizations_url":"https://api.github.com/users/control-center/orgs","repos_url":"https://api.github.com/users/control-center/repos","events_url":"https://api.github.com/users/control-center/events{/privacy}","received_events_url":"https://api.github.com/users/control-center/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/control-center/serviced","description":"Serviced is a PaaS runtime. It allows users to create, manage and scale services in a uniform way.","fork":false,"url":"https://api.github.com/repos/control-center/serviced","forks_url":"https://api.github.com/repos/control-center/serviced/forks","keys_url":"https://api.github.com/repos/control-center/serviced/keys{/key_id}","collaborators_url":"https://api.github.com/repos/control-center/serviced/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/control-center/serviced/teams","hooks_url":"https://api.github.com/repos/control-center/serviced/hooks","issue_events_url":"https://api.github.com/repos/control-center/serviced/issues/events{/number}","events_url":"https://api.github.com/repos/control-center/serviced/events","assignees_url":"https://api.github.com/repos/control-center/serviced/assignees{/user}","branches_url":"https://api.github.com/repos/control-center/serviced/branches{/branch}","tags_url":"https://api.github.com/repos/control-center/serviced/tags","blobs_url":"https://api.github.com/repos/control-center/serviced/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/control-center/serviced/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/control-center/serviced/git/refs{/sha}","trees_url":"https://api.github.com/repos/control-center/serviced/git/trees{/sha}","statuses_url":"https://api.github.com/repos/control-center/serviced/statuses/{sha}","languages_url":"https://api.github.com/repos/control-center/serviced/languages","stargazers_url":"https://api.github.com/repos/control-center/serviced/stargazers","contributors_url":"https://api.github.com/repos/control-center/serviced/contributors","subscribers_url":"https://api.github.com/repos/control-center/serviced/subscribers","subscription_url":"https://api.github.com/repos/control-center/serviced/subscription","commits_url":"https://api.github.com/repos/control-center/serviced/commits{/sha}","git_commits_url":"https://api.github.com/repos/control-center/serviced/git/commits{/sha}","comments_url":"https://api.github.com/repos/control-center/serviced/comments{/number}","issue_comment_url":"https://api.github.com/repos/control-center/serviced/issues/comments/{number}","contents_url":"https://api.github.com/repos/control-center/serviced/contents/{+path}","compare_url":"https://api.github.com/repos/control-center/serviced/compare/{base}...{head}","merges_url":"https://api.github.com/repos/control-center/serviced/merges","archive_url":"https://api.github.com/repos/control-center/serviced/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/control-center/serviced/downloads","issues_url":"https://api.github.com/repos/control-center/serviced/issues{/number}","pulls_url":"https://api.github.com/repos/control-center/serviced/pulls{/number}","milestones_url":"https://api.github.com/repos/control-center/serviced/milestones{/number}","notifications_url":"https://api.github.com/repos/control-center/serviced/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/control-center/serviced/labels{/name}","releases_url":"https://api.github.com/repos/control-center/serviced/releases{/id}","created_at":"2013-08-06T16:45:00Z","updated_at":"2015-01-06T16:02:27Z","pushed_at":"2015-01-08T16:03:50Z","git_url":"git://github.com/control-center/serviced.git","ssh_url":"git@github.com:control-center/serviced.git","clone_url":"https://github.com/control-center/serviced.git","svn_url":"https://github.com/control-center/serviced","homepage":null,"size":42976,"stargazers_count":50,"watchers_count":50,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":50,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/control-center/serviced/pulls/1444"},"html":{"href":"https://github.com/control-center/serviced/pull/1444"},"issue":{"href":"https://api.github.com/repos/control-center/serviced/issues/1444"},"comments":{"href":"https://api.github.com/repos/control-center/serviced/issues/1444/comments"},"review_comments":{"href":"https://api.github.com/repos/control-center/serviced/pulls/1444/comments"},"review_comment":{"href":"https://api.github.com/repos/control-center/serviced/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/control-center/serviced/pulls/1444/commits"},"statuses":{"href":"https://api.github.com/repos/control-center/serviced/statuses/3199630a39d225a3aeff01c85a7fd13f290c3b74"}}}}