{"action":"closed","number":5324,"pull_request":{"url":"https://api.github.com/repos/2600hz/kazoo/pulls/5324","id":236297328,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2Mjk3MzI4","html_url":"https://github.com/2600hz/kazoo/pull/5324","diff_url":"https://github.com/2600hz/kazoo/pull/5324.diff","patch_url":"https://github.com/2600hz/kazoo/pull/5324.patch","issue_url":"https://api.github.com/repos/2600hz/kazoo/issues/5324","number":5324,"state":"closed","locked":false,"title":"Ensure most recent queue stat is returned for call","user":{"login":"aisconn","id":42652936,"node_id":"MDQ6VXNlcjQyNjUyOTM2","avatar_url":"https://avatars2.githubusercontent.com/u/42652936?v=4","gravatar_id":"","url":"https://api.github.com/users/aisconn","html_url":"https://github.com/aisconn","followers_url":"https://api.github.com/users/aisconn/followers","following_url":"https://api.github.com/users/aisconn/following{/other_user}","gists_url":"https://api.github.com/users/aisconn/gists{/gist_id}","starred_url":"https://api.github.com/users/aisconn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aisconn/subscriptions","organizations_url":"https://api.github.com/users/aisconn/orgs","repos_url":"https://api.github.com/users/aisconn/repos","events_url":"https://api.github.com/users/aisconn/events{/privacy}","received_events_url":"https://api.github.com/users/aisconn/received_events","type":"User","site_admin":false},"body":"A call can enter more than one queue, for example in the case where all agents reject the call in the first queue and the callflow routes to a second queue. In this case, the find_call/1 function needs to account for multiple stats returned for a call, and should return the most recent stat, based on when the queue was entered.","created_at":"2018-12-05T19:37:35Z","updated_at":"2018-12-10T19:22:48Z","closed_at":"2018-12-10T19:22:48Z","merged_at":"2018-12-10T19:22:48Z","merge_commit_sha":"3ca8092429e2f81cb97e2abcfaa31f17a59a4c1a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/2600hz/kazoo/pulls/5324/commits","review_comments_url":"https://api.github.com/repos/2600hz/kazoo/pulls/5324/comments","review_comment_url":"https://api.github.com/repos/2600hz/kazoo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2600hz/kazoo/issues/5324/comments","statuses_url":"https://api.github.com/repos/2600hz/kazoo/statuses/c3ce64ada657c7fcb2a26841674e2b0862cac497","head":{"label":"voxter:master-pr-handle-stats-for-multiple-queues-on-call","ref":"master-pr-handle-stats-for-multiple-queues-on-call","sha":"c3ce64ada657c7fcb2a26841674e2b0862cac497","user":{"login":"voxter","id":1634659,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MzQ2NTk=","avatar_url":"https://avatars3.githubusercontent.com/u/1634659?v=4","gravatar_id":"","url":"https://api.github.com/users/voxter","html_url":"https://github.com/voxter","followers_url":"https://api.github.com/users/voxter/followers","following_url":"https://api.github.com/users/voxter/following{/other_user}","gists_url":"https://api.github.com/users/voxter/gists{/gist_id}","starred_url":"https://api.github.com/users/voxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxter/subscriptions","organizations_url":"https://api.github.com/users/voxter/orgs","repos_url":"https://api.github.com/users/voxter/repos","events_url":"https://api.github.com/users/voxter/events{/privacy}","received_events_url":"https://api.github.com/users/voxter/received_events","type":"Organization","site_admin":false},"repo":{"id":25055823,"node_id":"MDEwOlJlcG9zaXRvcnkyNTA1NTgyMw==","name":"kazoo","full_name":"voxter/kazoo","private":false,"owner":{"login":"voxter","id":1634659,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MzQ2NTk=","avatar_url":"https://avatars3.githubusercontent.com/u/1634659?v=4","gravatar_id":"","url":"https://api.github.com/users/voxter","html_url":"https://github.com/voxter","followers_url":"https://api.github.com/users/voxter/followers","following_url":"https://api.github.com/users/voxter/following{/other_user}","gists_url":"https://api.github.com/users/voxter/gists{/gist_id}","starred_url":"https://api.github.com/users/voxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxter/subscriptions","organizations_url":"https://api.github.com/users/voxter/orgs","repos_url":"https://api.github.com/users/voxter/repos","events_url":"https://api.github.com/users/voxter/events{/privacy}","received_events_url":"https://api.github.com/users/voxter/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/voxter/kazoo","description":null,"fork":true,"url":"https://api.github.com/repos/voxter/kazoo","forks_url":"https://api.github.com/repos/voxter/kazoo/forks","keys_url":"https://api.github.com/repos/voxter/kazoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voxter/kazoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voxter/kazoo/teams","hooks_url":"https://api.github.com/repos/voxter/kazoo/hooks","issue_events_url":"https://api.github.com/repos/voxter/kazoo/issues/events{/number}","events_url":"https://api.github.com/repos/voxter/kazoo/events","assignees_url":"https://api.github.com/repos/voxter/kazoo/assignees{/user}","branches_url":"https://api.github.com/repos/voxter/kazoo/branches{/branch}","tags_url":"https://api.github.com/repos/voxter/kazoo/tags","blobs_url":"https://api.github.com/repos/voxter/kazoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voxter/kazoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voxter/kazoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/voxter/kazoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voxter/kazoo/statuses/{sha}","languages_url":"https://api.github.com/repos/voxter/kazoo/languages","stargazers_url":"https://api.github.com/repos/voxter/kazoo/stargazers","contributors_url":"https://api.github.com/repos/voxter/kazoo/contributors","subscribers_url":"https://api.github.com/repos/voxter/kazoo/subscribers","subscription_url":"https://api.github.com/repos/voxter/kazoo/subscription","commits_url":"https://api.github.com/repos/voxter/kazoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/voxter/kazoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/voxter/kazoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/voxter/kazoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/voxter/kazoo/contents/{+path}","compare_url":"https://api.github.com/repos/voxter/kazoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voxter/kazoo/merges","archive_url":"https://api.github.com/repos/voxter/kazoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voxter/kazoo/downloads","issues_url":"https://api.github.com/repos/voxter/kazoo/issues{/number}","pulls_url":"https://api.github.com/repos/voxter/kazoo/pulls{/number}","milestones_url":"https://api.github.com/repos/voxter/kazoo/milestones{/number}","notifications_url":"https://api.github.com/repos/voxter/kazoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voxter/kazoo/labels{/name}","releases_url":"https://api.github.com/repos/voxter/kazoo/releases{/id}","deployments_url":"https://api.github.com/repos/voxter/kazoo/deployments","created_at":"2014-10-10T22:36:58Z","updated_at":"2018-04-14T05:01:39Z","pushed_at":"2018-12-05T19:29:15Z","git_url":"git://github.com/voxter/kazoo.git","ssh_url":"git@github.com:voxter/kazoo.git","clone_url":"https://github.com/voxter/kazoo.git","svn_url":"https://github.com/voxter/kazoo","homepage":"","size":347826,"stargazers_count":4,"watchers_count":4,"language":"Erlang","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"2600hz:master","ref":"master","sha":"7fba957a953149ec092c37a59bc7c4075bdb911f","user":{"login":"2600hz","id":408801,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODgwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/408801?v=4","gravatar_id":"","url":"https://api.github.com/users/2600hz","html_url":"https://github.com/2600hz","followers_url":"https://api.github.com/users/2600hz/followers","following_url":"https://api.github.com/users/2600hz/following{/other_user}","gists_url":"https://api.github.com/users/2600hz/gists{/gist_id}","starred_url":"https://api.github.com/users/2600hz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2600hz/subscriptions","organizations_url":"https://api.github.com/users/2600hz/orgs","repos_url":"https://api.github.com/users/2600hz/repos","events_url":"https://api.github.com/users/2600hz/events{/privacy}","received_events_url":"https://api.github.com/users/2600hz/received_events","type":"Organization","site_admin":false},"repo":{"id":2966241,"node_id":"MDEwOlJlcG9zaXRvcnkyOTY2MjQx","name":"kazoo","full_name":"2600hz/kazoo","private":false,"owner":{"login":"2600hz","id":408801,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODgwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/408801?v=4","gravatar_id":"","url":"https://api.github.com/users/2600hz","html_url":"https://github.com/2600hz","followers_url":"https://api.github.com/users/2600hz/followers","following_url":"https://api.github.com/users/2600hz/following{/other_user}","gists_url":"https://api.github.com/users/2600hz/gists{/gist_id}","starred_url":"https://api.github.com/users/2600hz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2600hz/subscriptions","organizations_url":"https://api.github.com/users/2600hz/orgs","repos_url":"https://api.github.com/users/2600hz/repos","events_url":"https://api.github.com/users/2600hz/events{/privacy}","received_events_url":"https://api.github.com/users/2600hz/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/2600hz/kazoo","description":"The core of an open-source, distributed, highly scalable platform designed to provide robust telecom services","fork":false,"url":"https://api.github.com/repos/2600hz/kazoo","forks_url":"https://api.github.com/repos/2600hz/kazoo/forks","keys_url":"https://api.github.com/repos/2600hz/kazoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2600hz/kazoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2600hz/kazoo/teams","hooks_url":"https://api.github.com/repos/2600hz/kazoo/hooks","issue_events_url":"https://api.github.com/repos/2600hz/kazoo/issues/events{/number}","events_url":"https://api.github.com/repos/2600hz/kazoo/events","assignees_url":"https://api.github.com/repos/2600hz/kazoo/assignees{/user}","branches_url":"https://api.github.com/repos/2600hz/kazoo/branches{/branch}","tags_url":"https://api.github.com/repos/2600hz/kazoo/tags","blobs_url":"https://api.github.com/repos/2600hz/kazoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2600hz/kazoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2600hz/kazoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/2600hz/kazoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2600hz/kazoo/statuses/{sha}","languages_url":"https://api.github.com/repos/2600hz/kazoo/languages","stargazers_url":"https://api.github.com/repos/2600hz/kazoo/stargazers","contributors_url":"https://api.github.com/repos/2600hz/kazoo/contributors","subscribers_url":"https://api.github.com/repos/2600hz/kazoo/subscribers","subscription_url":"https://api.github.com/repos/2600hz/kazoo/subscription","commits_url":"https://api.github.com/repos/2600hz/kazoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/2600hz/kazoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/2600hz/kazoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/2600hz/kazoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/2600hz/kazoo/contents/{+path}","compare_url":"https://api.github.com/repos/2600hz/kazoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2600hz/kazoo/merges","archive_url":"https://api.github.com/repos/2600hz/kazoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2600hz/kazoo/downloads","issues_url":"https://api.github.com/repos/2600hz/kazoo/issues{/number}","pulls_url":"https://api.github.com/repos/2600hz/kazoo/pulls{/number}","milestones_url":"https://api.github.com/repos/2600hz/kazoo/milestones{/number}","notifications_url":"https://api.github.com/repos/2600hz/kazoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2600hz/kazoo/labels{/name}","releases_url":"https://api.github.com/repos/2600hz/kazoo/releases{/id}","deployments_url":"https://api.github.com/repos/2600hz/kazoo/deployments","created_at":"2011-12-12T18:08:02Z","updated_at":"2018-12-10T19:19:40Z","pushed_at":"2018-12-10T19:22:48Z","git_url":"git://github.com/2600hz/kazoo.git","ssh_url":"git@github.com:2600hz/kazoo.git","clone_url":"https://github.com/2600hz/kazoo.git","svn_url":"https://github.com/2600hz/kazoo","homepage":"http://www.2600hz.org/","size":377355,"stargazers_count":641,"watchers_count":641,"language":"Erlang","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":334,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":334,"open_issues":26,"watchers":641,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/5324"},"html":{"href":"https://github.com/2600hz/kazoo/pull/5324"},"issue":{"href":"https://api.github.com/repos/2600hz/kazoo/issues/5324"},"comments":{"href":"https://api.github.com/repos/2600hz/kazoo/issues/5324/comments"},"review_comments":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/5324/comments"},"review_comment":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/5324/commits"},"statuses":{"href":"https://api.github.com/repos/2600hz/kazoo/statuses/c3ce64ada657c7fcb2a26841674e2b0862cac497"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"k-anderson","id":742778,"node_id":"MDQ6VXNlcjc0Mjc3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/742778?v=4","gravatar_id":"","url":"https://api.github.com/users/k-anderson","html_url":"https://github.com/k-anderson","followers_url":"https://api.github.com/users/k-anderson/followers","following_url":"https://api.github.com/users/k-anderson/following{/other_user}","gists_url":"https://api.github.com/users/k-anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/k-anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-anderson/subscriptions","organizations_url":"https://api.github.com/users/k-anderson/orgs","repos_url":"https://api.github.com/users/k-anderson/repos","events_url":"https://api.github.com/users/k-anderson/events{/privacy}","received_events_url":"https://api.github.com/users/k-anderson/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":12,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"k-anderson"}}