{"action":"created","comment":{"url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/comments/205965310","pull_request_review_id":141338915,"id":205965310,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTk2NTMxMA==","diff_hunk":"@@ -0,0 +1,147 @@\n+import React from 'react';\n+import PropTypes from 'prop-types';\n+\n+const SubjectContext = React.createContext();\n+\n+const DEFAULT_STATE = {\n+  isFetched: false,\n+  isLoading: false,\n+  isErased: false,\n+  data: null,\n+  status: null\n+};\n+\n+let originalLocalStorageSetItem;\n+const EVENT_NAME = 'localStorage.itemInserted';\n+const LOCAL_STORAGE_EVENTS = [EVENT_NAME, 'storage'];\n+\n+function upgradeLocalStorage() {\n+  if (originalLocalStorageSetItem) {\n+    return;\n+  }\n+\n+  originalLocalStorageSetItem = localStorage.setItem;\n+  localStorage.setItem = function() {","path":"frontend/src/containers/SubjectContext.js","position":24,"original_position":24,"commit_id":"3792b660931be3fd1e3456fb6fccbf790f23d275","original_commit_id":"3792b660931be3fd1e3456fb6fccbf790f23d275","user":{"login":"Nelrohd","id":1664480,"node_id":"MDQ6VXNlcjE2NjQ0ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1664480?v=4","gravatar_id":"","url":"https://api.github.com/users/Nelrohd","html_url":"https://github.com/Nelrohd","followers_url":"https://api.github.com/users/Nelrohd/followers","following_url":"https://api.github.com/users/Nelrohd/following{/other_user}","gists_url":"https://api.github.com/users/Nelrohd/gists{/gist_id}","starred_url":"https://api.github.com/users/Nelrohd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nelrohd/subscriptions","organizations_url":"https://api.github.com/users/Nelrohd/orgs","repos_url":"https://api.github.com/users/Nelrohd/repos","events_url":"https://api.github.com/users/Nelrohd/events{/privacy}","received_events_url":"https://api.github.com/users/Nelrohd/received_events","type":"User","site_admin":false},"body":"ES6 -> ```() => {```","created_at":"2018-07-29T08:26:51Z","updated_at":"2018-07-29T08:30:40Z","html_url":"https://github.com/ClearGDPR/ClearGDPR/pull/358#discussion_r205965310","pull_request_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/358","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/comments/205965310"},"html":{"href":"https://github.com/ClearGDPR/ClearGDPR/pull/358#discussion_r205965310"},"pull_request":{"href":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/358"}}},"pull_request":{"url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/358","id":204167677,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MTY3Njc3","html_url":"https://github.com/ClearGDPR/ClearGDPR/pull/358","diff_url":"https://github.com/ClearGDPR/ClearGDPR/pull/358.diff","patch_url":"https://github.com/ClearGDPR/ClearGDPR/pull/358.patch","issue_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues/358","number":358,"state":"open","locked":false,"title":"Feature/request to be forgotten","user":{"login":"segoddnja","id":1170038,"node_id":"MDQ6VXNlcjExNzAwMzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1170038?v=4","gravatar_id":"","url":"https://api.github.com/users/segoddnja","html_url":"https://github.com/segoddnja","followers_url":"https://api.github.com/users/segoddnja/followers","following_url":"https://api.github.com/users/segoddnja/following{/other_user}","gists_url":"https://api.github.com/users/segoddnja/gists{/gist_id}","starred_url":"https://api.github.com/users/segoddnja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segoddnja/subscriptions","organizations_url":"https://api.github.com/users/segoddnja/orgs","repos_url":"https://api.github.com/users/segoddnja/repos","events_url":"https://api.github.com/users/segoddnja/events{/privacy}","received_events_url":"https://api.github.com/users/segoddnja/received_events","type":"User","site_admin":false},"body":"Implemented next features for demo frontend:\r\n- global subject context to get access to data and status\r\n- high order component to wrap specific components and display `data erased` screen when it is necessary\r\n- boilerplate `loading` and `data erased` screens\r\n\r\ncloses #176 ","created_at":"2018-07-26T14:47:49Z","updated_at":"2018-07-29T08:30:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acfb797cf5529216c81418407cf771574c323c1b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"fjcero","id":1077188,"node_id":"MDQ6VXNlcjEwNzcxODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1077188?v=4","gravatar_id":"","url":"https://api.github.com/users/fjcero","html_url":"https://github.com/fjcero","followers_url":"https://api.github.com/users/fjcero/followers","following_url":"https://api.github.com/users/fjcero/following{/other_user}","gists_url":"https://api.github.com/users/fjcero/gists{/gist_id}","starred_url":"https://api.github.com/users/fjcero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjcero/subscriptions","organizations_url":"https://api.github.com/users/fjcero/orgs","repos_url":"https://api.github.com/users/fjcero/repos","events_url":"https://api.github.com/users/fjcero/events{/privacy}","received_events_url":"https://api.github.com/users/fjcero/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/358/commits","review_comments_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/358/comments","review_comment_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues/358/comments","statuses_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/statuses/3792b660931be3fd1e3456fb6fccbf790f23d275","head":{"label":"ClearGDPR:feature/request-to-be-forgotten","ref":"feature/request-to-be-forgotten","sha":"3792b660931be3fd1e3456fb6fccbf790f23d275","user":{"login":"ClearGDPR","id":39530558,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NTMwNTU4","avatar_url":"https://avatars1.githubusercontent.com/u/39530558?v=4","gravatar_id":"","url":"https://api.github.com/users/ClearGDPR","html_url":"https://github.com/ClearGDPR","followers_url":"https://api.github.com/users/ClearGDPR/followers","following_url":"https://api.github.com/users/ClearGDPR/following{/other_user}","gists_url":"https://api.github.com/users/ClearGDPR/gists{/gist_id}","starred_url":"https://api.github.com/users/ClearGDPR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClearGDPR/subscriptions","organizations_url":"https://api.github.com/users/ClearGDPR/orgs","repos_url":"https://api.github.com/users/ClearGDPR/repos","events_url":"https://api.github.com/users/ClearGDPR/events{/privacy}","received_events_url":"https://api.github.com/users/ClearGDPR/received_events","type":"Organization","site_admin":false},"repo":{"id":134732441,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ3MzI0NDE=","name":"ClearGDPR","full_name":"ClearGDPR/ClearGDPR","owner":{"login":"ClearGDPR","id":39530558,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NTMwNTU4","avatar_url":"https://avatars1.githubusercontent.com/u/39530558?v=4","gravatar_id":"","url":"https://api.github.com/users/ClearGDPR","html_url":"https://github.com/ClearGDPR","followers_url":"https://api.github.com/users/ClearGDPR/followers","following_url":"https://api.github.com/users/ClearGDPR/following{/other_user}","gists_url":"https://api.github.com/users/ClearGDPR/gists{/gist_id}","starred_url":"https://api.github.com/users/ClearGDPR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClearGDPR/subscriptions","organizations_url":"https://api.github.com/users/ClearGDPR/orgs","repos_url":"https://api.github.com/users/ClearGDPR/repos","events_url":"https://api.github.com/users/ClearGDPR/events{/privacy}","received_events_url":"https://api.github.com/users/ClearGDPR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ClearGDPR/ClearGDPR","description":"GDPR Compliance Solution","fork":false,"url":"https://api.github.com/repos/ClearGDPR/ClearGDPR","forks_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/forks","keys_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/teams","hooks_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/hooks","issue_events_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues/events{/number}","events_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/events","assignees_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/assignees{/user}","branches_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/branches{/branch}","tags_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/tags","blobs_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/refs{/sha}","trees_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/statuses/{sha}","languages_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/languages","stargazers_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/stargazers","contributors_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/contributors","subscribers_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/subscribers","subscription_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/subscription","commits_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/commits{/sha}","git_commits_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/commits{/sha}","comments_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/comments{/number}","issue_comment_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues/comments{/number}","contents_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/contents/{+path}","compare_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/merges","archive_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/downloads","issues_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues{/number}","pulls_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls{/number}","milestones_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/milestones{/number}","notifications_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/labels{/name}","releases_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/releases{/id}","deployments_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/deployments","created_at":"2018-05-24T15:09:37Z","updated_at":"2018-07-28T15:53:50Z","pushed_at":"2018-07-28T15:53:48Z","git_url":"git://github.com/ClearGDPR/ClearGDPR.git","ssh_url":"git@github.com:ClearGDPR/ClearGDPR.git","clone_url":"https://github.com/ClearGDPR/ClearGDPR.git","svn_url":"https://github.com/ClearGDPR/ClearGDPR","homepage":"https://www.cleargdpr.com/","size":2852,"stargazers_count":83,"watchers_count":83,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":52,"watchers":83,"default_branch":"master"}},"base":{"label":"ClearGDPR:master","ref":"master","sha":"eb138b5d6e2cda700b3cc3fc72e363de5cd1ac82","user":{"login":"ClearGDPR","id":39530558,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NTMwNTU4","avatar_url":"https://avatars1.githubusercontent.com/u/39530558?v=4","gravatar_id":"","url":"https://api.github.com/users/ClearGDPR","html_url":"https://github.com/ClearGDPR","followers_url":"https://api.github.com/users/ClearGDPR/followers","following_url":"https://api.github.com/users/ClearGDPR/following{/other_user}","gists_url":"https://api.github.com/users/ClearGDPR/gists{/gist_id}","starred_url":"https://api.github.com/users/ClearGDPR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClearGDPR/subscriptions","organizations_url":"https://api.github.com/users/ClearGDPR/orgs","repos_url":"https://api.github.com/users/ClearGDPR/repos","events_url":"https://api.github.com/users/ClearGDPR/events{/privacy}","received_events_url":"https://api.github.com/users/ClearGDPR/received_events","type":"Organization","site_admin":false},"repo":{"id":134732441,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ3MzI0NDE=","name":"ClearGDPR","full_name":"ClearGDPR/ClearGDPR","owner":{"login":"ClearGDPR","id":39530558,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NTMwNTU4","avatar_url":"https://avatars1.githubusercontent.com/u/39530558?v=4","gravatar_id":"","url":"https://api.github.com/users/ClearGDPR","html_url":"https://github.com/ClearGDPR","followers_url":"https://api.github.com/users/ClearGDPR/followers","following_url":"https://api.github.com/users/ClearGDPR/following{/other_user}","gists_url":"https://api.github.com/users/ClearGDPR/gists{/gist_id}","starred_url":"https://api.github.com/users/ClearGDPR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClearGDPR/subscriptions","organizations_url":"https://api.github.com/users/ClearGDPR/orgs","repos_url":"https://api.github.com/users/ClearGDPR/repos","events_url":"https://api.github.com/users/ClearGDPR/events{/privacy}","received_events_url":"https://api.github.com/users/ClearGDPR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ClearGDPR/ClearGDPR","description":"GDPR Compliance Solution","fork":false,"url":"https://api.github.com/repos/ClearGDPR/ClearGDPR","forks_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/forks","keys_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/teams","hooks_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/hooks","issue_events_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues/events{/number}","events_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/events","assignees_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/assignees{/user}","branches_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/branches{/branch}","tags_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/tags","blobs_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/refs{/sha}","trees_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/statuses/{sha}","languages_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/languages","stargazers_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/stargazers","contributors_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/contributors","subscribers_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/subscribers","subscription_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/subscription","commits_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/commits{/sha}","git_commits_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/git/commits{/sha}","comments_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/comments{/number}","issue_comment_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues/comments{/number}","contents_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/contents/{+path}","compare_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/merges","archive_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/downloads","issues_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues{/number}","pulls_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls{/number}","milestones_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/milestones{/number}","notifications_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/labels{/name}","releases_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/releases{/id}","deployments_url":"https://api.github.com/repos/ClearGDPR/ClearGDPR/deployments","created_at":"2018-05-24T15:09:37Z","updated_at":"2018-07-28T15:53:50Z","pushed_at":"2018-07-28T15:53:48Z","git_url":"git://github.com/ClearGDPR/ClearGDPR.git","ssh_url":"git@github.com:ClearGDPR/ClearGDPR.git","clone_url":"https://github.com/ClearGDPR/ClearGDPR.git","svn_url":"https://github.com/ClearGDPR/ClearGDPR","homepage":"https://www.cleargdpr.com/","size":2852,"stargazers_count":83,"watchers_count":83,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":52,"watchers":83,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/358"},"html":{"href":"https://github.com/ClearGDPR/ClearGDPR/pull/358"},"issue":{"href":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues/358"},"comments":{"href":"https://api.github.com/repos/ClearGDPR/ClearGDPR/issues/358/comments"},"review_comments":{"href":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/358/comments"},"review_comment":{"href":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ClearGDPR/ClearGDPR/pulls/358/commits"},"statuses":{"href":"https://api.github.com/repos/ClearGDPR/ClearGDPR/statuses/3792b660931be3fd1e3456fb6fccbf790f23d275"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Nelrohd"}}