{"action":"created","comment":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/comments/199983309","pull_request_review_id":134205217,"id":199983309,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTk4MzMwOQ==","diff_hunk":"@@ -143,7 +143,11 @@\n           %div\n             = t :footer_legal_data_text\n             = t :footer_legal_data_call\n-            %a{'cookies-policy-modal'=> true, 'cookies-banner'=> @show_cookies_banner}\n+            - if \"#{Spree::Config.privacy_policy_url}\" != \"\"\n+              %a{href: \"#{Spree::Config.privacy_policy_url}\"}\n+                = t :footer_legal_data_privacy_policy\n+              = t :footer_legal_data_call_and\n+            %a{'cookies-policy-modal'=> true, 'cookies-banner'=> @show_cookies_banner && (\"true\" == \"#{Spree::Config.cookies_consent_banner_toggle}\")}","path":"app/views/shared/_footer.html.haml","position":12,"original_position":9,"commit_id":"09eb3416edf7184550ef402de5d36f9b3036b037","original_commit_id":"19062e5101430a710dd841f2b137b887f95868fe","user":{"login":"mkllnk","id":3524483,"node_id":"MDQ6VXNlcjM1MjQ0ODM=","avatar_url":"https://avatars0.githubusercontent.com/u/3524483?v=4","gravatar_id":"","url":"https://api.github.com/users/mkllnk","html_url":"https://github.com/mkllnk","followers_url":"https://api.github.com/users/mkllnk/followers","following_url":"https://api.github.com/users/mkllnk/following{/other_user}","gists_url":"https://api.github.com/users/mkllnk/gists{/gist_id}","starred_url":"https://api.github.com/users/mkllnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkllnk/subscriptions","organizations_url":"https://api.github.com/users/mkllnk/orgs","repos_url":"https://api.github.com/users/mkllnk/repos","events_url":"https://api.github.com/users/mkllnk/events{/privacy}","received_events_url":"https://api.github.com/users/mkllnk/received_events","type":"User","site_admin":false},"body":"Minor style note: missing spaces before `=>`.","created_at":"2018-07-04T00:33:56Z","updated_at":"2018-07-04T00:52:28Z","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2411#discussion_r199983309","pull_request_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2411","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/comments/199983309"},"html":{"href":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2411#discussion_r199983309"},"pull_request":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2411"}}},"pull_request":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2411","id":197786350,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3Nzg2MzUw","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2411","diff_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2411.diff","patch_url":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2411.patch","issue_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2411","number":2411,"state":"open","locked":false,"title":"New Cookies banner","user":{"login":"luisramos0","id":1640378,"node_id":"MDQ6VXNlcjE2NDAzNzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1640378?v=4","gravatar_id":"","url":"https://api.github.com/users/luisramos0","html_url":"https://github.com/luisramos0","followers_url":"https://api.github.com/users/luisramos0/followers","following_url":"https://api.github.com/users/luisramos0/following{/other_user}","gists_url":"https://api.github.com/users/luisramos0/gists{/gist_id}","starred_url":"https://api.github.com/users/luisramos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisramos0/subscriptions","organizations_url":"https://api.github.com/users/luisramos0/orgs","repos_url":"https://api.github.com/users/luisramos0/repos","events_url":"https://api.github.com/users/luisramos0/events{/privacy}","received_events_url":"https://api.github.com/users/luisramos0/received_events","type":"User","site_admin":false},"body":"#### What? Why?\r\n\r\nCloses #2407 (cookies banner) and #2406 (privacy URL).\r\n\r\nNew cookies banner toggle and new cookies banner with accept cookies button working.\r\nPrivacy URL BO setting and respective link on footer also added as part of this PR: issue 2406.\r\n\r\n#### What should we test?\r\n\r\nNew cookie banner with \"accept cookies\" button and link to cookie policy page.\r\nNew footer entry with link  to privacy policy URL.\r\nNew legal settings in BO with cookie banner toggle and privacy URL.\r\n\r\nNeeds to be tested on mobile.\r\n\r\n#### Release notes\r\n\r\nNew cookie banner with \"accept cookies\" button and link to cookie policy page.\r\nNew footer entry with link  to privacy policy URL.\r\nNew legal settings in BO with cookie banner toggle and privacy URL.\r\n\r\n#### Dependencies\r\n\r\nDepends on #2405 ","created_at":"2018-06-27T16:23:59Z","updated_at":"2018-07-04T00:52:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34bf119f9acd9ed7daa6723375bc05ab9c1cd88d","assignee":{"login":"luisramos0","id":1640378,"node_id":"MDQ6VXNlcjE2NDAzNzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1640378?v=4","gravatar_id":"","url":"https://api.github.com/users/luisramos0","html_url":"https://github.com/luisramos0","followers_url":"https://api.github.com/users/luisramos0/followers","following_url":"https://api.github.com/users/luisramos0/following{/other_user}","gists_url":"https://api.github.com/users/luisramos0/gists{/gist_id}","starred_url":"https://api.github.com/users/luisramos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisramos0/subscriptions","organizations_url":"https://api.github.com/users/luisramos0/orgs","repos_url":"https://api.github.com/users/luisramos0/repos","events_url":"https://api.github.com/users/luisramos0/events{/privacy}","received_events_url":"https://api.github.com/users/luisramos0/received_events","type":"User","site_admin":false},"assignees":[{"login":"luisramos0","id":1640378,"node_id":"MDQ6VXNlcjE2NDAzNzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1640378?v=4","gravatar_id":"","url":"https://api.github.com/users/luisramos0","html_url":"https://github.com/luisramos0","followers_url":"https://api.github.com/users/luisramos0/followers","following_url":"https://api.github.com/users/luisramos0/following{/other_user}","gists_url":"https://api.github.com/users/luisramos0/gists{/gist_id}","starred_url":"https://api.github.com/users/luisramos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisramos0/subscriptions","organizations_url":"https://api.github.com/users/luisramos0/orgs","repos_url":"https://api.github.com/users/luisramos0/repos","events_url":"https://api.github.com/users/luisramos0/events{/privacy}","received_events_url":"https://api.github.com/users/luisramos0/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2411/commits","review_comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2411/comments","review_comment_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2411/comments","statuses_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/statuses/09eb3416edf7184550ef402de5d36f9b3036b037","head":{"label":"luisramos0:cookies_banner","ref":"cookies_banner","sha":"09eb3416edf7184550ef402de5d36f9b3036b037","user":{"login":"luisramos0","id":1640378,"node_id":"MDQ6VXNlcjE2NDAzNzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1640378?v=4","gravatar_id":"","url":"https://api.github.com/users/luisramos0","html_url":"https://github.com/luisramos0","followers_url":"https://api.github.com/users/luisramos0/followers","following_url":"https://api.github.com/users/luisramos0/following{/other_user}","gists_url":"https://api.github.com/users/luisramos0/gists{/gist_id}","starred_url":"https://api.github.com/users/luisramos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisramos0/subscriptions","organizations_url":"https://api.github.com/users/luisramos0/orgs","repos_url":"https://api.github.com/users/luisramos0/repos","events_url":"https://api.github.com/users/luisramos0/events{/privacy}","received_events_url":"https://api.github.com/users/luisramos0/received_events","type":"User","site_admin":false},"repo":{"id":134475188,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ0NzUxODg=","name":"openfoodnetwork","full_name":"luisramos0/openfoodnetwork","owner":{"login":"luisramos0","id":1640378,"node_id":"MDQ6VXNlcjE2NDAzNzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1640378?v=4","gravatar_id":"","url":"https://api.github.com/users/luisramos0","html_url":"https://github.com/luisramos0","followers_url":"https://api.github.com/users/luisramos0/followers","following_url":"https://api.github.com/users/luisramos0/following{/other_user}","gists_url":"https://api.github.com/users/luisramos0/gists{/gist_id}","starred_url":"https://api.github.com/users/luisramos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisramos0/subscriptions","organizations_url":"https://api.github.com/users/luisramos0/orgs","repos_url":"https://api.github.com/users/luisramos0/repos","events_url":"https://api.github.com/users/luisramos0/events{/privacy}","received_events_url":"https://api.github.com/users/luisramos0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luisramos0/openfoodnetwork","description":"Connect suppliers, distributors and consumers for the sale and purchase of local produce","fork":true,"url":"https://api.github.com/repos/luisramos0/openfoodnetwork","forks_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/forks","keys_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/teams","hooks_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/hooks","issue_events_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/issues/events{/number}","events_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/events","assignees_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/assignees{/user}","branches_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/branches{/branch}","tags_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/tags","blobs_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/statuses/{sha}","languages_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/languages","stargazers_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/stargazers","contributors_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/contributors","subscribers_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/subscribers","subscription_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/subscription","commits_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/contents/{+path}","compare_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/merges","archive_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/downloads","issues_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/issues{/number}","pulls_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/pulls{/number}","milestones_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/milestones{/number}","notifications_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/labels{/name}","releases_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/releases{/id}","deployments_url":"https://api.github.com/repos/luisramos0/openfoodnetwork/deployments","created_at":"2018-05-22T20:58:53Z","updated_at":"2018-06-28T17:46:52Z","pushed_at":"2018-07-02T14:09:56Z","git_url":"git://github.com/luisramos0/openfoodnetwork.git","ssh_url":"git@github.com:luisramos0/openfoodnetwork.git","clone_url":"https://github.com/luisramos0/openfoodnetwork.git","svn_url":"https://github.com/luisramos0/openfoodnetwork","homepage":"http://openfoodnetwork.org/","size":37769,"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":0,"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":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openfoodfoundation:master","ref":"master","sha":"687612dba89b54b4938f5c9b8e520e55bfe0231b","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-07-03T23:14:34Z","pushed_at":"2018-07-03T23:17:04Z","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":37729,"stargazers_count":288,"watchers_count":288,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":189,"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":189,"open_issues":488,"watchers":288,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2411"},"html":{"href":"https://github.com/openfoodfoundation/openfoodnetwork/pull/2411"},"issue":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2411"},"comments":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/2411/comments"},"review_comments":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2411/comments"},"review_comment":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/pulls/2411/commits"},"statuses":{"href":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/statuses/09eb3416edf7184550ef402de5d36f9b3036b037"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mkllnk"}}