{"action":"closed","number":179,"pull_request":{"url":"https://api.github.com/repos/arangamani/jenkins_api_client/pulls/179","id":36331319,"html_url":"https://github.com/arangamani/jenkins_api_client/pull/179","diff_url":"https://github.com/arangamani/jenkins_api_client/pull/179.diff","patch_url":"https://github.com/arangamani/jenkins_api_client/pull/179.patch","issue_url":"https://api.github.com/repos/arangamani/jenkins_api_client/issues/179","number":179,"state":"closed","locked":false,"title":"Cleaning up Node calls to make only one call for the computer item","user":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"body":"Currently calls to things like `is_offline?` and `is_idle?` make two calls to `/computer`: one to get the complete list and then another to find the index value of the computer you're looking for.  \r\n\r\nAlmost all of my Jenkins instances have hundreds of computers, so this is quite expensive.\r\n\r\nThis change here makes all of these methods access JUST the computer and JUST the data you need, and only once.","created_at":"2015-05-27T18:02:11Z","updated_at":"2015-05-29T17:12:02Z","closed_at":"2015-05-29T17:12:02Z","merged_at":"2015-05-29T17:12:02Z","merge_commit_sha":"d69422fc780f183ad09fe19504d3623ec01ec44d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arangamani/jenkins_api_client/pulls/179/commits","review_comments_url":"https://api.github.com/repos/arangamani/jenkins_api_client/pulls/179/comments","review_comment_url":"https://api.github.com/repos/arangamani/jenkins_api_client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arangamani/jenkins_api_client/issues/179/comments","statuses_url":"https://api.github.com/repos/arangamani/jenkins_api_client/statuses/bce54252822963222b14f3b7ff088b328f80e4c9","head":{"label":"stjohnjohnson:SimplifyNodeCalls","ref":"SimplifyNodeCalls","sha":"bce54252822963222b14f3b7ff088b328f80e4c9","user":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"repo":{"id":28749850,"name":"jenkins_api_client","full_name":"stjohnjohnson/jenkins_api_client","owner":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stjohnjohnson/jenkins_api_client","description":"Ruby Client libraries for communicating with Jenkins Remote Access API","fork":true,"url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client","forks_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/forks","keys_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/teams","hooks_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/hooks","issue_events_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/issues/events{/number}","events_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/events","assignees_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/assignees{/user}","branches_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/branches{/branch}","tags_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/tags","blobs_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/statuses/{sha}","languages_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/languages","stargazers_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/stargazers","contributors_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/contributors","subscribers_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/subscribers","subscription_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/subscription","commits_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/contents/{+path}","compare_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/merges","archive_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/downloads","issues_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/issues{/number}","pulls_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/pulls{/number}","milestones_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/milestones{/number}","notifications_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/labels{/name}","releases_url":"https://api.github.com/repos/stjohnjohnson/jenkins_api_client/releases{/id}","created_at":"2015-01-03T17:26:18Z","updated_at":"2015-01-03T17:26:19Z","pushed_at":"2015-05-29T16:48:36Z","git_url":"git://github.com/stjohnjohnson/jenkins_api_client.git","ssh_url":"git@github.com:stjohnjohnson/jenkins_api_client.git","clone_url":"https://github.com/stjohnjohnson/jenkins_api_client.git","svn_url":"https://github.com/stjohnjohnson/jenkins_api_client","homepage":"http://github.arangamani.net/jenkins_api_client/","size":3094,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"arangamani:master","ref":"master","sha":"ced258ad4079989240b3a36d2a04893c602898ee","user":{"login":"arangamani","id":1133812,"avatar_url":"https://avatars.githubusercontent.com/u/1133812?v=3","gravatar_id":"","url":"https://api.github.com/users/arangamani","html_url":"https://github.com/arangamani","followers_url":"https://api.github.com/users/arangamani/followers","following_url":"https://api.github.com/users/arangamani/following{/other_user}","gists_url":"https://api.github.com/users/arangamani/gists{/gist_id}","starred_url":"https://api.github.com/users/arangamani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arangamani/subscriptions","organizations_url":"https://api.github.com/users/arangamani/orgs","repos_url":"https://api.github.com/users/arangamani/repos","events_url":"https://api.github.com/users/arangamani/events{/privacy}","received_events_url":"https://api.github.com/users/arangamani/received_events","type":"User","site_admin":false},"repo":{"id":6223488,"name":"jenkins_api_client","full_name":"arangamani/jenkins_api_client","owner":{"login":"arangamani","id":1133812,"avatar_url":"https://avatars.githubusercontent.com/u/1133812?v=3","gravatar_id":"","url":"https://api.github.com/users/arangamani","html_url":"https://github.com/arangamani","followers_url":"https://api.github.com/users/arangamani/followers","following_url":"https://api.github.com/users/arangamani/following{/other_user}","gists_url":"https://api.github.com/users/arangamani/gists{/gist_id}","starred_url":"https://api.github.com/users/arangamani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arangamani/subscriptions","organizations_url":"https://api.github.com/users/arangamani/orgs","repos_url":"https://api.github.com/users/arangamani/repos","events_url":"https://api.github.com/users/arangamani/events{/privacy}","received_events_url":"https://api.github.com/users/arangamani/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arangamani/jenkins_api_client","description":"Ruby Client libraries for communicating with Jenkins Remote Access API","fork":false,"url":"https://api.github.com/repos/arangamani/jenkins_api_client","forks_url":"https://api.github.com/repos/arangamani/jenkins_api_client/forks","keys_url":"https://api.github.com/repos/arangamani/jenkins_api_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arangamani/jenkins_api_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arangamani/jenkins_api_client/teams","hooks_url":"https://api.github.com/repos/arangamani/jenkins_api_client/hooks","issue_events_url":"https://api.github.com/repos/arangamani/jenkins_api_client/issues/events{/number}","events_url":"https://api.github.com/repos/arangamani/jenkins_api_client/events","assignees_url":"https://api.github.com/repos/arangamani/jenkins_api_client/assignees{/user}","branches_url":"https://api.github.com/repos/arangamani/jenkins_api_client/branches{/branch}","tags_url":"https://api.github.com/repos/arangamani/jenkins_api_client/tags","blobs_url":"https://api.github.com/repos/arangamani/jenkins_api_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arangamani/jenkins_api_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arangamani/jenkins_api_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/arangamani/jenkins_api_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arangamani/jenkins_api_client/statuses/{sha}","languages_url":"https://api.github.com/repos/arangamani/jenkins_api_client/languages","stargazers_url":"https://api.github.com/repos/arangamani/jenkins_api_client/stargazers","contributors_url":"https://api.github.com/repos/arangamani/jenkins_api_client/contributors","subscribers_url":"https://api.github.com/repos/arangamani/jenkins_api_client/subscribers","subscription_url":"https://api.github.com/repos/arangamani/jenkins_api_client/subscription","commits_url":"https://api.github.com/repos/arangamani/jenkins_api_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/arangamani/jenkins_api_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/arangamani/jenkins_api_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/arangamani/jenkins_api_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/arangamani/jenkins_api_client/contents/{+path}","compare_url":"https://api.github.com/repos/arangamani/jenkins_api_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arangamani/jenkins_api_client/merges","archive_url":"https://api.github.com/repos/arangamani/jenkins_api_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arangamani/jenkins_api_client/downloads","issues_url":"https://api.github.com/repos/arangamani/jenkins_api_client/issues{/number}","pulls_url":"https://api.github.com/repos/arangamani/jenkins_api_client/pulls{/number}","milestones_url":"https://api.github.com/repos/arangamani/jenkins_api_client/milestones{/number}","notifications_url":"https://api.github.com/repos/arangamani/jenkins_api_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arangamani/jenkins_api_client/labels{/name}","releases_url":"https://api.github.com/repos/arangamani/jenkins_api_client/releases{/id}","created_at":"2012-10-15T07:57:41Z","updated_at":"2015-05-29T05:23:07Z","pushed_at":"2015-05-29T17:12:02Z","git_url":"git://github.com/arangamani/jenkins_api_client.git","ssh_url":"git@github.com:arangamani/jenkins_api_client.git","clone_url":"https://github.com/arangamani/jenkins_api_client.git","svn_url":"https://github.com/arangamani/jenkins_api_client","homepage":"http://github.arangamani.net/jenkins_api_client/","size":6054,"stargazers_count":173,"watchers_count":173,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":107,"mirror_url":null,"open_issues_count":21,"forks":107,"open_issues":21,"watchers":173,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arangamani/jenkins_api_client/pulls/179"},"html":{"href":"https://github.com/arangamani/jenkins_api_client/pull/179"},"issue":{"href":"https://api.github.com/repos/arangamani/jenkins_api_client/issues/179"},"comments":{"href":"https://api.github.com/repos/arangamani/jenkins_api_client/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/arangamani/jenkins_api_client/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/arangamani/jenkins_api_client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arangamani/jenkins_api_client/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/arangamani/jenkins_api_client/statuses/bce54252822963222b14f3b7ff088b328f80e4c9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"arangamani","id":1133812,"avatar_url":"https://avatars.githubusercontent.com/u/1133812?v=3","gravatar_id":"","url":"https://api.github.com/users/arangamani","html_url":"https://github.com/arangamani","followers_url":"https://api.github.com/users/arangamani/followers","following_url":"https://api.github.com/users/arangamani/following{/other_user}","gists_url":"https://api.github.com/users/arangamani/gists{/gist_id}","starred_url":"https://api.github.com/users/arangamani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arangamani/subscriptions","organizations_url":"https://api.github.com/users/arangamani/orgs","repos_url":"https://api.github.com/users/arangamani/repos","events_url":"https://api.github.com/users/arangamani/events{/privacy}","received_events_url":"https://api.github.com/users/arangamani/received_events","type":"User","site_admin":false},"comments":6,"review_comments":0,"commits":1,"additions":83,"deletions":42,"changed_files":2}}