{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/pulls/6","id":58628735,"html_url":"https://github.com/jprante/elasticsearch-aggregations/pull/6","diff_url":"https://github.com/jprante/elasticsearch-aggregations/pull/6.diff","patch_url":"https://github.com/jprante/elasticsearch-aggregations/pull/6.patch","issue_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/issues/6","number":6,"state":"closed","locked":false,"title":"refactored code to use while loop instead of recursion","user":{"login":"prasad2kin","id":16960235,"avatar_url":"https://avatars.githubusercontent.com/u/16960235?v=3","gravatar_id":"","url":"https://api.github.com/users/prasad2kin","html_url":"https://github.com/prasad2kin","followers_url":"https://api.github.com/users/prasad2kin/followers","following_url":"https://api.github.com/users/prasad2kin/following{/other_user}","gists_url":"https://api.github.com/users/prasad2kin/gists{/gist_id}","starred_url":"https://api.github.com/users/prasad2kin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasad2kin/subscriptions","organizations_url":"https://api.github.com/users/prasad2kin/orgs","repos_url":"https://api.github.com/users/prasad2kin/repos","events_url":"https://api.github.com/users/prasad2kin/events{/privacy}","received_events_url":"https://api.github.com/users/prasad2kin/received_events","type":"User","site_admin":false},"body":"I've committed refactored code to use while loop instead of recursion for issue #3 . I've tested for data that I generated & for \"max_depth=-1\". It runs successfully. \r\n\r\nIf you have any test cases to check against, could you please verify? If all good, then you may merge this pull request.","created_at":"2016-02-08T16:04:34Z","updated_at":"2016-02-09T13:54:10Z","closed_at":"2016-02-09T13:54:10Z","merged_at":"2016-02-09T13:54:10Z","merge_commit_sha":"915fae5fc79cdd1e0f9118eea48afa8b77e326f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/pulls/6/commits","review_comments_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/pulls/6/comments","review_comment_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/issues/6/comments","statuses_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/statuses/99e5d8aa9dffd0f78b175c1a8a98c0a5153ce019","head":{"label":"prasad2kin:master","ref":"master","sha":"99e5d8aa9dffd0f78b175c1a8a98c0a5153ce019","user":{"login":"prasad2kin","id":16960235,"avatar_url":"https://avatars.githubusercontent.com/u/16960235?v=3","gravatar_id":"","url":"https://api.github.com/users/prasad2kin","html_url":"https://github.com/prasad2kin","followers_url":"https://api.github.com/users/prasad2kin/followers","following_url":"https://api.github.com/users/prasad2kin/following{/other_user}","gists_url":"https://api.github.com/users/prasad2kin/gists{/gist_id}","starred_url":"https://api.github.com/users/prasad2kin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasad2kin/subscriptions","organizations_url":"https://api.github.com/users/prasad2kin/orgs","repos_url":"https://api.github.com/users/prasad2kin/repos","events_url":"https://api.github.com/users/prasad2kin/events{/privacy}","received_events_url":"https://api.github.com/users/prasad2kin/received_events","type":"User","site_admin":false},"repo":{"id":50845037,"name":"elasticsearch-aggregations","full_name":"prasad2kin/elasticsearch-aggregations","owner":{"login":"prasad2kin","id":16960235,"avatar_url":"https://avatars.githubusercontent.com/u/16960235?v=3","gravatar_id":"","url":"https://api.github.com/users/prasad2kin","html_url":"https://github.com/prasad2kin","followers_url":"https://api.github.com/users/prasad2kin/followers","following_url":"https://api.github.com/users/prasad2kin/following{/other_user}","gists_url":"https://api.github.com/users/prasad2kin/gists{/gist_id}","starred_url":"https://api.github.com/users/prasad2kin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasad2kin/subscriptions","organizations_url":"https://api.github.com/users/prasad2kin/orgs","repos_url":"https://api.github.com/users/prasad2kin/repos","events_url":"https://api.github.com/users/prasad2kin/events{/privacy}","received_events_url":"https://api.github.com/users/prasad2kin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prasad2kin/elasticsearch-aggregations","description":"More aggregations for Elasticsearch","fork":true,"url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations","forks_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/forks","keys_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/teams","hooks_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/hooks","issue_events_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/issues/events{/number}","events_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/events","assignees_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/assignees{/user}","branches_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/branches{/branch}","tags_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/tags","blobs_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/git/refs{/sha}","trees_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/statuses/{sha}","languages_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/languages","stargazers_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/stargazers","contributors_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/contributors","subscribers_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/subscribers","subscription_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/subscription","commits_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/commits{/sha}","git_commits_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/git/commits{/sha}","comments_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/comments{/number}","issue_comment_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/issues/comments{/number}","contents_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/contents/{+path}","compare_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/merges","archive_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/downloads","issues_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/issues{/number}","pulls_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/pulls{/number}","milestones_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/milestones{/number}","notifications_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/labels{/name}","releases_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/releases{/id}","deployments_url":"https://api.github.com/repos/prasad2kin/elasticsearch-aggregations/deployments","created_at":"2016-02-01T14:34:33Z","updated_at":"2016-02-01T14:34:34Z","pushed_at":"2016-02-08T15:32:30Z","git_url":"git://github.com/prasad2kin/elasticsearch-aggregations.git","ssh_url":"git@github.com:prasad2kin/elasticsearch-aggregations.git","clone_url":"https://github.com/prasad2kin/elasticsearch-aggregations.git","svn_url":"https://github.com/prasad2kin/elasticsearch-aggregations","homepage":null,"size":42,"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":"jprante:master","ref":"master","sha":"117020fec33db730093a148145060c52dd6ec1d4","user":{"login":"jprante","id":635745,"avatar_url":"https://avatars.githubusercontent.com/u/635745?v=3","gravatar_id":"","url":"https://api.github.com/users/jprante","html_url":"https://github.com/jprante","followers_url":"https://api.github.com/users/jprante/followers","following_url":"https://api.github.com/users/jprante/following{/other_user}","gists_url":"https://api.github.com/users/jprante/gists{/gist_id}","starred_url":"https://api.github.com/users/jprante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprante/subscriptions","organizations_url":"https://api.github.com/users/jprante/orgs","repos_url":"https://api.github.com/users/jprante/repos","events_url":"https://api.github.com/users/jprante/events{/privacy}","received_events_url":"https://api.github.com/users/jprante/received_events","type":"User","site_admin":false},"repo":{"id":42956990,"name":"elasticsearch-aggregations","full_name":"jprante/elasticsearch-aggregations","owner":{"login":"jprante","id":635745,"avatar_url":"https://avatars.githubusercontent.com/u/635745?v=3","gravatar_id":"","url":"https://api.github.com/users/jprante","html_url":"https://github.com/jprante","followers_url":"https://api.github.com/users/jprante/followers","following_url":"https://api.github.com/users/jprante/following{/other_user}","gists_url":"https://api.github.com/users/jprante/gists{/gist_id}","starred_url":"https://api.github.com/users/jprante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprante/subscriptions","organizations_url":"https://api.github.com/users/jprante/orgs","repos_url":"https://api.github.com/users/jprante/repos","events_url":"https://api.github.com/users/jprante/events{/privacy}","received_events_url":"https://api.github.com/users/jprante/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jprante/elasticsearch-aggregations","description":"More aggregations for Elasticsearch","fork":false,"url":"https://api.github.com/repos/jprante/elasticsearch-aggregations","forks_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/forks","keys_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/teams","hooks_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/hooks","issue_events_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/issues/events{/number}","events_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/events","assignees_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/assignees{/user}","branches_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/branches{/branch}","tags_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/tags","blobs_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/git/refs{/sha}","trees_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/statuses/{sha}","languages_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/languages","stargazers_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/stargazers","contributors_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/contributors","subscribers_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/subscribers","subscription_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/subscription","commits_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/commits{/sha}","git_commits_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/git/commits{/sha}","comments_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/comments{/number}","issue_comment_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/issues/comments{/number}","contents_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/contents/{+path}","compare_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/merges","archive_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/downloads","issues_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/issues{/number}","pulls_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/pulls{/number}","milestones_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/milestones{/number}","notifications_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/labels{/name}","releases_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/releases{/id}","deployments_url":"https://api.github.com/repos/jprante/elasticsearch-aggregations/deployments","created_at":"2015-09-22T19:47:27Z","updated_at":"2016-01-31T20:13:07Z","pushed_at":"2016-02-09T13:54:10Z","git_url":"git://github.com/jprante/elasticsearch-aggregations.git","ssh_url":"git@github.com:jprante/elasticsearch-aggregations.git","clone_url":"https://github.com/jprante/elasticsearch-aggregations.git","svn_url":"https://github.com/jprante/elasticsearch-aggregations","homepage":null,"size":46,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jprante/elasticsearch-aggregations/pulls/6"},"html":{"href":"https://github.com/jprante/elasticsearch-aggregations/pull/6"},"issue":{"href":"https://api.github.com/repos/jprante/elasticsearch-aggregations/issues/6"},"comments":{"href":"https://api.github.com/repos/jprante/elasticsearch-aggregations/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/jprante/elasticsearch-aggregations/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/jprante/elasticsearch-aggregations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jprante/elasticsearch-aggregations/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/jprante/elasticsearch-aggregations/statuses/99e5d8aa9dffd0f78b175c1a8a98c0a5153ce019"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jprante","id":635745,"avatar_url":"https://avatars.githubusercontent.com/u/635745?v=3","gravatar_id":"","url":"https://api.github.com/users/jprante","html_url":"https://github.com/jprante","followers_url":"https://api.github.com/users/jprante/followers","following_url":"https://api.github.com/users/jprante/following{/other_user}","gists_url":"https://api.github.com/users/jprante/gists{/gist_id}","starred_url":"https://api.github.com/users/jprante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprante/subscriptions","organizations_url":"https://api.github.com/users/jprante/orgs","repos_url":"https://api.github.com/users/jprante/repos","events_url":"https://api.github.com/users/jprante/events{/privacy}","received_events_url":"https://api.github.com/users/jprante/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":36,"deletions":27,"changed_files":1}}