{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/comments/151735501","pull_request_review_id":77496402,"id":151735501,"diff_hunk":"@@ -50,6 +50,13 @@ dictionary = data;\n $.i18n.setDictionary(dictionary);\n //End internationalization\n \n+function deDupUserMetaData(arrObj)  {\n+    var result = _.uniq(JSON.parse(arrObj), function(x){\n+        return x.name;\n+    });\n+    \n+    return JSON.stringify(result).replace(/\"/g, '\\\"');","path":"main/webapp/modules/core/scripts/preferences.js","position":9,"original_position":9,"commit_id":"b3cb7d4bf319a88e3880ac5168b24e10378fddd3","original_commit_id":"b3cb7d4bf319a88e3880ac5168b24e10378fddd3","user":{"login":"wetneb","id":309908,"avatar_url":"https://avatars1.githubusercontent.com/u/309908?v=4","gravatar_id":"","url":"https://api.github.com/users/wetneb","html_url":"https://github.com/wetneb","followers_url":"https://api.github.com/users/wetneb/followers","following_url":"https://api.github.com/users/wetneb/following{/other_user}","gists_url":"https://api.github.com/users/wetneb/gists{/gist_id}","starred_url":"https://api.github.com/users/wetneb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wetneb/subscriptions","organizations_url":"https://api.github.com/users/wetneb/orgs","repos_url":"https://api.github.com/users/wetneb/repos","events_url":"https://api.github.com/users/wetneb/events{/privacy}","received_events_url":"https://api.github.com/users/wetneb/received_events","type":"User","site_admin":false},"body":"Why this `.replace(/\"/g, '\\\"')`?","created_at":"2017-11-17T16:54:19Z","updated_at":"2017-11-17T16:54:19Z","html_url":"https://github.com/OpenRefine/OpenRefine/pull/1333#discussion_r151735501","pull_request_url":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/1333","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/comments/151735501"},"html":{"href":"https://github.com/OpenRefine/OpenRefine/pull/1333#discussion_r151735501"},"pull_request":{"href":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/1333"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/1333","id":152948441,"html_url":"https://github.com/OpenRefine/OpenRefine/pull/1333","diff_url":"https://github.com/OpenRefine/OpenRefine/pull/1333.diff","patch_url":"https://github.com/OpenRefine/OpenRefine/pull/1333.patch","issue_url":"https://api.github.com/repos/OpenRefine/OpenRefine/issues/1333","number":1333,"state":"closed","locked":false,"title":"check if the project has the userMetadata","user":{"login":"jackyq2015","id":10520203,"avatar_url":"https://avatars0.githubusercontent.com/u/10520203?v=4","gravatar_id":"","url":"https://api.github.com/users/jackyq2015","html_url":"https://github.com/jackyq2015","followers_url":"https://api.github.com/users/jackyq2015/followers","following_url":"https://api.github.com/users/jackyq2015/following{/other_user}","gists_url":"https://api.github.com/users/jackyq2015/gists{/gist_id}","starred_url":"https://api.github.com/users/jackyq2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackyq2015/subscriptions","organizations_url":"https://api.github.com/users/jackyq2015/orgs","repos_url":"https://api.github.com/users/jackyq2015/repos","events_url":"https://api.github.com/users/jackyq2015/events{/privacy}","received_events_url":"https://api.github.com/users/jackyq2015/received_events","type":"User","site_admin":false},"body":"@thadguidry This is to fix the bug you found today that the index page will be blank after creating the userMetadata from the preference page.","created_at":"2017-11-16T04:23:49Z","updated_at":"2017-11-17T16:54:19Z","closed_at":"2017-11-17T04:17:14Z","merged_at":"2017-11-17T04:17:14Z","merge_commit_sha":"43b6cb8001d27fa78f5b12d7a53144e368526e95","assignee":{"login":"jackyq2015","id":10520203,"avatar_url":"https://avatars0.githubusercontent.com/u/10520203?v=4","gravatar_id":"","url":"https://api.github.com/users/jackyq2015","html_url":"https://github.com/jackyq2015","followers_url":"https://api.github.com/users/jackyq2015/followers","following_url":"https://api.github.com/users/jackyq2015/following{/other_user}","gists_url":"https://api.github.com/users/jackyq2015/gists{/gist_id}","starred_url":"https://api.github.com/users/jackyq2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackyq2015/subscriptions","organizations_url":"https://api.github.com/users/jackyq2015/orgs","repos_url":"https://api.github.com/users/jackyq2015/repos","events_url":"https://api.github.com/users/jackyq2015/events{/privacy}","received_events_url":"https://api.github.com/users/jackyq2015/received_events","type":"User","site_admin":false},"assignees":[{"login":"jackyq2015","id":10520203,"avatar_url":"https://avatars0.githubusercontent.com/u/10520203?v=4","gravatar_id":"","url":"https://api.github.com/users/jackyq2015","html_url":"https://github.com/jackyq2015","followers_url":"https://api.github.com/users/jackyq2015/followers","following_url":"https://api.github.com/users/jackyq2015/following{/other_user}","gists_url":"https://api.github.com/users/jackyq2015/gists{/gist_id}","starred_url":"https://api.github.com/users/jackyq2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackyq2015/subscriptions","organizations_url":"https://api.github.com/users/jackyq2015/orgs","repos_url":"https://api.github.com/users/jackyq2015/repos","events_url":"https://api.github.com/users/jackyq2015/events{/privacy}","received_events_url":"https://api.github.com/users/jackyq2015/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/OpenRefine/OpenRefine/milestones/9","html_url":"https://github.com/OpenRefine/OpenRefine/milestone/9","labels_url":"https://api.github.com/repos/OpenRefine/OpenRefine/milestones/9/labels","id":2641694,"number":9,"title":"2.7.2","description":"Metadata Support !  Simple bugs that annoy our users that can be focused on and fixed quickly.","creator":{"login":"thadguidry","id":986438,"avatar_url":"https://avatars2.githubusercontent.com/u/986438?v=4","gravatar_id":"","url":"https://api.github.com/users/thadguidry","html_url":"https://github.com/thadguidry","followers_url":"https://api.github.com/users/thadguidry/followers","following_url":"https://api.github.com/users/thadguidry/following{/other_user}","gists_url":"https://api.github.com/users/thadguidry/gists{/gist_id}","starred_url":"https://api.github.com/users/thadguidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thadguidry/subscriptions","organizations_url":"https://api.github.com/users/thadguidry/orgs","repos_url":"https://api.github.com/users/thadguidry/repos","events_url":"https://api.github.com/users/thadguidry/events{/privacy}","received_events_url":"https://api.github.com/users/thadguidry/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":26,"state":"open","created_at":"2017-07-14T16:13:47Z","updated_at":"2017-11-17T13:06:20Z","due_on":"2017-11-14T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/1333/commits","review_comments_url":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/1333/comments","review_comment_url":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRefine/OpenRefine/issues/1333/comments","statuses_url":"https://api.github.com/repos/OpenRefine/OpenRefine/statuses/b3cb7d4bf319a88e3880ac5168b24e10378fddd3","head":{"label":"jackyq2015:feature/metadata","ref":"feature/metadata","sha":"b3cb7d4bf319a88e3880ac5168b24e10378fddd3","user":{"login":"jackyq2015","id":10520203,"avatar_url":"https://avatars0.githubusercontent.com/u/10520203?v=4","gravatar_id":"","url":"https://api.github.com/users/jackyq2015","html_url":"https://github.com/jackyq2015","followers_url":"https://api.github.com/users/jackyq2015/followers","following_url":"https://api.github.com/users/jackyq2015/following{/other_user}","gists_url":"https://api.github.com/users/jackyq2015/gists{/gist_id}","starred_url":"https://api.github.com/users/jackyq2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackyq2015/subscriptions","organizations_url":"https://api.github.com/users/jackyq2015/orgs","repos_url":"https://api.github.com/users/jackyq2015/repos","events_url":"https://api.github.com/users/jackyq2015/events{/privacy}","received_events_url":"https://api.github.com/users/jackyq2015/received_events","type":"User","site_admin":false},"repo":{"id":99635851,"name":"OpenRefine","full_name":"jackyq2015/OpenRefine","owner":{"login":"jackyq2015","id":10520203,"avatar_url":"https://avatars0.githubusercontent.com/u/10520203?v=4","gravatar_id":"","url":"https://api.github.com/users/jackyq2015","html_url":"https://github.com/jackyq2015","followers_url":"https://api.github.com/users/jackyq2015/followers","following_url":"https://api.github.com/users/jackyq2015/following{/other_user}","gists_url":"https://api.github.com/users/jackyq2015/gists{/gist_id}","starred_url":"https://api.github.com/users/jackyq2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackyq2015/subscriptions","organizations_url":"https://api.github.com/users/jackyq2015/orgs","repos_url":"https://api.github.com/users/jackyq2015/repos","events_url":"https://api.github.com/users/jackyq2015/events{/privacy}","received_events_url":"https://api.github.com/users/jackyq2015/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jackyq2015/OpenRefine","description":"OpenRefine is a free, open source power tool for working with messy data and improving it","fork":true,"url":"https://api.github.com/repos/jackyq2015/OpenRefine","forks_url":"https://api.github.com/repos/jackyq2015/OpenRefine/forks","keys_url":"https://api.github.com/repos/jackyq2015/OpenRefine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jackyq2015/OpenRefine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jackyq2015/OpenRefine/teams","hooks_url":"https://api.github.com/repos/jackyq2015/OpenRefine/hooks","issue_events_url":"https://api.github.com/repos/jackyq2015/OpenRefine/issues/events{/number}","events_url":"https://api.github.com/repos/jackyq2015/OpenRefine/events","assignees_url":"https://api.github.com/repos/jackyq2015/OpenRefine/assignees{/user}","branches_url":"https://api.github.com/repos/jackyq2015/OpenRefine/branches{/branch}","tags_url":"https://api.github.com/repos/jackyq2015/OpenRefine/tags","blobs_url":"https://api.github.com/repos/jackyq2015/OpenRefine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jackyq2015/OpenRefine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jackyq2015/OpenRefine/git/refs{/sha}","trees_url":"https://api.github.com/repos/jackyq2015/OpenRefine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jackyq2015/OpenRefine/statuses/{sha}","languages_url":"https://api.github.com/repos/jackyq2015/OpenRefine/languages","stargazers_url":"https://api.github.com/repos/jackyq2015/OpenRefine/stargazers","contributors_url":"https://api.github.com/repos/jackyq2015/OpenRefine/contributors","subscribers_url":"https://api.github.com/repos/jackyq2015/OpenRefine/subscribers","subscription_url":"https://api.github.com/repos/jackyq2015/OpenRefine/subscription","commits_url":"https://api.github.com/repos/jackyq2015/OpenRefine/commits{/sha}","git_commits_url":"https://api.github.com/repos/jackyq2015/OpenRefine/git/commits{/sha}","comments_url":"https://api.github.com/repos/jackyq2015/OpenRefine/comments{/number}","issue_comment_url":"https://api.github.com/repos/jackyq2015/OpenRefine/issues/comments{/number}","contents_url":"https://api.github.com/repos/jackyq2015/OpenRefine/contents/{+path}","compare_url":"https://api.github.com/repos/jackyq2015/OpenRefine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jackyq2015/OpenRefine/merges","archive_url":"https://api.github.com/repos/jackyq2015/OpenRefine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jackyq2015/OpenRefine/downloads","issues_url":"https://api.github.com/repos/jackyq2015/OpenRefine/issues{/number}","pulls_url":"https://api.github.com/repos/jackyq2015/OpenRefine/pulls{/number}","milestones_url":"https://api.github.com/repos/jackyq2015/OpenRefine/milestones{/number}","notifications_url":"https://api.github.com/repos/jackyq2015/OpenRefine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jackyq2015/OpenRefine/labels{/name}","releases_url":"https://api.github.com/repos/jackyq2015/OpenRefine/releases{/id}","deployments_url":"https://api.github.com/repos/jackyq2015/OpenRefine/deployments","created_at":"2017-08-08T01:21:53Z","updated_at":"2017-08-08T01:21:57Z","pushed_at":"2017-11-17T13:56:47Z","git_url":"git://github.com/jackyq2015/OpenRefine.git","ssh_url":"git@github.com:jackyq2015/OpenRefine.git","clone_url":"https://github.com/jackyq2015/OpenRefine.git","svn_url":"https://github.com/jackyq2015/OpenRefine","homepage":"","size":326937,"stargazers_count":0,"watchers_count":0,"language":"Java","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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenRefine:master","ref":"master","sha":"78b7f01be5516c8e4e16d24ff33361b9b36c4bfb","user":{"login":"OpenRefine","id":2538880,"avatar_url":"https://avatars0.githubusercontent.com/u/2538880?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenRefine","html_url":"https://github.com/OpenRefine","followers_url":"https://api.github.com/users/OpenRefine/followers","following_url":"https://api.github.com/users/OpenRefine/following{/other_user}","gists_url":"https://api.github.com/users/OpenRefine/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRefine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRefine/subscriptions","organizations_url":"https://api.github.com/users/OpenRefine/orgs","repos_url":"https://api.github.com/users/OpenRefine/repos","events_url":"https://api.github.com/users/OpenRefine/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRefine/received_events","type":"Organization","site_admin":false},"repo":{"id":6220644,"name":"OpenRefine","full_name":"OpenRefine/OpenRefine","owner":{"login":"OpenRefine","id":2538880,"avatar_url":"https://avatars0.githubusercontent.com/u/2538880?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenRefine","html_url":"https://github.com/OpenRefine","followers_url":"https://api.github.com/users/OpenRefine/followers","following_url":"https://api.github.com/users/OpenRefine/following{/other_user}","gists_url":"https://api.github.com/users/OpenRefine/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRefine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRefine/subscriptions","organizations_url":"https://api.github.com/users/OpenRefine/orgs","repos_url":"https://api.github.com/users/OpenRefine/repos","events_url":"https://api.github.com/users/OpenRefine/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRefine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenRefine/OpenRefine","description":"OpenRefine is a free, open source power tool for working with messy data and improving it","fork":false,"url":"https://api.github.com/repos/OpenRefine/OpenRefine","forks_url":"https://api.github.com/repos/OpenRefine/OpenRefine/forks","keys_url":"https://api.github.com/repos/OpenRefine/OpenRefine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenRefine/OpenRefine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenRefine/OpenRefine/teams","hooks_url":"https://api.github.com/repos/OpenRefine/OpenRefine/hooks","issue_events_url":"https://api.github.com/repos/OpenRefine/OpenRefine/issues/events{/number}","events_url":"https://api.github.com/repos/OpenRefine/OpenRefine/events","assignees_url":"https://api.github.com/repos/OpenRefine/OpenRefine/assignees{/user}","branches_url":"https://api.github.com/repos/OpenRefine/OpenRefine/branches{/branch}","tags_url":"https://api.github.com/repos/OpenRefine/OpenRefine/tags","blobs_url":"https://api.github.com/repos/OpenRefine/OpenRefine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenRefine/OpenRefine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenRefine/OpenRefine/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenRefine/OpenRefine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenRefine/OpenRefine/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenRefine/OpenRefine/languages","stargazers_url":"https://api.github.com/repos/OpenRefine/OpenRefine/stargazers","contributors_url":"https://api.github.com/repos/OpenRefine/OpenRefine/contributors","subscribers_url":"https://api.github.com/repos/OpenRefine/OpenRefine/subscribers","subscription_url":"https://api.github.com/repos/OpenRefine/OpenRefine/subscription","commits_url":"https://api.github.com/repos/OpenRefine/OpenRefine/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenRefine/OpenRefine/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenRefine/OpenRefine/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenRefine/OpenRefine/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenRefine/OpenRefine/contents/{+path}","compare_url":"https://api.github.com/repos/OpenRefine/OpenRefine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenRefine/OpenRefine/merges","archive_url":"https://api.github.com/repos/OpenRefine/OpenRefine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenRefine/OpenRefine/downloads","issues_url":"https://api.github.com/repos/OpenRefine/OpenRefine/issues{/number}","pulls_url":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenRefine/OpenRefine/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenRefine/OpenRefine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenRefine/OpenRefine/labels{/name}","releases_url":"https://api.github.com/repos/OpenRefine/OpenRefine/releases{/id}","deployments_url":"https://api.github.com/repos/OpenRefine/OpenRefine/deployments","created_at":"2012-10-15T02:22:48Z","updated_at":"2017-11-17T15:19:39Z","pushed_at":"2017-11-17T13:58:15Z","git_url":"git://github.com/OpenRefine/OpenRefine.git","ssh_url":"git@github.com:OpenRefine/OpenRefine.git","clone_url":"https://github.com/OpenRefine/OpenRefine.git","svn_url":"https://github.com/OpenRefine/OpenRefine","homepage":"http://openrefine.org/","size":332061,"stargazers_count":4853,"watchers_count":4853,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":865,"mirror_url":null,"archived":false,"open_issues_count":346,"forks":865,"open_issues":346,"watchers":4853,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/1333"},"html":{"href":"https://github.com/OpenRefine/OpenRefine/pull/1333"},"issue":{"href":"https://api.github.com/repos/OpenRefine/OpenRefine/issues/1333"},"comments":{"href":"https://api.github.com/repos/OpenRefine/OpenRefine/issues/1333/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/1333/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRefine/OpenRefine/pulls/1333/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRefine/OpenRefine/statuses/b3cb7d4bf319a88e3880ac5168b24e10378fddd3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"wetneb"}}