{"action":"closed","number":23,"pull_request":{"url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls/23","id":67167817,"html_url":"https://github.com/cibernox/ember-power-select-with-create/pull/23","diff_url":"https://github.com/cibernox/ember-power-select-with-create/pull/23.diff","patch_url":"https://github.com/cibernox/ember-power-select-with-create/pull/23.patch","issue_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/23","number":23,"state":"closed","locked":false,"title":"Allow the search callback to return an object with a `toArray` method","user":{"login":"felixkiss","id":256075,"avatar_url":"https://avatars.githubusercontent.com/u/256075?v=3","gravatar_id":"","url":"https://api.github.com/users/felixkiss","html_url":"https://github.com/felixkiss","followers_url":"https://api.github.com/users/felixkiss/followers","following_url":"https://api.github.com/users/felixkiss/following{/other_user}","gists_url":"https://api.github.com/users/felixkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/felixkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixkiss/subscriptions","organizations_url":"https://api.github.com/users/felixkiss/orgs","repos_url":"https://api.github.com/users/felixkiss/repos","events_url":"https://api.github.com/users/felixkiss/events{/privacy}","received_events_url":"https://api.github.com/users/felixkiss/received_events","type":"User","site_admin":false},"body":"Closes #12 \r\nCloses #22\r\n\r\nThis adds out-of-the-box support for things like Ember Data promises.\r\nSince a `toArray` method is very common on collection-like implementation\r\nthis will potentially also support other use cases.\r\n\r\nIf your search promise does not return an array or an object with a\r\n`toArray` method, than you can still do the conversion manually like so:\r\n\r\n```js\r\ncustomSearch(term) {\r\n  return somePromise.then(results => {\r\n    let array = convertToArray(results); // convert results to array\r\n    return array;\r\n  });\r\n}\r\n```","created_at":"2016-04-20T11:07:02Z","updated_at":"2016-05-01T21:08:46Z","closed_at":"2016-05-01T21:08:46Z","merged_at":"2016-05-01T21:08:46Z","merge_commit_sha":"c001863f82d687ad398525dffaa17c136771931b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls/23/commits","review_comments_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls/23/comments","review_comment_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/23/comments","statuses_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/statuses/2799126a9da13fbc3108d92c8592e6dfb2796f29","head":{"label":"cibernox:bug/add-support-for-ember-data-promises","ref":"bug/add-support-for-ember-data-promises","sha":"2799126a9da13fbc3108d92c8592e6dfb2796f29","user":{"login":"cibernox","id":265339,"avatar_url":"https://avatars.githubusercontent.com/u/265339?v=3","gravatar_id":"","url":"https://api.github.com/users/cibernox","html_url":"https://github.com/cibernox","followers_url":"https://api.github.com/users/cibernox/followers","following_url":"https://api.github.com/users/cibernox/following{/other_user}","gists_url":"https://api.github.com/users/cibernox/gists{/gist_id}","starred_url":"https://api.github.com/users/cibernox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cibernox/subscriptions","organizations_url":"https://api.github.com/users/cibernox/orgs","repos_url":"https://api.github.com/users/cibernox/repos","events_url":"https://api.github.com/users/cibernox/events{/privacy}","received_events_url":"https://api.github.com/users/cibernox/received_events","type":"User","site_admin":false},"repo":{"id":47840472,"name":"ember-power-select-with-create","full_name":"cibernox/ember-power-select-with-create","owner":{"login":"cibernox","id":265339,"avatar_url":"https://avatars.githubusercontent.com/u/265339?v=3","gravatar_id":"","url":"https://api.github.com/users/cibernox","html_url":"https://github.com/cibernox","followers_url":"https://api.github.com/users/cibernox/followers","following_url":"https://api.github.com/users/cibernox/following{/other_user}","gists_url":"https://api.github.com/users/cibernox/gists{/gist_id}","starred_url":"https://api.github.com/users/cibernox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cibernox/subscriptions","organizations_url":"https://api.github.com/users/cibernox/orgs","repos_url":"https://api.github.com/users/cibernox/repos","events_url":"https://api.github.com/users/cibernox/events{/privacy}","received_events_url":"https://api.github.com/users/cibernox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cibernox/ember-power-select-with-create","description":"Ember-power-select addon with an `Add ${term}` option in the first position","fork":false,"url":"https://api.github.com/repos/cibernox/ember-power-select-with-create","forks_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/forks","keys_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/teams","hooks_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/hooks","issue_events_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/events{/number}","events_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/events","assignees_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/assignees{/user}","branches_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/branches{/branch}","tags_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/tags","blobs_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/refs{/sha}","trees_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/statuses/{sha}","languages_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/languages","stargazers_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/stargazers","contributors_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/contributors","subscribers_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/subscribers","subscription_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/subscription","commits_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/commits{/sha}","git_commits_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/commits{/sha}","comments_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/comments{/number}","issue_comment_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/comments{/number}","contents_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/contents/{+path}","compare_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/merges","archive_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/downloads","issues_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues{/number}","pulls_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls{/number}","milestones_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/milestones{/number}","notifications_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/labels{/name}","releases_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/releases{/id}","deployments_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/deployments","created_at":"2015-12-11T17:19:41Z","updated_at":"2016-04-21T16:42:43Z","pushed_at":"2016-05-01T21:08:46Z","git_url":"git://github.com/cibernox/ember-power-select-with-create.git","ssh_url":"git@github.com:cibernox/ember-power-select-with-create.git","clone_url":"https://github.com/cibernox/ember-power-select-with-create.git","svn_url":"https://github.com/cibernox/ember-power-select-with-create","homepage":null,"size":51,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"cibernox:master","ref":"master","sha":"1d9ddf20b45fad3472b5d826c1654284187030c6","user":{"login":"cibernox","id":265339,"avatar_url":"https://avatars.githubusercontent.com/u/265339?v=3","gravatar_id":"","url":"https://api.github.com/users/cibernox","html_url":"https://github.com/cibernox","followers_url":"https://api.github.com/users/cibernox/followers","following_url":"https://api.github.com/users/cibernox/following{/other_user}","gists_url":"https://api.github.com/users/cibernox/gists{/gist_id}","starred_url":"https://api.github.com/users/cibernox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cibernox/subscriptions","organizations_url":"https://api.github.com/users/cibernox/orgs","repos_url":"https://api.github.com/users/cibernox/repos","events_url":"https://api.github.com/users/cibernox/events{/privacy}","received_events_url":"https://api.github.com/users/cibernox/received_events","type":"User","site_admin":false},"repo":{"id":47840472,"name":"ember-power-select-with-create","full_name":"cibernox/ember-power-select-with-create","owner":{"login":"cibernox","id":265339,"avatar_url":"https://avatars.githubusercontent.com/u/265339?v=3","gravatar_id":"","url":"https://api.github.com/users/cibernox","html_url":"https://github.com/cibernox","followers_url":"https://api.github.com/users/cibernox/followers","following_url":"https://api.github.com/users/cibernox/following{/other_user}","gists_url":"https://api.github.com/users/cibernox/gists{/gist_id}","starred_url":"https://api.github.com/users/cibernox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cibernox/subscriptions","organizations_url":"https://api.github.com/users/cibernox/orgs","repos_url":"https://api.github.com/users/cibernox/repos","events_url":"https://api.github.com/users/cibernox/events{/privacy}","received_events_url":"https://api.github.com/users/cibernox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cibernox/ember-power-select-with-create","description":"Ember-power-select addon with an `Add ${term}` option in the first position","fork":false,"url":"https://api.github.com/repos/cibernox/ember-power-select-with-create","forks_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/forks","keys_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/teams","hooks_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/hooks","issue_events_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/events{/number}","events_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/events","assignees_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/assignees{/user}","branches_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/branches{/branch}","tags_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/tags","blobs_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/refs{/sha}","trees_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/statuses/{sha}","languages_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/languages","stargazers_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/stargazers","contributors_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/contributors","subscribers_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/subscribers","subscription_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/subscription","commits_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/commits{/sha}","git_commits_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/git/commits{/sha}","comments_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/comments{/number}","issue_comment_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/comments{/number}","contents_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/contents/{+path}","compare_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/merges","archive_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/downloads","issues_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues{/number}","pulls_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls{/number}","milestones_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/milestones{/number}","notifications_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/labels{/name}","releases_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/releases{/id}","deployments_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/deployments","created_at":"2015-12-11T17:19:41Z","updated_at":"2016-04-21T16:42:43Z","pushed_at":"2016-05-01T21:08:46Z","git_url":"git://github.com/cibernox/ember-power-select-with-create.git","ssh_url":"git@github.com:cibernox/ember-power-select-with-create.git","clone_url":"https://github.com/cibernox/ember-power-select-with-create.git","svn_url":"https://github.com/cibernox/ember-power-select-with-create","homepage":null,"size":51,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls/23"},"html":{"href":"https://github.com/cibernox/ember-power-select-with-create/pull/23"},"issue":{"href":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/23"},"comments":{"href":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/cibernox/ember-power-select-with-create/statuses/2799126a9da13fbc3108d92c8592e6dfb2796f29"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"felixkiss","id":256075,"avatar_url":"https://avatars.githubusercontent.com/u/256075?v=3","gravatar_id":"","url":"https://api.github.com/users/felixkiss","html_url":"https://github.com/felixkiss","followers_url":"https://api.github.com/users/felixkiss/followers","following_url":"https://api.github.com/users/felixkiss/following{/other_user}","gists_url":"https://api.github.com/users/felixkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/felixkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixkiss/subscriptions","organizations_url":"https://api.github.com/users/felixkiss/orgs","repos_url":"https://api.github.com/users/felixkiss/repos","events_url":"https://api.github.com/users/felixkiss/events{/privacy}","received_events_url":"https://api.github.com/users/felixkiss/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":40,"deletions":1,"changed_files":2}}