{"action":"created","comment":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/comments/205144447","pull_request_review_id":140354280,"id":205144447,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTE0NDQ0Nw==","diff_hunk":"@@ -57,6 +57,19 @@ export default $(document).ready((e) => {\n       }\n     });\n   });\n+  $('.cart__clear').click((e) => {\n+    $.ajax({\n+      url: $('.cart__clear').attr('action'),\n+      method: 'POST',\n+      data: {},\n+      success: (response) => {\n+        $('.badge').html(response.numItems)\n+        $.cookie('alert', 'true', {path: '/cart'});\n+        location.reload();\n+        deliveryAjax();","path":"saleor/static/js/components/cart.js","position":13,"original_position":13,"commit_id":"d20922d1b6389545d4ae9db467ab703ae65d74b2","original_commit_id":"d20922d1b6389545d4ae9db467ab703ae65d74b2","user":{"login":"NyanKiyoshi","id":6186720,"node_id":"MDQ6VXNlcjYxODY3MjA=","avatar_url":"https://avatars0.githubusercontent.com/u/6186720?v=4","gravatar_id":"","url":"https://api.github.com/users/NyanKiyoshi","html_url":"https://github.com/NyanKiyoshi","followers_url":"https://api.github.com/users/NyanKiyoshi/followers","following_url":"https://api.github.com/users/NyanKiyoshi/following{/other_user}","gists_url":"https://api.github.com/users/NyanKiyoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/NyanKiyoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NyanKiyoshi/subscriptions","organizations_url":"https://api.github.com/users/NyanKiyoshi/orgs","repos_url":"https://api.github.com/users/NyanKiyoshi/repos","events_url":"https://api.github.com/users/NyanKiyoshi/events{/privacy}","received_events_url":"https://api.github.com/users/NyanKiyoshi/received_events","type":"User","site_admin":false},"body":"Is it really necessary? In addition, it is called after instructing the browser to reload the page.","created_at":"2018-07-25T14:59:50Z","updated_at":"2018-07-25T15:03:26Z","html_url":"https://github.com/mirumee/saleor/pull/2468#discussion_r205144447","pull_request_url":"https://api.github.com/repos/mirumee/saleor/pulls/2468","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments/205144447"},"html":{"href":"https://github.com/mirumee/saleor/pull/2468#discussion_r205144447"},"pull_request":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/2468"}}},"pull_request":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/2468","id":203864250,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzODY0MjUw","html_url":"https://github.com/mirumee/saleor/pull/2468","diff_url":"https://github.com/mirumee/saleor/pull/2468.diff","patch_url":"https://github.com/mirumee/saleor/pull/2468.patch","issue_url":"https://api.github.com/repos/mirumee/saleor/issues/2468","number":2468,"state":"open","locked":false,"title":"[WIP]2234/ability to clear whole cart","user":{"login":"tomcio1205","id":7680353,"node_id":"MDQ6VXNlcjc2ODAzNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/7680353?v=4","gravatar_id":"","url":"https://api.github.com/users/tomcio1205","html_url":"https://github.com/tomcio1205","followers_url":"https://api.github.com/users/tomcio1205/followers","following_url":"https://api.github.com/users/tomcio1205/following{/other_user}","gists_url":"https://api.github.com/users/tomcio1205/gists{/gist_id}","starred_url":"https://api.github.com/users/tomcio1205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomcio1205/subscriptions","organizations_url":"https://api.github.com/users/tomcio1205/orgs","repos_url":"https://api.github.com/users/tomcio1205/repos","events_url":"https://api.github.com/users/tomcio1205/events{/privacy}","received_events_url":"https://api.github.com/users/tomcio1205/received_events","type":"User","site_admin":false},"body":"I want to merge this change because...\r\n\r\n<!-- Please mention all relevant issue numbers. -->\r\n\r\n### Screenshots\r\n\r\n<!-- If your changes affect the UI, providing \"before\" and \"after\" screenshots will\r\ngreatly reduce the amount of work needed to review your work. -->\r\n\r\n### Pull Request Checklist\r\n\r\n<!-- Please keep this section. It will make maintainer's life easier. -->\r\n\r\n1. [ ] Privileged views and APIs are guarded by proper permission checks.\r\n1. [ ] All visible strings are translated with proper context.\r\n1. [ ] All data-formatting is locale-aware (dates, numbers, and so on).\r\n1. [ ] Database queries are optimized and the number of queries is constant.\r\n1. [ ] The changes are tested.\r\n1. [ ] The code is documented (docstrings, project documentation).\r\n","created_at":"2018-07-25T14:52:00Z","updated_at":"2018-07-25T15:03:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4612503f25630c74e280823485fcd90082cd9a46","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mirumee/saleor/pulls/2468/commits","review_comments_url":"https://api.github.com/repos/mirumee/saleor/pulls/2468/comments","review_comment_url":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mirumee/saleor/issues/2468/comments","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/d20922d1b6389545d4ae9db467ab703ae65d74b2","head":{"label":"tomcio1205:2234/ability-to-clear-whole-cart","ref":"2234/ability-to-clear-whole-cart","sha":"d20922d1b6389545d4ae9db467ab703ae65d74b2","user":{"login":"tomcio1205","id":7680353,"node_id":"MDQ6VXNlcjc2ODAzNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/7680353?v=4","gravatar_id":"","url":"https://api.github.com/users/tomcio1205","html_url":"https://github.com/tomcio1205","followers_url":"https://api.github.com/users/tomcio1205/followers","following_url":"https://api.github.com/users/tomcio1205/following{/other_user}","gists_url":"https://api.github.com/users/tomcio1205/gists{/gist_id}","starred_url":"https://api.github.com/users/tomcio1205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomcio1205/subscriptions","organizations_url":"https://api.github.com/users/tomcio1205/orgs","repos_url":"https://api.github.com/users/tomcio1205/repos","events_url":"https://api.github.com/users/tomcio1205/events{/privacy}","received_events_url":"https://api.github.com/users/tomcio1205/received_events","type":"User","site_admin":false},"repo":{"id":141736479,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE3MzY0Nzk=","name":"saleor","full_name":"tomcio1205/saleor","owner":{"login":"tomcio1205","id":7680353,"node_id":"MDQ6VXNlcjc2ODAzNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/7680353?v=4","gravatar_id":"","url":"https://api.github.com/users/tomcio1205","html_url":"https://github.com/tomcio1205","followers_url":"https://api.github.com/users/tomcio1205/followers","following_url":"https://api.github.com/users/tomcio1205/following{/other_user}","gists_url":"https://api.github.com/users/tomcio1205/gists{/gist_id}","starred_url":"https://api.github.com/users/tomcio1205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomcio1205/subscriptions","organizations_url":"https://api.github.com/users/tomcio1205/orgs","repos_url":"https://api.github.com/users/tomcio1205/repos","events_url":"https://api.github.com/users/tomcio1205/events{/privacy}","received_events_url":"https://api.github.com/users/tomcio1205/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomcio1205/saleor","description":"An e-commerce storefront for Python and Django","fork":true,"url":"https://api.github.com/repos/tomcio1205/saleor","forks_url":"https://api.github.com/repos/tomcio1205/saleor/forks","keys_url":"https://api.github.com/repos/tomcio1205/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomcio1205/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomcio1205/saleor/teams","hooks_url":"https://api.github.com/repos/tomcio1205/saleor/hooks","issue_events_url":"https://api.github.com/repos/tomcio1205/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/tomcio1205/saleor/events","assignees_url":"https://api.github.com/repos/tomcio1205/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/tomcio1205/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/tomcio1205/saleor/tags","blobs_url":"https://api.github.com/repos/tomcio1205/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomcio1205/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomcio1205/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomcio1205/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomcio1205/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/tomcio1205/saleor/languages","stargazers_url":"https://api.github.com/repos/tomcio1205/saleor/stargazers","contributors_url":"https://api.github.com/repos/tomcio1205/saleor/contributors","subscribers_url":"https://api.github.com/repos/tomcio1205/saleor/subscribers","subscription_url":"https://api.github.com/repos/tomcio1205/saleor/subscription","commits_url":"https://api.github.com/repos/tomcio1205/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomcio1205/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomcio1205/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomcio1205/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomcio1205/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/tomcio1205/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomcio1205/saleor/merges","archive_url":"https://api.github.com/repos/tomcio1205/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomcio1205/saleor/downloads","issues_url":"https://api.github.com/repos/tomcio1205/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/tomcio1205/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/tomcio1205/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/tomcio1205/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomcio1205/saleor/labels{/name}","releases_url":"https://api.github.com/repos/tomcio1205/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/tomcio1205/saleor/deployments","created_at":"2018-07-20T16:50:54Z","updated_at":"2018-07-20T16:50:58Z","pushed_at":"2018-07-25T14:47:43Z","git_url":"git://github.com/tomcio1205/saleor.git","ssh_url":"git@github.com:tomcio1205/saleor.git","clone_url":"https://github.com/tomcio1205/saleor.git","svn_url":"https://github.com/tomcio1205/saleor","homepage":"http://getsaleor.com","size":47143,"stargazers_count":0,"watchers_count":0,"language":"Python","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":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mirumee:master","ref":"master","sha":"40216b183ab2b80d9e784eefc513ea94d891f640","user":{"login":"mirumee","id":170574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDU3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"repo":{"id":8162715,"node_id":"MDEwOlJlcG9zaXRvcnk4MTYyNzE1","name":"saleor","full_name":"mirumee/saleor","owner":{"login":"mirumee","id":170574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDU3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirumee/saleor","description":"An e-commerce storefront for Python and Django","fork":false,"url":"https://api.github.com/repos/mirumee/saleor","forks_url":"https://api.github.com/repos/mirumee/saleor/forks","keys_url":"https://api.github.com/repos/mirumee/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirumee/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirumee/saleor/teams","hooks_url":"https://api.github.com/repos/mirumee/saleor/hooks","issue_events_url":"https://api.github.com/repos/mirumee/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/mirumee/saleor/events","assignees_url":"https://api.github.com/repos/mirumee/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/mirumee/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/mirumee/saleor/tags","blobs_url":"https://api.github.com/repos/mirumee/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirumee/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirumee/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirumee/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/mirumee/saleor/languages","stargazers_url":"https://api.github.com/repos/mirumee/saleor/stargazers","contributors_url":"https://api.github.com/repos/mirumee/saleor/contributors","subscribers_url":"https://api.github.com/repos/mirumee/saleor/subscribers","subscription_url":"https://api.github.com/repos/mirumee/saleor/subscription","commits_url":"https://api.github.com/repos/mirumee/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirumee/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirumee/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirumee/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirumee/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/mirumee/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirumee/saleor/merges","archive_url":"https://api.github.com/repos/mirumee/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirumee/saleor/downloads","issues_url":"https://api.github.com/repos/mirumee/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/mirumee/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/mirumee/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/mirumee/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirumee/saleor/labels{/name}","releases_url":"https://api.github.com/repos/mirumee/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/mirumee/saleor/deployments","created_at":"2013-02-12T16:46:39Z","updated_at":"2018-07-25T13:17:21Z","pushed_at":"2018-07-25T14:56:44Z","git_url":"git://github.com/mirumee/saleor.git","ssh_url":"git@github.com:mirumee/saleor.git","clone_url":"https://github.com/mirumee/saleor.git","svn_url":"https://github.com/mirumee/saleor","homepage":"http://getsaleor.com","size":47269,"stargazers_count":2284,"watchers_count":2284,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1079,"mirror_url":null,"archived":false,"open_issues_count":232,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1079,"open_issues":232,"watchers":2284,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/2468"},"html":{"href":"https://github.com/mirumee/saleor/pull/2468"},"issue":{"href":"https://api.github.com/repos/mirumee/saleor/issues/2468"},"comments":{"href":"https://api.github.com/repos/mirumee/saleor/issues/2468/comments"},"review_comments":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/2468/comments"},"review_comment":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/2468/commits"},"statuses":{"href":"https://api.github.com/repos/mirumee/saleor/statuses/d20922d1b6389545d4ae9db467ab703ae65d74b2"}},"author_association":"NONE"}}
{"actor":{"display_login":"NyanKiyoshi"}}