{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/80275349","id":80275349,"diff_hunk":"@@ -334,3 +335,15 @@ def add_recids_and_validate(sender, json, *args, **kwargs):\n     \"\"\"Ensure that recids are generated before being validated.\"\"\"\n     populate_recid_from_ref(sender, json, *args, **kwargs)\n     references_validator(sender, json, *args, **kwargs)\n+\n+\n+@before_record_update.connect\n+def check_if_record_is_going_to_be_deleted(sender, *args, **kwargs):","path":"inspirehep/modules/records/receivers.py","position":17,"original_position":17,"commit_id":"fcdb02e60384392ee603ba5a38e0fc84f86970b4","original_commit_id":"bc1b812f0bcb0c9e6b6da6bec5b7b7ee3ff67d1b","user":{"login":"jacquerie","id":381280,"avatar_url":"https://avatars.githubusercontent.com/u/381280?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquerie","html_url":"https://github.com/jacquerie","followers_url":"https://api.github.com/users/jacquerie/followers","following_url":"https://api.github.com/users/jacquerie/following{/other_user}","gists_url":"https://api.github.com/users/jacquerie/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquerie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquerie/subscriptions","organizations_url":"https://api.github.com/users/jacquerie/orgs","repos_url":"https://api.github.com/users/jacquerie/repos","events_url":"https://api.github.com/users/jacquerie/events{/privacy}","received_events_url":"https://api.github.com/users/jacquerie/received_events","type":"User","site_admin":false},"body":"I was wrong 💃 ","created_at":"2016-09-23T16:09:32Z","updated_at":"2016-09-23T16:09:32Z","html_url":"https://github.com/inspirehep/inspire-next/pull/1541#discussion_r80275349","pull_request_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/1541","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/80275349"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/1541#discussion_r80275349"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/1541"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/1541","id":84103300,"html_url":"https://github.com/inspirehep/inspire-next/pull/1541","diff_url":"https://github.com/inspirehep/inspire-next/pull/1541.diff","patch_url":"https://github.com/inspirehep/inspire-next/pull/1541.patch","issue_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/1541","number":1541,"state":"closed","locked":false,"title":"general: support for deleted records ","user":{"login":"spirosdelviniotis","id":17742257,"avatar_url":"https://avatars.githubusercontent.com/u/17742257?v=3","gravatar_id":"","url":"https://api.github.com/users/spirosdelviniotis","html_url":"https://github.com/spirosdelviniotis","followers_url":"https://api.github.com/users/spirosdelviniotis/followers","following_url":"https://api.github.com/users/spirosdelviniotis/following{/other_user}","gists_url":"https://api.github.com/users/spirosdelviniotis/gists{/gist_id}","starred_url":"https://api.github.com/users/spirosdelviniotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spirosdelviniotis/subscriptions","organizations_url":"https://api.github.com/users/spirosdelviniotis/orgs","repos_url":"https://api.github.com/users/spirosdelviniotis/repos","events_url":"https://api.github.com/users/spirosdelviniotis/events{/privacy}","received_events_url":"https://api.github.com/users/spirosdelviniotis/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Spiros Delviniotis <spyridon.delviniotis@cern.ch>","created_at":"2016-09-06T11:12:41Z","updated_at":"2016-09-23T16:09:32Z","closed_at":"2016-09-23T15:30:01Z","merged_at":"2016-09-23T15:30:01Z","merge_commit_sha":"1ebd2de957ab668315ad85e5f6d5ab03a800a06e","assignee":{"login":"spirosdelviniotis","id":17742257,"avatar_url":"https://avatars.githubusercontent.com/u/17742257?v=3","gravatar_id":"","url":"https://api.github.com/users/spirosdelviniotis","html_url":"https://github.com/spirosdelviniotis","followers_url":"https://api.github.com/users/spirosdelviniotis/followers","following_url":"https://api.github.com/users/spirosdelviniotis/following{/other_user}","gists_url":"https://api.github.com/users/spirosdelviniotis/gists{/gist_id}","starred_url":"https://api.github.com/users/spirosdelviniotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spirosdelviniotis/subscriptions","organizations_url":"https://api.github.com/users/spirosdelviniotis/orgs","repos_url":"https://api.github.com/users/spirosdelviniotis/repos","events_url":"https://api.github.com/users/spirosdelviniotis/events{/privacy}","received_events_url":"https://api.github.com/users/spirosdelviniotis/received_events","type":"User","site_admin":false},"assignees":[{"login":"spirosdelviniotis","id":17742257,"avatar_url":"https://avatars.githubusercontent.com/u/17742257?v=3","gravatar_id":"","url":"https://api.github.com/users/spirosdelviniotis","html_url":"https://github.com/spirosdelviniotis","followers_url":"https://api.github.com/users/spirosdelviniotis/followers","following_url":"https://api.github.com/users/spirosdelviniotis/following{/other_user}","gists_url":"https://api.github.com/users/spirosdelviniotis/gists{/gist_id}","starred_url":"https://api.github.com/users/spirosdelviniotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spirosdelviniotis/subscriptions","organizations_url":"https://api.github.com/users/spirosdelviniotis/orgs","repos_url":"https://api.github.com/users/spirosdelviniotis/repos","events_url":"https://api.github.com/users/spirosdelviniotis/events{/privacy}","received_events_url":"https://api.github.com/users/spirosdelviniotis/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/inspirehep/inspire-next/milestones/21","html_url":"https://github.com/inspirehep/inspire-next/milestones/Invenio%203%20is%20deployed%20on%20labs.inspirehep.net","labels_url":"https://api.github.com/repos/inspirehep/inspire-next/milestones/21/labels","id":1984016,"number":21,"title":"Invenio 3 is deployed on labs.inspirehep.net","description":"labs.inspirehep.net supports same functionality as today (plus improvements on the backend) but it is based on master branch of inspirehep/inspire-next","creator":{"login":"jmartinm","id":580727,"avatar_url":"https://avatars.githubusercontent.com/u/580727?v=3","gravatar_id":"","url":"https://api.github.com/users/jmartinm","html_url":"https://github.com/jmartinm","followers_url":"https://api.github.com/users/jmartinm/followers","following_url":"https://api.github.com/users/jmartinm/following{/other_user}","gists_url":"https://api.github.com/users/jmartinm/gists{/gist_id}","starred_url":"https://api.github.com/users/jmartinm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmartinm/subscriptions","organizations_url":"https://api.github.com/users/jmartinm/orgs","repos_url":"https://api.github.com/users/jmartinm/repos","events_url":"https://api.github.com/users/jmartinm/events{/privacy}","received_events_url":"https://api.github.com/users/jmartinm/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":12,"state":"open","created_at":"2016-09-05T11:47:45Z","updated_at":"2016-09-23T15:30:02Z","due_on":"2016-09-30T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/1541/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/1541/comments","review_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/1541/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/fcdb02e60384392ee603ba5a38e0fc84f86970b4","head":{"label":"spirosdelviniotis:boolean_deleted","ref":"boolean_deleted","sha":"fcdb02e60384392ee603ba5a38e0fc84f86970b4","user":{"login":"spirosdelviniotis","id":17742257,"avatar_url":"https://avatars.githubusercontent.com/u/17742257?v=3","gravatar_id":"","url":"https://api.github.com/users/spirosdelviniotis","html_url":"https://github.com/spirosdelviniotis","followers_url":"https://api.github.com/users/spirosdelviniotis/followers","following_url":"https://api.github.com/users/spirosdelviniotis/following{/other_user}","gists_url":"https://api.github.com/users/spirosdelviniotis/gists{/gist_id}","starred_url":"https://api.github.com/users/spirosdelviniotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spirosdelviniotis/subscriptions","organizations_url":"https://api.github.com/users/spirosdelviniotis/orgs","repos_url":"https://api.github.com/users/spirosdelviniotis/repos","events_url":"https://api.github.com/users/spirosdelviniotis/events{/privacy}","received_events_url":"https://api.github.com/users/spirosdelviniotis/received_events","type":"User","site_admin":false},"repo":{"id":67199332,"name":"inspire-next","full_name":"spirosdelviniotis/inspire-next","owner":{"login":"spirosdelviniotis","id":17742257,"avatar_url":"https://avatars.githubusercontent.com/u/17742257?v=3","gravatar_id":"","url":"https://api.github.com/users/spirosdelviniotis","html_url":"https://github.com/spirosdelviniotis","followers_url":"https://api.github.com/users/spirosdelviniotis/followers","following_url":"https://api.github.com/users/spirosdelviniotis/following{/other_user}","gists_url":"https://api.github.com/users/spirosdelviniotis/gists{/gist_id}","starred_url":"https://api.github.com/users/spirosdelviniotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spirosdelviniotis/subscriptions","organizations_url":"https://api.github.com/users/spirosdelviniotis/orgs","repos_url":"https://api.github.com/users/spirosdelviniotis/repos","events_url":"https://api.github.com/users/spirosdelviniotis/events{/privacy}","received_events_url":"https://api.github.com/users/spirosdelviniotis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spirosdelviniotis/inspire-next","description":"The next version of INSPIRE","fork":true,"url":"https://api.github.com/repos/spirosdelviniotis/inspire-next","forks_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/forks","keys_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/teams","hooks_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/events","assignees_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/tags","blobs_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/languages","stargazers_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/subscription","commits_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/merges","archive_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/downloads","issues_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/releases{/id}","deployments_url":"https://api.github.com/repos/spirosdelviniotis/inspire-next/deployments","created_at":"2016-09-02T07:10:57Z","updated_at":"2016-09-02T07:11:00Z","pushed_at":"2016-09-23T13:57:58Z","git_url":"git://github.com/spirosdelviniotis/inspire-next.git","ssh_url":"git@github.com:spirosdelviniotis/inspire-next.git","clone_url":"https://github.com/spirosdelviniotis/inspire-next.git","svn_url":"https://github.com/spirosdelviniotis/inspire-next","homepage":"https://labs.inspirehep.net","size":60647,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inspirehep:master","ref":"master","sha":"3d45a80a34b7d4eec8b100209ba635716a2bbeaa","user":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"repo":{"id":15221515,"name":"inspire-next","full_name":"inspirehep/inspire-next","owner":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspirehep/inspire-next","description":"The next version of INSPIRE","fork":false,"url":"https://api.github.com/repos/inspirehep/inspire-next","forks_url":"https://api.github.com/repos/inspirehep/inspire-next/forks","keys_url":"https://api.github.com/repos/inspirehep/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/inspire-next/teams","hooks_url":"https://api.github.com/repos/inspirehep/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/inspire-next/events","assignees_url":"https://api.github.com/repos/inspirehep/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/inspire-next/tags","blobs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/inspire-next/languages","stargazers_url":"https://api.github.com/repos/inspirehep/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/inspire-next/subscription","commits_url":"https://api.github.com/repos/inspirehep/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspirehep/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/inspire-next/merges","archive_url":"https://api.github.com/repos/inspirehep/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/inspire-next/downloads","issues_url":"https://api.github.com/repos/inspirehep/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/inspire-next/releases{/id}","deployments_url":"https://api.github.com/repos/inspirehep/inspire-next/deployments","created_at":"2013-12-16T09:11:58Z","updated_at":"2016-08-31T23:29:11Z","pushed_at":"2016-09-23T15:56:15Z","git_url":"git://github.com/inspirehep/inspire-next.git","ssh_url":"git@github.com:inspirehep/inspire-next.git","clone_url":"https://github.com/inspirehep/inspire-next.git","svn_url":"https://github.com/inspirehep/inspire-next","homepage":"https://labs.inspirehep.net","size":65732,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":172,"forks":34,"open_issues":172,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/1541"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/1541"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/1541"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/1541/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/1541/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/1541/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspire-next/statuses/fcdb02e60384392ee603ba5a38e0fc84f86970b4"}}}}
{"actor":{"display_login":"jacquerie"}}