{"action":"opened","number":2368,"pull_request":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2368","id":193746252,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNzQ2MjUy","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2368","diff_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2368.diff","patch_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2368.patch","issue_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2368","number":2368,"state":"open","locked":false,"title":"Uk/admin orders","user":{"login":"Matt-Yorkley","id":9029026,"node_id":"MDQ6VXNlcjkwMjkwMjY=","avatar_url":"https://avatars0.githubusercontent.com/u/9029026?v=4","gravatar_id":"","url":"https://api.github.com/users/Matt-Yorkley","html_url":"https://github.com/Matt-Yorkley","followers_url":"https://api.github.com/users/Matt-Yorkley/followers","following_url":"https://api.github.com/users/Matt-Yorkley/following{/other_user}","gists_url":"https://api.github.com/users/Matt-Yorkley/gists{/gist_id}","starred_url":"https://api.github.com/users/Matt-Yorkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matt-Yorkley/subscriptions","organizations_url":"https://api.github.com/users/Matt-Yorkley/orgs","repos_url":"https://api.github.com/users/Matt-Yorkley/repos","events_url":"https://api.github.com/users/Matt-Yorkley/events{/privacy}","received_events_url":"https://api.github.com/users/Matt-Yorkley/received_events","type":"User","site_admin":false},"body":"#### What? Why?\r\n\r\nCloses #2354 \r\n\r\nCreating orders via admin was throwing errors because #2073 introduced a new validation rule to stop registered customers using the guest checkout, but the old form in for manually creating orders hadn't been updated.\r\n\r\nThe radio button to set a new order to \"guest checkout\" or not has been removed, and is now set automatically depending on if the customer is registered or not.\r\n\r\n#### What should we test?\r\n\r\nCreating orders as enterprise manager via admin, with registered and unregistered users.\r\n\r\n[Should we test on mobile?]\r\n\r\n#### Release notes\r\n\r\nCreating orders via admin will now automatically be set to \"guest checkout\" or not, if the customer is registered or unregistered.\r\n","created_at":"2018-06-08T23:57:09Z","updated_at":"2018-06-08T23:57:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2368/commits","review_comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2368/comments","review_comment_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2368/comments","statuses_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/statuses/c84215e0b1bd34152634b9593385fe3936b8071a","head":{"label":"Matt-Yorkley:uk/admin_orders","ref":"uk/admin_orders","sha":"c84215e0b1bd34152634b9593385fe3936b8071a","user":{"login":"Matt-Yorkley","id":9029026,"node_id":"MDQ6VXNlcjkwMjkwMjY=","avatar_url":"https://avatars0.githubusercontent.com/u/9029026?v=4","gravatar_id":"","url":"https://api.github.com/users/Matt-Yorkley","html_url":"https://github.com/Matt-Yorkley","followers_url":"https://api.github.com/users/Matt-Yorkley/followers","following_url":"https://api.github.com/users/Matt-Yorkley/following{/other_user}","gists_url":"https://api.github.com/users/Matt-Yorkley/gists{/gist_id}","starred_url":"https://api.github.com/users/Matt-Yorkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matt-Yorkley/subscriptions","organizations_url":"https://api.github.com/users/Matt-Yorkley/orgs","repos_url":"https://api.github.com/users/Matt-Yorkley/repos","events_url":"https://api.github.com/users/Matt-Yorkley/events{/privacy}","received_events_url":"https://api.github.com/users/Matt-Yorkley/received_events","type":"User","site_admin":false},"repo":{"id":24829011,"node_id":"MDEwOlJlcG9zaXRvcnkyNDgyOTAxMQ==","name":"openfoodnetwork","full_name":"Matt-Yorkley/openfoodnetwork","owner":{"login":"Matt-Yorkley","id":9029026,"node_id":"MDQ6VXNlcjkwMjkwMjY=","avatar_url":"https://avatars0.githubusercontent.com/u/9029026?v=4","gravatar_id":"","url":"https://api.github.com/users/Matt-Yorkley","html_url":"https://github.com/Matt-Yorkley","followers_url":"https://api.github.com/users/Matt-Yorkley/followers","following_url":"https://api.github.com/users/Matt-Yorkley/following{/other_user}","gists_url":"https://api.github.com/users/Matt-Yorkley/gists{/gist_id}","starred_url":"https://api.github.com/users/Matt-Yorkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matt-Yorkley/subscriptions","organizations_url":"https://api.github.com/users/Matt-Yorkley/orgs","repos_url":"https://api.github.com/users/Matt-Yorkley/repos","events_url":"https://api.github.com/users/Matt-Yorkley/events{/privacy}","received_events_url":"https://api.github.com/users/Matt-Yorkley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Matt-Yorkley/openfoodnetwork","description":"Connect suppliers, distributors and consumers for the sale and purchase of local produce","fork":true,"url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork","forks_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/forks","keys_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/teams","hooks_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/hooks","issue_events_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/issues/events{/number}","events_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/events","assignees_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/assignees{/user}","branches_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/branches{/branch}","tags_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/tags","blobs_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/statuses/{sha}","languages_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/languages","stargazers_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/stargazers","contributors_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/contributors","subscribers_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/subscribers","subscription_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/subscription","commits_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/contents/{+path}","compare_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/merges","archive_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/downloads","issues_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/issues{/number}","pulls_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/pulls{/number}","milestones_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/milestones{/number}","notifications_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/labels{/name}","releases_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/releases{/id}","deployments_url":"https://api.github.com/repos/Matt-Yorkley/openfoodnetwork/deployments","created_at":"2014-10-05T23:46:02Z","updated_at":"2018-06-08T22:34:03Z","pushed_at":"2018-06-08T22:40:28Z","git_url":"git://github.com/Matt-Yorkley/openfoodnetwork.git","ssh_url":"git@github.com:Matt-Yorkley/openfoodnetwork.git","clone_url":"https://github.com/Matt-Yorkley/openfoodnetwork.git","svn_url":"https://github.com/Matt-Yorkley/openfoodnetwork","homepage":null,"size":37751,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"openfoodfoundation:master","ref":"master","sha":"4c9dd4e8a1848e7c3a35fd48725fd2488cf2c021","user":{"login":"openfoodfoundation","id":2578987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1Nzg5ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/2578987?v=4","gravatar_id":"","url":"https://api.github.com/users/openfoodfoundation","html_url":"https://github.com/openfoodfoundation","followers_url":"https://api.github.com/users/openfoodfoundation/followers","following_url":"https://api.github.com/users/openfoodfoundation/following{/other_user}","gists_url":"https://api.github.com/users/openfoodfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/openfoodfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfoodfoundation/subscriptions","organizations_url":"https://api.github.com/users/openfoodfoundation/orgs","repos_url":"https://api.github.com/users/openfoodfoundation/repos","events_url":"https://api.github.com/users/openfoodfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/openfoodfoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":6257856,"node_id":"MDEwOlJlcG9zaXRvcnk2MjU3ODU2","name":"openfoodnetwork","full_name":"openfoodfoundation/openfoodnetwork","owner":{"login":"openfoodfoundation","id":2578987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1Nzg5ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/2578987?v=4","gravatar_id":"","url":"https://api.github.com/users/openfoodfoundation","html_url":"https://github.com/openfoodfoundation","followers_url":"https://api.github.com/users/openfoodfoundation/followers","following_url":"https://api.github.com/users/openfoodfoundation/following{/other_user}","gists_url":"https://api.github.com/users/openfoodfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/openfoodfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfoodfoundation/subscriptions","organizations_url":"https://api.github.com/users/openfoodfoundation/orgs","repos_url":"https://api.github.com/users/openfoodfoundation/repos","events_url":"https://api.github.com/users/openfoodfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/openfoodfoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfoodfoundation/openfoodnetwork","description":"Connect suppliers, distributors and consumers for the sale and purchase of local produce","fork":false,"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork","forks_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/forks","keys_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/teams","hooks_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/hooks","issue_events_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/events{/number}","events_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/events","assignees_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/assignees{/user}","branches_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/branches{/branch}","tags_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/tags","blobs_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/statuses/{sha}","languages_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/languages","stargazers_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/stargazers","contributors_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/contributors","subscribers_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/subscribers","subscription_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/subscription","commits_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/contents/{+path}","compare_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/merges","archive_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/downloads","issues_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues{/number}","pulls_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls{/number}","milestones_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/milestones{/number}","notifications_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/labels{/name}","releases_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/releases{/id}","deployments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/deployments","created_at":"2012-10-17T07:56:23Z","updated_at":"2018-06-08T17:22:03Z","pushed_at":"2018-06-08T20:16:27Z","git_url":"git://github.com/openfoodfoundation/openfoodnetwork.git","ssh_url":"git@github.com:openfoodfoundation/openfoodnetwork.git","clone_url":"https://github.com/openfoodfoundation/openfoodnetwork.git","svn_url":"https://github.com/openfoodfoundation/openfoodnetwork","homepage":"http://openfoodnetwork.org/","size":37502,"stargazers_count":285,"watchers_count":285,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":185,"mirror_url":null,"archived":false,"open_issues_count":488,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":185,"open_issues":488,"watchers":285,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2368"},"html":{"href":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2368"},"issue":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2368"},"comments":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2368/comments"},"review_comments":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2368/comments"},"review_comment":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2368/commits"},"statuses":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/statuses/c84215e0b1bd34152634b9593385fe3936b8071a"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":11,"deletions":3,"changed_files":3}}
{"actor":{"display_login":"Matt-Yorkley"}}