{"action":"closed","number":481,"pull_request":{"url":"https://api.github.com/repos/composer/packagist/pulls/481","id":31575062,"html_url":"https://github.com/composer/packagist/pull/481","diff_url":"https://github.com/composer/packagist/pull/481.diff","patch_url":"https://github.com/composer/packagist/pull/481.patch","issue_url":"https://api.github.com/repos/composer/packagist/issues/481","number":481,"state":"closed","locked":false,"title":" Sorting of search results","user":{"login":"marceloandrader","id":57552,"avatar_url":"https://avatars.githubusercontent.com/u/57552?v=3","gravatar_id":"","url":"https://api.github.com/users/marceloandrader","html_url":"https://github.com/marceloandrader","followers_url":"https://api.github.com/users/marceloandrader/followers","following_url":"https://api.github.com/users/marceloandrader/following{/other_user}","gists_url":"https://api.github.com/users/marceloandrader/gists{/gist_id}","starred_url":"https://api.github.com/users/marceloandrader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marceloandrader/subscriptions","organizations_url":"https://api.github.com/users/marceloandrader/orgs","repos_url":"https://api.github.com/users/marceloandrader/repos","events_url":"https://api.github.com/users/marceloandrader/events{/privacy}","received_events_url":"https://api.github.com/users/marceloandrader/received_events","type":"User","site_admin":false},"body":"This pull request has the changes needed to support sort by downloads or favorites count when searching packages.\r\n\r\nBy downloads:\r\n\r\n![by-download](https://cloud.githubusercontent.com/assets/57552/6742920/eee31a7a-ce61-11e4-974d-8bdf86bf52a5.png)\r\n\r\nBy favorites:\r\n\r\n![by-favorites](https://cloud.githubusercontent.com/assets/57552/6742941/2488a6ea-ce62-11e4-88e3-d4fe98fa6a95.png)\r\n\r\nI've added the downloads and favorites field on the schema.xml on solr and on the packagist:index action to get those values and send them to solr. So when this change goes to production a full re-index will be needed.\r\n\r\nNot sure if this can be a good thing for the repo, but also included some files to create the packagist dev environment as docker contaiers using `docker-compose` to orchestrate the 4 services (web, database, redis, solr) and be up and running with 1 command.\r\n\r\n","created_at":"2015-03-19T23:06:33Z","updated_at":"2015-05-31T14:16:58Z","closed_at":"2015-05-31T14:16:58Z","merged_at":null,"merge_commit_sha":"4db24aa7a10ae9c7c2f0b9b2a75539c8f51be65f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/composer/packagist/pulls/481/commits","review_comments_url":"https://api.github.com/repos/composer/packagist/pulls/481/comments","review_comment_url":"https://api.github.com/repos/composer/packagist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/composer/packagist/issues/481/comments","statuses_url":"https://api.github.com/repos/composer/packagist/statuses/3110981784ce4477c0bfa84237bdd0e5ba187c22","head":{"label":"marceloandrader:allow-sort-on-search","ref":"allow-sort-on-search","sha":"3110981784ce4477c0bfa84237bdd0e5ba187c22","user":{"login":"marceloandrader","id":57552,"avatar_url":"https://avatars.githubusercontent.com/u/57552?v=3","gravatar_id":"","url":"https://api.github.com/users/marceloandrader","html_url":"https://github.com/marceloandrader","followers_url":"https://api.github.com/users/marceloandrader/followers","following_url":"https://api.github.com/users/marceloandrader/following{/other_user}","gists_url":"https://api.github.com/users/marceloandrader/gists{/gist_id}","starred_url":"https://api.github.com/users/marceloandrader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marceloandrader/subscriptions","organizations_url":"https://api.github.com/users/marceloandrader/orgs","repos_url":"https://api.github.com/users/marceloandrader/repos","events_url":"https://api.github.com/users/marceloandrader/events{/privacy}","received_events_url":"https://api.github.com/users/marceloandrader/received_events","type":"User","site_admin":false},"repo":{"id":32481196,"name":"packagist","full_name":"marceloandrader/packagist","owner":{"login":"marceloandrader","id":57552,"avatar_url":"https://avatars.githubusercontent.com/u/57552?v=3","gravatar_id":"","url":"https://api.github.com/users/marceloandrader","html_url":"https://github.com/marceloandrader","followers_url":"https://api.github.com/users/marceloandrader/followers","following_url":"https://api.github.com/users/marceloandrader/following{/other_user}","gists_url":"https://api.github.com/users/marceloandrader/gists{/gist_id}","starred_url":"https://api.github.com/users/marceloandrader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marceloandrader/subscriptions","organizations_url":"https://api.github.com/users/marceloandrader/orgs","repos_url":"https://api.github.com/users/marceloandrader/repos","events_url":"https://api.github.com/users/marceloandrader/events{/privacy}","received_events_url":"https://api.github.com/users/marceloandrader/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marceloandrader/packagist","description":"Package Repository Website","fork":true,"url":"https://api.github.com/repos/marceloandrader/packagist","forks_url":"https://api.github.com/repos/marceloandrader/packagist/forks","keys_url":"https://api.github.com/repos/marceloandrader/packagist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marceloandrader/packagist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marceloandrader/packagist/teams","hooks_url":"https://api.github.com/repos/marceloandrader/packagist/hooks","issue_events_url":"https://api.github.com/repos/marceloandrader/packagist/issues/events{/number}","events_url":"https://api.github.com/repos/marceloandrader/packagist/events","assignees_url":"https://api.github.com/repos/marceloandrader/packagist/assignees{/user}","branches_url":"https://api.github.com/repos/marceloandrader/packagist/branches{/branch}","tags_url":"https://api.github.com/repos/marceloandrader/packagist/tags","blobs_url":"https://api.github.com/repos/marceloandrader/packagist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marceloandrader/packagist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marceloandrader/packagist/git/refs{/sha}","trees_url":"https://api.github.com/repos/marceloandrader/packagist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marceloandrader/packagist/statuses/{sha}","languages_url":"https://api.github.com/repos/marceloandrader/packagist/languages","stargazers_url":"https://api.github.com/repos/marceloandrader/packagist/stargazers","contributors_url":"https://api.github.com/repos/marceloandrader/packagist/contributors","subscribers_url":"https://api.github.com/repos/marceloandrader/packagist/subscribers","subscription_url":"https://api.github.com/repos/marceloandrader/packagist/subscription","commits_url":"https://api.github.com/repos/marceloandrader/packagist/commits{/sha}","git_commits_url":"https://api.github.com/repos/marceloandrader/packagist/git/commits{/sha}","comments_url":"https://api.github.com/repos/marceloandrader/packagist/comments{/number}","issue_comment_url":"https://api.github.com/repos/marceloandrader/packagist/issues/comments{/number}","contents_url":"https://api.github.com/repos/marceloandrader/packagist/contents/{+path}","compare_url":"https://api.github.com/repos/marceloandrader/packagist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marceloandrader/packagist/merges","archive_url":"https://api.github.com/repos/marceloandrader/packagist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marceloandrader/packagist/downloads","issues_url":"https://api.github.com/repos/marceloandrader/packagist/issues{/number}","pulls_url":"https://api.github.com/repos/marceloandrader/packagist/pulls{/number}","milestones_url":"https://api.github.com/repos/marceloandrader/packagist/milestones{/number}","notifications_url":"https://api.github.com/repos/marceloandrader/packagist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marceloandrader/packagist/labels{/name}","releases_url":"https://api.github.com/repos/marceloandrader/packagist/releases{/id}","created_at":"2015-03-18T20:00:56Z","updated_at":"2015-03-18T20:00:56Z","pushed_at":"2015-03-19T22:59:00Z","git_url":"git://github.com/marceloandrader/packagist.git","ssh_url":"git@github.com:marceloandrader/packagist.git","clone_url":"https://github.com/marceloandrader/packagist.git","svn_url":"https://github.com/marceloandrader/packagist","homepage":"http://packagist.org/","size":6859,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"composer:master","ref":"master","sha":"17530758db98e0a63f0fae9f96662fda02602ec2","user":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"repo":{"id":1872943,"name":"packagist","full_name":"composer/packagist","owner":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/composer/packagist","description":"Package Repository Website","fork":false,"url":"https://api.github.com/repos/composer/packagist","forks_url":"https://api.github.com/repos/composer/packagist/forks","keys_url":"https://api.github.com/repos/composer/packagist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/composer/packagist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/composer/packagist/teams","hooks_url":"https://api.github.com/repos/composer/packagist/hooks","issue_events_url":"https://api.github.com/repos/composer/packagist/issues/events{/number}","events_url":"https://api.github.com/repos/composer/packagist/events","assignees_url":"https://api.github.com/repos/composer/packagist/assignees{/user}","branches_url":"https://api.github.com/repos/composer/packagist/branches{/branch}","tags_url":"https://api.github.com/repos/composer/packagist/tags","blobs_url":"https://api.github.com/repos/composer/packagist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/composer/packagist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/composer/packagist/git/refs{/sha}","trees_url":"https://api.github.com/repos/composer/packagist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/composer/packagist/statuses/{sha}","languages_url":"https://api.github.com/repos/composer/packagist/languages","stargazers_url":"https://api.github.com/repos/composer/packagist/stargazers","contributors_url":"https://api.github.com/repos/composer/packagist/contributors","subscribers_url":"https://api.github.com/repos/composer/packagist/subscribers","subscription_url":"https://api.github.com/repos/composer/packagist/subscription","commits_url":"https://api.github.com/repos/composer/packagist/commits{/sha}","git_commits_url":"https://api.github.com/repos/composer/packagist/git/commits{/sha}","comments_url":"https://api.github.com/repos/composer/packagist/comments{/number}","issue_comment_url":"https://api.github.com/repos/composer/packagist/issues/comments{/number}","contents_url":"https://api.github.com/repos/composer/packagist/contents/{+path}","compare_url":"https://api.github.com/repos/composer/packagist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/composer/packagist/merges","archive_url":"https://api.github.com/repos/composer/packagist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/composer/packagist/downloads","issues_url":"https://api.github.com/repos/composer/packagist/issues{/number}","pulls_url":"https://api.github.com/repos/composer/packagist/pulls{/number}","milestones_url":"https://api.github.com/repos/composer/packagist/milestones{/number}","notifications_url":"https://api.github.com/repos/composer/packagist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/composer/packagist/labels{/name}","releases_url":"https://api.github.com/repos/composer/packagist/releases{/id}","created_at":"2011-06-09T20:50:15Z","updated_at":"2015-05-22T09:22:19Z","pushed_at":"2015-05-31T14:02:36Z","git_url":"git://github.com/composer/packagist.git","ssh_url":"git@github.com:composer/packagist.git","clone_url":"https://github.com/composer/packagist.git","svn_url":"https://github.com/composer/packagist","homepage":"http://packagist.org/","size":8249,"stargazers_count":476,"watchers_count":476,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":198,"mirror_url":null,"open_issues_count":54,"forks":198,"open_issues":54,"watchers":476,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/composer/packagist/pulls/481"},"html":{"href":"https://github.com/composer/packagist/pull/481"},"issue":{"href":"https://api.github.com/repos/composer/packagist/issues/481"},"comments":{"href":"https://api.github.com/repos/composer/packagist/issues/481/comments"},"review_comments":{"href":"https://api.github.com/repos/composer/packagist/pulls/481/comments"},"review_comment":{"href":"https://api.github.com/repos/composer/packagist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/composer/packagist/pulls/481/commits"},"statuses":{"href":"https://api.github.com/repos/composer/packagist/statuses/3110981784ce4477c0bfa84237bdd0e5ba187c22"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"commits":4,"additions":264,"deletions":6,"changed_files":17}}