{"action":"opened","number":910,"pull_request":{"url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/910","id":62640723,"html_url":"https://github.com/reactioncommerce/reaction/pull/910","diff_url":"https://github.com/reactioncommerce/reaction/pull/910.diff","patch_url":"https://github.com/reactioncommerce/reaction/pull/910.patch","issue_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/910","number":910,"state":"open","locked":false,"title":"Product.positions refactoring","user":{"login":"newsiberian","id":11130487,"avatar_url":"https://avatars.githubusercontent.com/u/11130487?v=3","gravatar_id":"","url":"https://api.github.com/users/newsiberian","html_url":"https://github.com/newsiberian","followers_url":"https://api.github.com/users/newsiberian/followers","following_url":"https://api.github.com/users/newsiberian/following{/other_user}","gists_url":"https://api.github.com/users/newsiberian/gists{/gist_id}","starred_url":"https://api.github.com/users/newsiberian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsiberian/subscriptions","organizations_url":"https://api.github.com/users/newsiberian/orgs","repos_url":"https://api.github.com/users/newsiberian/repos","events_url":"https://api.github.com/users/newsiberian/events{/privacy}","received_events_url":"https://api.github.com/users/newsiberian/received_events","type":"User","site_admin":false},"body":"Hello, there was a number of bugs with it. And we were using an array to store `positions` which is slow in our case, because, in that case we need to do heavy computations while sorting products.","created_at":"2016-03-12T12:55:29Z","updated_at":"2016-03-12T12:55:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/910/commits","review_comments_url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/910/comments","review_comment_url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/910/comments","statuses_url":"https://api.github.com/repos/reactioncommerce/reaction/statuses/e844919720a171b89c476770c0716ca556ad7b2e","head":{"label":"newsiberian:product-position-refactoring","ref":"product-position-refactoring","sha":"e844919720a171b89c476770c0716ca556ad7b2e","user":{"login":"newsiberian","id":11130487,"avatar_url":"https://avatars.githubusercontent.com/u/11130487?v=3","gravatar_id":"","url":"https://api.github.com/users/newsiberian","html_url":"https://github.com/newsiberian","followers_url":"https://api.github.com/users/newsiberian/followers","following_url":"https://api.github.com/users/newsiberian/following{/other_user}","gists_url":"https://api.github.com/users/newsiberian/gists{/gist_id}","starred_url":"https://api.github.com/users/newsiberian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsiberian/subscriptions","organizations_url":"https://api.github.com/users/newsiberian/orgs","repos_url":"https://api.github.com/users/newsiberian/repos","events_url":"https://api.github.com/users/newsiberian/events{/privacy}","received_events_url":"https://api.github.com/users/newsiberian/received_events","type":"User","site_admin":false},"repo":{"id":47397253,"name":"reaction","full_name":"newsiberian/reaction","owner":{"login":"newsiberian","id":11130487,"avatar_url":"https://avatars.githubusercontent.com/u/11130487?v=3","gravatar_id":"","url":"https://api.github.com/users/newsiberian","html_url":"https://github.com/newsiberian","followers_url":"https://api.github.com/users/newsiberian/followers","following_url":"https://api.github.com/users/newsiberian/following{/other_user}","gists_url":"https://api.github.com/users/newsiberian/gists{/gist_id}","starred_url":"https://api.github.com/users/newsiberian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsiberian/subscriptions","organizations_url":"https://api.github.com/users/newsiberian/orgs","repos_url":"https://api.github.com/users/newsiberian/repos","events_url":"https://api.github.com/users/newsiberian/events{/privacy}","received_events_url":"https://api.github.com/users/newsiberian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/newsiberian/reaction","description":"Reaction Commerce","fork":true,"url":"https://api.github.com/repos/newsiberian/reaction","forks_url":"https://api.github.com/repos/newsiberian/reaction/forks","keys_url":"https://api.github.com/repos/newsiberian/reaction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/newsiberian/reaction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/newsiberian/reaction/teams","hooks_url":"https://api.github.com/repos/newsiberian/reaction/hooks","issue_events_url":"https://api.github.com/repos/newsiberian/reaction/issues/events{/number}","events_url":"https://api.github.com/repos/newsiberian/reaction/events","assignees_url":"https://api.github.com/repos/newsiberian/reaction/assignees{/user}","branches_url":"https://api.github.com/repos/newsiberian/reaction/branches{/branch}","tags_url":"https://api.github.com/repos/newsiberian/reaction/tags","blobs_url":"https://api.github.com/repos/newsiberian/reaction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/newsiberian/reaction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/newsiberian/reaction/git/refs{/sha}","trees_url":"https://api.github.com/repos/newsiberian/reaction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/newsiberian/reaction/statuses/{sha}","languages_url":"https://api.github.com/repos/newsiberian/reaction/languages","stargazers_url":"https://api.github.com/repos/newsiberian/reaction/stargazers","contributors_url":"https://api.github.com/repos/newsiberian/reaction/contributors","subscribers_url":"https://api.github.com/repos/newsiberian/reaction/subscribers","subscription_url":"https://api.github.com/repos/newsiberian/reaction/subscription","commits_url":"https://api.github.com/repos/newsiberian/reaction/commits{/sha}","git_commits_url":"https://api.github.com/repos/newsiberian/reaction/git/commits{/sha}","comments_url":"https://api.github.com/repos/newsiberian/reaction/comments{/number}","issue_comment_url":"https://api.github.com/repos/newsiberian/reaction/issues/comments{/number}","contents_url":"https://api.github.com/repos/newsiberian/reaction/contents/{+path}","compare_url":"https://api.github.com/repos/newsiberian/reaction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/newsiberian/reaction/merges","archive_url":"https://api.github.com/repos/newsiberian/reaction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/newsiberian/reaction/downloads","issues_url":"https://api.github.com/repos/newsiberian/reaction/issues{/number}","pulls_url":"https://api.github.com/repos/newsiberian/reaction/pulls{/number}","milestones_url":"https://api.github.com/repos/newsiberian/reaction/milestones{/number}","notifications_url":"https://api.github.com/repos/newsiberian/reaction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/newsiberian/reaction/labels{/name}","releases_url":"https://api.github.com/repos/newsiberian/reaction/releases{/id}","deployments_url":"https://api.github.com/repos/newsiberian/reaction/deployments","created_at":"2015-12-04T10:24:19Z","updated_at":"2016-01-19T11:20:51Z","pushed_at":"2016-03-12T12:46:51Z","git_url":"git://github.com/newsiberian/reaction.git","ssh_url":"git@github.com:newsiberian/reaction.git","clone_url":"https://github.com/newsiberian/reaction.git","svn_url":"https://github.com/newsiberian/reaction","homepage":"https://reactioncommerce.com/","size":28410,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"development"}},"base":{"label":"reactioncommerce:development","ref":"development","sha":"e762da40086b48743ea025b4f028acf928924a07","user":{"login":"reactioncommerce","id":5605462,"avatar_url":"https://avatars.githubusercontent.com/u/5605462?v=3","gravatar_id":"","url":"https://api.github.com/users/reactioncommerce","html_url":"https://github.com/reactioncommerce","followers_url":"https://api.github.com/users/reactioncommerce/followers","following_url":"https://api.github.com/users/reactioncommerce/following{/other_user}","gists_url":"https://api.github.com/users/reactioncommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/reactioncommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactioncommerce/subscriptions","organizations_url":"https://api.github.com/users/reactioncommerce/orgs","repos_url":"https://api.github.com/users/reactioncommerce/repos","events_url":"https://api.github.com/users/reactioncommerce/events{/privacy}","received_events_url":"https://api.github.com/users/reactioncommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":12926963,"name":"reaction","full_name":"reactioncommerce/reaction","owner":{"login":"reactioncommerce","id":5605462,"avatar_url":"https://avatars.githubusercontent.com/u/5605462?v=3","gravatar_id":"","url":"https://api.github.com/users/reactioncommerce","html_url":"https://github.com/reactioncommerce","followers_url":"https://api.github.com/users/reactioncommerce/followers","following_url":"https://api.github.com/users/reactioncommerce/following{/other_user}","gists_url":"https://api.github.com/users/reactioncommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/reactioncommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactioncommerce/subscriptions","organizations_url":"https://api.github.com/users/reactioncommerce/orgs","repos_url":"https://api.github.com/users/reactioncommerce/repos","events_url":"https://api.github.com/users/reactioncommerce/events{/privacy}","received_events_url":"https://api.github.com/users/reactioncommerce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reactioncommerce/reaction","description":"Reaction Commerce","fork":false,"url":"https://api.github.com/repos/reactioncommerce/reaction","forks_url":"https://api.github.com/repos/reactioncommerce/reaction/forks","keys_url":"https://api.github.com/repos/reactioncommerce/reaction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reactioncommerce/reaction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reactioncommerce/reaction/teams","hooks_url":"https://api.github.com/repos/reactioncommerce/reaction/hooks","issue_events_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/events{/number}","events_url":"https://api.github.com/repos/reactioncommerce/reaction/events","assignees_url":"https://api.github.com/repos/reactioncommerce/reaction/assignees{/user}","branches_url":"https://api.github.com/repos/reactioncommerce/reaction/branches{/branch}","tags_url":"https://api.github.com/repos/reactioncommerce/reaction/tags","blobs_url":"https://api.github.com/repos/reactioncommerce/reaction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reactioncommerce/reaction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reactioncommerce/reaction/git/refs{/sha}","trees_url":"https://api.github.com/repos/reactioncommerce/reaction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reactioncommerce/reaction/statuses/{sha}","languages_url":"https://api.github.com/repos/reactioncommerce/reaction/languages","stargazers_url":"https://api.github.com/repos/reactioncommerce/reaction/stargazers","contributors_url":"https://api.github.com/repos/reactioncommerce/reaction/contributors","subscribers_url":"https://api.github.com/repos/reactioncommerce/reaction/subscribers","subscription_url":"https://api.github.com/repos/reactioncommerce/reaction/subscription","commits_url":"https://api.github.com/repos/reactioncommerce/reaction/commits{/sha}","git_commits_url":"https://api.github.com/repos/reactioncommerce/reaction/git/commits{/sha}","comments_url":"https://api.github.com/repos/reactioncommerce/reaction/comments{/number}","issue_comment_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/comments{/number}","contents_url":"https://api.github.com/repos/reactioncommerce/reaction/contents/{+path}","compare_url":"https://api.github.com/repos/reactioncommerce/reaction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reactioncommerce/reaction/merges","archive_url":"https://api.github.com/repos/reactioncommerce/reaction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reactioncommerce/reaction/downloads","issues_url":"https://api.github.com/repos/reactioncommerce/reaction/issues{/number}","pulls_url":"https://api.github.com/repos/reactioncommerce/reaction/pulls{/number}","milestones_url":"https://api.github.com/repos/reactioncommerce/reaction/milestones{/number}","notifications_url":"https://api.github.com/repos/reactioncommerce/reaction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reactioncommerce/reaction/labels{/name}","releases_url":"https://api.github.com/repos/reactioncommerce/reaction/releases{/id}","deployments_url":"https://api.github.com/repos/reactioncommerce/reaction/deployments","created_at":"2013-09-18T15:30:36Z","updated_at":"2016-03-12T10:39:37Z","pushed_at":"2016-03-12T04:05:29Z","git_url":"git://github.com/reactioncommerce/reaction.git","ssh_url":"git@github.com:reactioncommerce/reaction.git","clone_url":"https://github.com/reactioncommerce/reaction.git","svn_url":"https://github.com/reactioncommerce/reaction","homepage":"https://reactioncommerce.com/","size":31370,"stargazers_count":2080,"watchers_count":2080,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":443,"mirror_url":null,"open_issues_count":196,"forks":443,"open_issues":196,"watchers":2080,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/910"},"html":{"href":"https://github.com/reactioncommerce/reaction/pull/910"},"issue":{"href":"https://api.github.com/repos/reactioncommerce/reaction/issues/910"},"comments":{"href":"https://api.github.com/repos/reactioncommerce/reaction/issues/910/comments"},"review_comments":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/910/comments"},"review_comment":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/910/commits"},"statuses":{"href":"https://api.github.com/repos/reactioncommerce/reaction/statuses/e844919720a171b89c476770c0716ca556ad7b2e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":141,"deletions":132,"changed_files":9}}