{"action":"opened","number":1567,"pull_request":{"url":"https://api.github.com/repos/DOAJ/doaj/pulls/1567","id":218090062,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MDkwMDYy","html_url":"https://github.com/DOAJ/doaj/pull/1567","diff_url":"https://github.com/DOAJ/doaj/pull/1567.diff","patch_url":"https://github.com/DOAJ/doaj/pull/1567.patch","issue_url":"https://api.github.com/repos/DOAJ/doaj/issues/1567","number":1567,"state":"open","locked":false,"title":"Feature/1535 anonymise test server data","user":{"login":"richard-jones","id":856138,"node_id":"MDQ6VXNlcjg1NjEzOA==","avatar_url":"https://avatars0.githubusercontent.com/u/856138?v=4","gravatar_id":"","url":"https://api.github.com/users/richard-jones","html_url":"https://github.com/richard-jones","followers_url":"https://api.github.com/users/richard-jones/followers","following_url":"https://api.github.com/users/richard-jones/following{/other_user}","gists_url":"https://api.github.com/users/richard-jones/gists{/gist_id}","starred_url":"https://api.github.com/users/richard-jones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richard-jones/subscriptions","organizations_url":"https://api.github.com/users/richard-jones/orgs","repos_url":"https://api.github.com/users/richard-jones/repos","events_url":"https://api.github.com/users/richard-jones/events{/privacy}","received_events_url":"https://api.github.com/users/richard-jones/received_events","type":"User","site_admin":false},"body":"This PR is not quite ready to be merged, but this is a place to review the current (nearly complete) state.\r\n\r\nHere's the additions to the anonymisation code to handle export and import in convenient ways.\r\n\r\nWhen reviewing this you also need to look at this bit in esprit, which does the grunt work:\r\n\r\nhttps://github.com/CottageLabs/esprit/blob/master/esprit/tasks.py#L9\r\n\r\nTo do the export you can just run\r\n\r\n```\r\npython portality/scripts/anon_export.py\r\n```\r\n\r\nThis will place the output in `local_store/main/anon_export`\r\n\r\nTo reimport, you can run\r\n\r\n```\r\npython portality/scripts/anon_import.py data_import_settings/dev_basics.json\r\n```\r\n\r\nThis will look at the file `data_import_settings/dev_basics.json` and import a selection of the types and just 100000 of the articles.\r\n","created_at":"2018-09-25T19:18:32Z","updated_at":"2018-09-25T19:18:32Z","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/DOAJ/doaj/pulls/1567/commits","review_comments_url":"https://api.github.com/repos/DOAJ/doaj/pulls/1567/comments","review_comment_url":"https://api.github.com/repos/DOAJ/doaj/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DOAJ/doaj/issues/1567/comments","statuses_url":"https://api.github.com/repos/DOAJ/doaj/statuses/92828d69a4696037da7d9b9c8cb0414169c50609","head":{"label":"DOAJ:feature/1535_anonymise_test_server_data","ref":"feature/1535_anonymise_test_server_data","sha":"92828d69a4696037da7d9b9c8cb0414169c50609","user":{"login":"DOAJ","id":5971926,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NzE5MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5971926?v=4","gravatar_id":"","url":"https://api.github.com/users/DOAJ","html_url":"https://github.com/DOAJ","followers_url":"https://api.github.com/users/DOAJ/followers","following_url":"https://api.github.com/users/DOAJ/following{/other_user}","gists_url":"https://api.github.com/users/DOAJ/gists{/gist_id}","starred_url":"https://api.github.com/users/DOAJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DOAJ/subscriptions","organizations_url":"https://api.github.com/users/DOAJ/orgs","repos_url":"https://api.github.com/users/DOAJ/repos","events_url":"https://api.github.com/users/DOAJ/events{/privacy}","received_events_url":"https://api.github.com/users/DOAJ/received_events","type":"Organization","site_admin":false},"repo":{"id":14500626,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUwMDYyNg==","name":"doaj","full_name":"DOAJ/doaj","private":false,"owner":{"login":"DOAJ","id":5971926,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NzE5MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5971926?v=4","gravatar_id":"","url":"https://api.github.com/users/DOAJ","html_url":"https://github.com/DOAJ","followers_url":"https://api.github.com/users/DOAJ/followers","following_url":"https://api.github.com/users/DOAJ/following{/other_user}","gists_url":"https://api.github.com/users/DOAJ/gists{/gist_id}","starred_url":"https://api.github.com/users/DOAJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DOAJ/subscriptions","organizations_url":"https://api.github.com/users/DOAJ/orgs","repos_url":"https://api.github.com/users/DOAJ/repos","events_url":"https://api.github.com/users/DOAJ/events{/privacy}","received_events_url":"https://api.github.com/users/DOAJ/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DOAJ/doaj","description":"The Directory of Open Access Journals - website and directory software","fork":false,"url":"https://api.github.com/repos/DOAJ/doaj","forks_url":"https://api.github.com/repos/DOAJ/doaj/forks","keys_url":"https://api.github.com/repos/DOAJ/doaj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DOAJ/doaj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DOAJ/doaj/teams","hooks_url":"https://api.github.com/repos/DOAJ/doaj/hooks","issue_events_url":"https://api.github.com/repos/DOAJ/doaj/issues/events{/number}","events_url":"https://api.github.com/repos/DOAJ/doaj/events","assignees_url":"https://api.github.com/repos/DOAJ/doaj/assignees{/user}","branches_url":"https://api.github.com/repos/DOAJ/doaj/branches{/branch}","tags_url":"https://api.github.com/repos/DOAJ/doaj/tags","blobs_url":"https://api.github.com/repos/DOAJ/doaj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DOAJ/doaj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DOAJ/doaj/git/refs{/sha}","trees_url":"https://api.github.com/repos/DOAJ/doaj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DOAJ/doaj/statuses/{sha}","languages_url":"https://api.github.com/repos/DOAJ/doaj/languages","stargazers_url":"https://api.github.com/repos/DOAJ/doaj/stargazers","contributors_url":"https://api.github.com/repos/DOAJ/doaj/contributors","subscribers_url":"https://api.github.com/repos/DOAJ/doaj/subscribers","subscription_url":"https://api.github.com/repos/DOAJ/doaj/subscription","commits_url":"https://api.github.com/repos/DOAJ/doaj/commits{/sha}","git_commits_url":"https://api.github.com/repos/DOAJ/doaj/git/commits{/sha}","comments_url":"https://api.github.com/repos/DOAJ/doaj/comments{/number}","issue_comment_url":"https://api.github.com/repos/DOAJ/doaj/issues/comments{/number}","contents_url":"https://api.github.com/repos/DOAJ/doaj/contents/{+path}","compare_url":"https://api.github.com/repos/DOAJ/doaj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DOAJ/doaj/merges","archive_url":"https://api.github.com/repos/DOAJ/doaj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DOAJ/doaj/downloads","issues_url":"https://api.github.com/repos/DOAJ/doaj/issues{/number}","pulls_url":"https://api.github.com/repos/DOAJ/doaj/pulls{/number}","milestones_url":"https://api.github.com/repos/DOAJ/doaj/milestones{/number}","notifications_url":"https://api.github.com/repos/DOAJ/doaj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DOAJ/doaj/labels{/name}","releases_url":"https://api.github.com/repos/DOAJ/doaj/releases{/id}","deployments_url":"https://api.github.com/repos/DOAJ/doaj/deployments","created_at":"2013-11-18T18:07:31Z","updated_at":"2018-09-25T15:26:31Z","pushed_at":"2018-09-25T19:12:08Z","git_url":"git://github.com/DOAJ/doaj.git","ssh_url":"git@github.com:DOAJ/doaj.git","clone_url":"https://github.com/DOAJ/doaj.git","svn_url":"https://github.com/DOAJ/doaj","homepage":null,"size":17640,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":4,"watchers":15,"default_branch":"develop"}},"base":{"label":"DOAJ:develop","ref":"develop","sha":"37da24d97a39d42cfe0326471ed48bd0ba1aa1ae","user":{"login":"DOAJ","id":5971926,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NzE5MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5971926?v=4","gravatar_id":"","url":"https://api.github.com/users/DOAJ","html_url":"https://github.com/DOAJ","followers_url":"https://api.github.com/users/DOAJ/followers","following_url":"https://api.github.com/users/DOAJ/following{/other_user}","gists_url":"https://api.github.com/users/DOAJ/gists{/gist_id}","starred_url":"https://api.github.com/users/DOAJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DOAJ/subscriptions","organizations_url":"https://api.github.com/users/DOAJ/orgs","repos_url":"https://api.github.com/users/DOAJ/repos","events_url":"https://api.github.com/users/DOAJ/events{/privacy}","received_events_url":"https://api.github.com/users/DOAJ/received_events","type":"Organization","site_admin":false},"repo":{"id":14500626,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUwMDYyNg==","name":"doaj","full_name":"DOAJ/doaj","private":false,"owner":{"login":"DOAJ","id":5971926,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NzE5MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5971926?v=4","gravatar_id":"","url":"https://api.github.com/users/DOAJ","html_url":"https://github.com/DOAJ","followers_url":"https://api.github.com/users/DOAJ/followers","following_url":"https://api.github.com/users/DOAJ/following{/other_user}","gists_url":"https://api.github.com/users/DOAJ/gists{/gist_id}","starred_url":"https://api.github.com/users/DOAJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DOAJ/subscriptions","organizations_url":"https://api.github.com/users/DOAJ/orgs","repos_url":"https://api.github.com/users/DOAJ/repos","events_url":"https://api.github.com/users/DOAJ/events{/privacy}","received_events_url":"https://api.github.com/users/DOAJ/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DOAJ/doaj","description":"The Directory of Open Access Journals - website and directory software","fork":false,"url":"https://api.github.com/repos/DOAJ/doaj","forks_url":"https://api.github.com/repos/DOAJ/doaj/forks","keys_url":"https://api.github.com/repos/DOAJ/doaj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DOAJ/doaj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DOAJ/doaj/teams","hooks_url":"https://api.github.com/repos/DOAJ/doaj/hooks","issue_events_url":"https://api.github.com/repos/DOAJ/doaj/issues/events{/number}","events_url":"https://api.github.com/repos/DOAJ/doaj/events","assignees_url":"https://api.github.com/repos/DOAJ/doaj/assignees{/user}","branches_url":"https://api.github.com/repos/DOAJ/doaj/branches{/branch}","tags_url":"https://api.github.com/repos/DOAJ/doaj/tags","blobs_url":"https://api.github.com/repos/DOAJ/doaj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DOAJ/doaj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DOAJ/doaj/git/refs{/sha}","trees_url":"https://api.github.com/repos/DOAJ/doaj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DOAJ/doaj/statuses/{sha}","languages_url":"https://api.github.com/repos/DOAJ/doaj/languages","stargazers_url":"https://api.github.com/repos/DOAJ/doaj/stargazers","contributors_url":"https://api.github.com/repos/DOAJ/doaj/contributors","subscribers_url":"https://api.github.com/repos/DOAJ/doaj/subscribers","subscription_url":"https://api.github.com/repos/DOAJ/doaj/subscription","commits_url":"https://api.github.com/repos/DOAJ/doaj/commits{/sha}","git_commits_url":"https://api.github.com/repos/DOAJ/doaj/git/commits{/sha}","comments_url":"https://api.github.com/repos/DOAJ/doaj/comments{/number}","issue_comment_url":"https://api.github.com/repos/DOAJ/doaj/issues/comments{/number}","contents_url":"https://api.github.com/repos/DOAJ/doaj/contents/{+path}","compare_url":"https://api.github.com/repos/DOAJ/doaj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DOAJ/doaj/merges","archive_url":"https://api.github.com/repos/DOAJ/doaj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DOAJ/doaj/downloads","issues_url":"https://api.github.com/repos/DOAJ/doaj/issues{/number}","pulls_url":"https://api.github.com/repos/DOAJ/doaj/pulls{/number}","milestones_url":"https://api.github.com/repos/DOAJ/doaj/milestones{/number}","notifications_url":"https://api.github.com/repos/DOAJ/doaj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DOAJ/doaj/labels{/name}","releases_url":"https://api.github.com/repos/DOAJ/doaj/releases{/id}","deployments_url":"https://api.github.com/repos/DOAJ/doaj/deployments","created_at":"2013-11-18T18:07:31Z","updated_at":"2018-09-25T15:26:31Z","pushed_at":"2018-09-25T19:12:08Z","git_url":"git://github.com/DOAJ/doaj.git","ssh_url":"git@github.com:DOAJ/doaj.git","clone_url":"https://github.com/DOAJ/doaj.git","svn_url":"https://github.com/DOAJ/doaj","homepage":null,"size":17640,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":4,"watchers":15,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/DOAJ/doaj/pulls/1567"},"html":{"href":"https://github.com/DOAJ/doaj/pull/1567"},"issue":{"href":"https://api.github.com/repos/DOAJ/doaj/issues/1567"},"comments":{"href":"https://api.github.com/repos/DOAJ/doaj/issues/1567/comments"},"review_comments":{"href":"https://api.github.com/repos/DOAJ/doaj/pulls/1567/comments"},"review_comment":{"href":"https://api.github.com/repos/DOAJ/doaj/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DOAJ/doaj/pulls/1567/commits"},"statuses":{"href":"https://api.github.com/repos/DOAJ/doaj/statuses/92828d69a4696037da7d9b9c8cb0414169c50609"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":6,"additions":284,"deletions":7,"changed_files":11}}
{"actor":{"display_login":"richard-jones"}}