{"action":"created","comment":{"url":"https://api.github.com/repos/ProboCI/probo/pulls/comments/45256171","id":45256171,"diff_hunk":"@@ -392,15 +408,26 @@ Server.prototype.routes.get['containers'] = function(req, res, next) {\n       infos = infos.map(function(info){\n         return {\n           id: info.Id,\n-          name: info.Name,\n+          name: info.Name.substr(1), // get rid of initial '/' character\n           state: info.State,\n           ports: info.NetworkSettings.Ports\n         }\n       })\n \n+      function stateReducer(running){\n+        return function(count, info){\n+          var state = info.state || info.State","path":"lib/ContainerManager.js","position":78,"original_position":78,"commit_id":"2bb67b5080b267bc7bea049c04519f4724095ffd","original_commit_id":"2bb67b5080b267bc7bea049c04519f4724095ffd","user":{"login":"zanchin","id":281978,"avatar_url":"https://avatars.githubusercontent.com/u/281978?v=3","gravatar_id":"","url":"https://api.github.com/users/zanchin","html_url":"https://github.com/zanchin","followers_url":"https://api.github.com/users/zanchin/followers","following_url":"https://api.github.com/users/zanchin/following{/other_user}","gists_url":"https://api.github.com/users/zanchin/gists{/gist_id}","starred_url":"https://api.github.com/users/zanchin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanchin/subscriptions","organizations_url":"https://api.github.com/users/zanchin/orgs","repos_url":"https://api.github.com/users/zanchin/repos","events_url":"https://api.github.com/users/zanchin/events{/privacy}","received_events_url":"https://api.github.com/users/zanchin/received_events","type":"User","site_admin":false},"body":"It's not docker - this code allowed me to test/run with both the direct `infos` objects before being mapped in the above lines, or on my mapped object with `{id, name, state, ports}`. So in the case, `State` becomes `state`","created_at":"2015-11-18T20:34:59Z","updated_at":"2015-11-18T20:34:59Z","html_url":"https://github.com/ProboCI/probo/pull/9#discussion_r45256171","pull_request_url":"https://api.github.com/repos/ProboCI/probo/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/comments/45256171"},"html":{"href":"https://github.com/ProboCI/probo/pull/9#discussion_r45256171"},"pull_request":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/ProboCI/probo/pulls/9","id":50982955,"html_url":"https://github.com/ProboCI/probo/pull/9","diff_url":"https://github.com/ProboCI/probo/pull/9.diff","patch_url":"https://github.com/ProboCI/probo/pull/9.patch","issue_url":"https://api.github.com/repos/ProboCI/probo/issues/9","number":9,"state":"open","locked":false,"title":"Add container deletion and update api endpoints to container manager","user":{"login":"tizzo","id":245728,"avatar_url":"https://avatars.githubusercontent.com/u/245728?v=3","gravatar_id":"","url":"https://api.github.com/users/tizzo","html_url":"https://github.com/tizzo","followers_url":"https://api.github.com/users/tizzo/followers","following_url":"https://api.github.com/users/tizzo/following{/other_user}","gists_url":"https://api.github.com/users/tizzo/gists{/gist_id}","starred_url":"https://api.github.com/users/tizzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tizzo/subscriptions","organizations_url":"https://api.github.com/users/tizzo/orgs","repos_url":"https://api.github.com/users/tizzo/repos","events_url":"https://api.github.com/users/tizzo/events{/privacy}","received_events_url":"https://api.github.com/users/tizzo/received_events","type":"User","site_admin":false},"body":"Creating this on behalf of @zanchin even though it's not ready for code review.","created_at":"2015-11-17T18:11:53Z","updated_at":"2015-11-18T20:34:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5bb5528056c2c0294e4d95a5f5257bbfabe00163","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ProboCI/probo/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ProboCI/probo/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ProboCI/probo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ProboCI/probo/issues/9/comments","statuses_url":"https://api.github.com/repos/ProboCI/probo/statuses/2bb67b5080b267bc7bea049c04519f4724095ffd","head":{"label":"ProboCI:container_stats","ref":"container_stats","sha":"2bb67b5080b267bc7bea049c04519f4724095ffd","user":{"login":"ProboCI","id":12071240,"avatar_url":"https://avatars.githubusercontent.com/u/12071240?v=3","gravatar_id":"","url":"https://api.github.com/users/ProboCI","html_url":"https://github.com/ProboCI","followers_url":"https://api.github.com/users/ProboCI/followers","following_url":"https://api.github.com/users/ProboCI/following{/other_user}","gists_url":"https://api.github.com/users/ProboCI/gists{/gist_id}","starred_url":"https://api.github.com/users/ProboCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProboCI/subscriptions","organizations_url":"https://api.github.com/users/ProboCI/orgs","repos_url":"https://api.github.com/users/ProboCI/repos","events_url":"https://api.github.com/users/ProboCI/events{/privacy}","received_events_url":"https://api.github.com/users/ProboCI/received_events","type":"Organization","site_admin":false},"repo":{"id":19395939,"name":"probo","full_name":"ProboCI/probo","owner":{"login":"ProboCI","id":12071240,"avatar_url":"https://avatars.githubusercontent.com/u/12071240?v=3","gravatar_id":"","url":"https://api.github.com/users/ProboCI","html_url":"https://github.com/ProboCI","followers_url":"https://api.github.com/users/ProboCI/followers","following_url":"https://api.github.com/users/ProboCI/following{/other_user}","gists_url":"https://api.github.com/users/ProboCI/gists{/gist_id}","starred_url":"https://api.github.com/users/ProboCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProboCI/subscriptions","organizations_url":"https://api.github.com/users/ProboCI/orgs","repos_url":"https://api.github.com/users/ProboCI/repos","events_url":"https://api.github.com/users/ProboCI/events{/privacy}","received_events_url":"https://api.github.com/users/ProboCI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ProboCI/probo","description":"Open source continuous integration and quality assurance.","fork":false,"url":"https://api.github.com/repos/ProboCI/probo","forks_url":"https://api.github.com/repos/ProboCI/probo/forks","keys_url":"https://api.github.com/repos/ProboCI/probo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProboCI/probo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProboCI/probo/teams","hooks_url":"https://api.github.com/repos/ProboCI/probo/hooks","issue_events_url":"https://api.github.com/repos/ProboCI/probo/issues/events{/number}","events_url":"https://api.github.com/repos/ProboCI/probo/events","assignees_url":"https://api.github.com/repos/ProboCI/probo/assignees{/user}","branches_url":"https://api.github.com/repos/ProboCI/probo/branches{/branch}","tags_url":"https://api.github.com/repos/ProboCI/probo/tags","blobs_url":"https://api.github.com/repos/ProboCI/probo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProboCI/probo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProboCI/probo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProboCI/probo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProboCI/probo/statuses/{sha}","languages_url":"https://api.github.com/repos/ProboCI/probo/languages","stargazers_url":"https://api.github.com/repos/ProboCI/probo/stargazers","contributors_url":"https://api.github.com/repos/ProboCI/probo/contributors","subscribers_url":"https://api.github.com/repos/ProboCI/probo/subscribers","subscription_url":"https://api.github.com/repos/ProboCI/probo/subscription","commits_url":"https://api.github.com/repos/ProboCI/probo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProboCI/probo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProboCI/probo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProboCI/probo/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProboCI/probo/contents/{+path}","compare_url":"https://api.github.com/repos/ProboCI/probo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProboCI/probo/merges","archive_url":"https://api.github.com/repos/ProboCI/probo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProboCI/probo/downloads","issues_url":"https://api.github.com/repos/ProboCI/probo/issues{/number}","pulls_url":"https://api.github.com/repos/ProboCI/probo/pulls{/number}","milestones_url":"https://api.github.com/repos/ProboCI/probo/milestones{/number}","notifications_url":"https://api.github.com/repos/ProboCI/probo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProboCI/probo/labels{/name}","releases_url":"https://api.github.com/repos/ProboCI/probo/releases{/id}","created_at":"2014-05-03T05:10:14Z","updated_at":"2015-11-02T19:23:04Z","pushed_at":"2015-11-18T16:07:32Z","git_url":"git://github.com/ProboCI/probo.git","ssh_url":"git@github.com:ProboCI/probo.git","clone_url":"https://github.com/ProboCI/probo.git","svn_url":"https://github.com/ProboCI/probo","homepage":"","size":244,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":17,"default_branch":"master"}},"base":{"label":"ProboCI:master","ref":"master","sha":"4f79099a3454a5ccaba489f68fb28864eeba9432","user":{"login":"ProboCI","id":12071240,"avatar_url":"https://avatars.githubusercontent.com/u/12071240?v=3","gravatar_id":"","url":"https://api.github.com/users/ProboCI","html_url":"https://github.com/ProboCI","followers_url":"https://api.github.com/users/ProboCI/followers","following_url":"https://api.github.com/users/ProboCI/following{/other_user}","gists_url":"https://api.github.com/users/ProboCI/gists{/gist_id}","starred_url":"https://api.github.com/users/ProboCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProboCI/subscriptions","organizations_url":"https://api.github.com/users/ProboCI/orgs","repos_url":"https://api.github.com/users/ProboCI/repos","events_url":"https://api.github.com/users/ProboCI/events{/privacy}","received_events_url":"https://api.github.com/users/ProboCI/received_events","type":"Organization","site_admin":false},"repo":{"id":19395939,"name":"probo","full_name":"ProboCI/probo","owner":{"login":"ProboCI","id":12071240,"avatar_url":"https://avatars.githubusercontent.com/u/12071240?v=3","gravatar_id":"","url":"https://api.github.com/users/ProboCI","html_url":"https://github.com/ProboCI","followers_url":"https://api.github.com/users/ProboCI/followers","following_url":"https://api.github.com/users/ProboCI/following{/other_user}","gists_url":"https://api.github.com/users/ProboCI/gists{/gist_id}","starred_url":"https://api.github.com/users/ProboCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProboCI/subscriptions","organizations_url":"https://api.github.com/users/ProboCI/orgs","repos_url":"https://api.github.com/users/ProboCI/repos","events_url":"https://api.github.com/users/ProboCI/events{/privacy}","received_events_url":"https://api.github.com/users/ProboCI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ProboCI/probo","description":"Open source continuous integration and quality assurance.","fork":false,"url":"https://api.github.com/repos/ProboCI/probo","forks_url":"https://api.github.com/repos/ProboCI/probo/forks","keys_url":"https://api.github.com/repos/ProboCI/probo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProboCI/probo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProboCI/probo/teams","hooks_url":"https://api.github.com/repos/ProboCI/probo/hooks","issue_events_url":"https://api.github.com/repos/ProboCI/probo/issues/events{/number}","events_url":"https://api.github.com/repos/ProboCI/probo/events","assignees_url":"https://api.github.com/repos/ProboCI/probo/assignees{/user}","branches_url":"https://api.github.com/repos/ProboCI/probo/branches{/branch}","tags_url":"https://api.github.com/repos/ProboCI/probo/tags","blobs_url":"https://api.github.com/repos/ProboCI/probo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProboCI/probo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProboCI/probo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProboCI/probo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProboCI/probo/statuses/{sha}","languages_url":"https://api.github.com/repos/ProboCI/probo/languages","stargazers_url":"https://api.github.com/repos/ProboCI/probo/stargazers","contributors_url":"https://api.github.com/repos/ProboCI/probo/contributors","subscribers_url":"https://api.github.com/repos/ProboCI/probo/subscribers","subscription_url":"https://api.github.com/repos/ProboCI/probo/subscription","commits_url":"https://api.github.com/repos/ProboCI/probo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProboCI/probo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProboCI/probo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProboCI/probo/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProboCI/probo/contents/{+path}","compare_url":"https://api.github.com/repos/ProboCI/probo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProboCI/probo/merges","archive_url":"https://api.github.com/repos/ProboCI/probo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProboCI/probo/downloads","issues_url":"https://api.github.com/repos/ProboCI/probo/issues{/number}","pulls_url":"https://api.github.com/repos/ProboCI/probo/pulls{/number}","milestones_url":"https://api.github.com/repos/ProboCI/probo/milestones{/number}","notifications_url":"https://api.github.com/repos/ProboCI/probo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProboCI/probo/labels{/name}","releases_url":"https://api.github.com/repos/ProboCI/probo/releases{/id}","created_at":"2014-05-03T05:10:14Z","updated_at":"2015-11-02T19:23:04Z","pushed_at":"2015-11-18T16:07:32Z","git_url":"git://github.com/ProboCI/probo.git","ssh_url":"git@github.com:ProboCI/probo.git","clone_url":"https://github.com/ProboCI/probo.git","svn_url":"https://github.com/ProboCI/probo","homepage":"","size":244,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/9"},"html":{"href":"https://github.com/ProboCI/probo/pull/9"},"issue":{"href":"https://api.github.com/repos/ProboCI/probo/issues/9"},"comments":{"href":"https://api.github.com/repos/ProboCI/probo/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ProboCI/probo/statuses/2bb67b5080b267bc7bea049c04519f4724095ffd"}}}}