{"action":"opened","number":40,"pull_request":{"url":"https://api.github.com/repos/AgileVentures/TakeMeAway/pulls/40","id":36212648,"html_url":"https://github.com/AgileVentures/TakeMeAway/pull/40","diff_url":"https://github.com/AgileVentures/TakeMeAway/pull/40.diff","patch_url":"https://github.com/AgileVentures/TakeMeAway/pull/40.patch","issue_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/issues/40","number":40,"state":"open","locked":false,"title":"Support for quantity on order_items","user":{"login":"tochman","id":5248170,"avatar_url":"https://avatars.githubusercontent.com/u/5248170?v=3","gravatar_id":"","url":"https://api.github.com/users/tochman","html_url":"https://github.com/tochman","followers_url":"https://api.github.com/users/tochman/followers","following_url":"https://api.github.com/users/tochman/following{/other_user}","gists_url":"https://api.github.com/users/tochman/gists{/gist_id}","starred_url":"https://api.github.com/users/tochman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tochman/subscriptions","organizations_url":"https://api.github.com/users/tochman/orgs","repos_url":"https://api.github.com/users/tochman/repos","events_url":"https://api.github.com/users/tochman/events{/privacy}","received_events_url":"https://api.github.com/users/tochman/received_events","type":"User","site_admin":false},"body":"#### PT story: https://www.pivotaltracker.com/story/show/95301964\r\n\r\n- refactored the Order model to support OrderItems with a quantity attribute\r\n- added OrderItem model and table\r\n- refactored model specs and request specs\r\n- API now supports quantity. Needs to be added in the POST request (see API documentation)\r\n- refactored the AA interface to support manual updates (not successful)\r\n\r\nTODO: There are issues with AA interface, but from the API perspective this is ready to be merged. \r\n","created_at":"2015-05-26T15:11:50Z","updated_at":"2015-05-26T15:11:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/pulls/40/commits","review_comments_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/pulls/40/comments","review_comment_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/issues/40/comments","statuses_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/statuses/b793116ab3b5b27077e7c6cd91bf19b70ad7eaec","head":{"label":"tochman:quantity","ref":"quantity","sha":"b793116ab3b5b27077e7c6cd91bf19b70ad7eaec","user":{"login":"tochman","id":5248170,"avatar_url":"https://avatars.githubusercontent.com/u/5248170?v=3","gravatar_id":"","url":"https://api.github.com/users/tochman","html_url":"https://github.com/tochman","followers_url":"https://api.github.com/users/tochman/followers","following_url":"https://api.github.com/users/tochman/following{/other_user}","gists_url":"https://api.github.com/users/tochman/gists{/gist_id}","starred_url":"https://api.github.com/users/tochman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tochman/subscriptions","organizations_url":"https://api.github.com/users/tochman/orgs","repos_url":"https://api.github.com/users/tochman/repos","events_url":"https://api.github.com/users/tochman/events{/privacy}","received_events_url":"https://api.github.com/users/tochman/received_events","type":"User","site_admin":false},"repo":{"id":34601837,"name":"TakeMeAway","full_name":"tochman/TakeMeAway","owner":{"login":"tochman","id":5248170,"avatar_url":"https://avatars.githubusercontent.com/u/5248170?v=3","gravatar_id":"","url":"https://api.github.com/users/tochman","html_url":"https://github.com/tochman","followers_url":"https://api.github.com/users/tochman/followers","following_url":"https://api.github.com/users/tochman/following{/other_user}","gists_url":"https://api.github.com/users/tochman/gists{/gist_id}","starred_url":"https://api.github.com/users/tochman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tochman/subscriptions","organizations_url":"https://api.github.com/users/tochman/orgs","repos_url":"https://api.github.com/users/tochman/repos","events_url":"https://api.github.com/users/tochman/events{/privacy}","received_events_url":"https://api.github.com/users/tochman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tochman/TakeMeAway","description":"An online restaurant system to manage take away orders.","fork":true,"url":"https://api.github.com/repos/tochman/TakeMeAway","forks_url":"https://api.github.com/repos/tochman/TakeMeAway/forks","keys_url":"https://api.github.com/repos/tochman/TakeMeAway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tochman/TakeMeAway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tochman/TakeMeAway/teams","hooks_url":"https://api.github.com/repos/tochman/TakeMeAway/hooks","issue_events_url":"https://api.github.com/repos/tochman/TakeMeAway/issues/events{/number}","events_url":"https://api.github.com/repos/tochman/TakeMeAway/events","assignees_url":"https://api.github.com/repos/tochman/TakeMeAway/assignees{/user}","branches_url":"https://api.github.com/repos/tochman/TakeMeAway/branches{/branch}","tags_url":"https://api.github.com/repos/tochman/TakeMeAway/tags","blobs_url":"https://api.github.com/repos/tochman/TakeMeAway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tochman/TakeMeAway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tochman/TakeMeAway/git/refs{/sha}","trees_url":"https://api.github.com/repos/tochman/TakeMeAway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tochman/TakeMeAway/statuses/{sha}","languages_url":"https://api.github.com/repos/tochman/TakeMeAway/languages","stargazers_url":"https://api.github.com/repos/tochman/TakeMeAway/stargazers","contributors_url":"https://api.github.com/repos/tochman/TakeMeAway/contributors","subscribers_url":"https://api.github.com/repos/tochman/TakeMeAway/subscribers","subscription_url":"https://api.github.com/repos/tochman/TakeMeAway/subscription","commits_url":"https://api.github.com/repos/tochman/TakeMeAway/commits{/sha}","git_commits_url":"https://api.github.com/repos/tochman/TakeMeAway/git/commits{/sha}","comments_url":"https://api.github.com/repos/tochman/TakeMeAway/comments{/number}","issue_comment_url":"https://api.github.com/repos/tochman/TakeMeAway/issues/comments{/number}","contents_url":"https://api.github.com/repos/tochman/TakeMeAway/contents/{+path}","compare_url":"https://api.github.com/repos/tochman/TakeMeAway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tochman/TakeMeAway/merges","archive_url":"https://api.github.com/repos/tochman/TakeMeAway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tochman/TakeMeAway/downloads","issues_url":"https://api.github.com/repos/tochman/TakeMeAway/issues{/number}","pulls_url":"https://api.github.com/repos/tochman/TakeMeAway/pulls{/number}","milestones_url":"https://api.github.com/repos/tochman/TakeMeAway/milestones{/number}","notifications_url":"https://api.github.com/repos/tochman/TakeMeAway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tochman/TakeMeAway/labels{/name}","releases_url":"https://api.github.com/repos/tochman/TakeMeAway/releases{/id}","created_at":"2015-04-26T07:13:42Z","updated_at":"2015-05-06T11:03:58Z","pushed_at":"2015-05-26T15:07:17Z","git_url":"git://github.com/tochman/TakeMeAway.git","ssh_url":"git@github.com:tochman/TakeMeAway.git","clone_url":"https://github.com/tochman/TakeMeAway.git","svn_url":"https://github.com/tochman/TakeMeAway","homepage":null,"size":476,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"develop"}},"base":{"label":"AgileVentures:develop","ref":"develop","sha":"bbc68c6be4ee3ebcc50e828b3e0af2e1f6908277","user":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"repo":{"id":33832549,"name":"TakeMeAway","full_name":"AgileVentures/TakeMeAway","owner":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgileVentures/TakeMeAway","description":"An online restaurant system to manage take away orders.","fork":false,"url":"https://api.github.com/repos/AgileVentures/TakeMeAway","forks_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/forks","keys_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/teams","hooks_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/hooks","issue_events_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/issues/events{/number}","events_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/events","assignees_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/assignees{/user}","branches_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/branches{/branch}","tags_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/tags","blobs_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/statuses/{sha}","languages_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/languages","stargazers_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/stargazers","contributors_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/contributors","subscribers_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/subscribers","subscription_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/subscription","commits_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/issues/comments{/number}","contents_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/contents/{+path}","compare_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/merges","archive_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/downloads","issues_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/issues{/number}","pulls_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/pulls{/number}","milestones_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/milestones{/number}","notifications_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/labels{/name}","releases_url":"https://api.github.com/repos/AgileVentures/TakeMeAway/releases{/id}","created_at":"2015-04-12T20:26:14Z","updated_at":"2015-05-22T21:36:52Z","pushed_at":"2015-05-26T15:11:51Z","git_url":"git://github.com/AgileVentures/TakeMeAway.git","ssh_url":"git@github.com:AgileVentures/TakeMeAway.git","clone_url":"https://github.com/AgileVentures/TakeMeAway.git","svn_url":"https://github.com/AgileVentures/TakeMeAway","homepage":null,"size":906,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/TakeMeAway/pulls/40"},"html":{"href":"https://github.com/AgileVentures/TakeMeAway/pull/40"},"issue":{"href":"https://api.github.com/repos/AgileVentures/TakeMeAway/issues/40"},"comments":{"href":"https://api.github.com/repos/AgileVentures/TakeMeAway/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/AgileVentures/TakeMeAway/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/AgileVentures/TakeMeAway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AgileVentures/TakeMeAway/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/AgileVentures/TakeMeAway/statuses/b793116ab3b5b27077e7c6cd91bf19b70ad7eaec"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":13,"additions":379,"deletions":111,"changed_files":24}}