{"action":"created","issue":{"url":"https://api.github.com/repos/sul-dlss/purl-fetcher/issues/175","repository_url":"https://api.github.com/repos/sul-dlss/purl-fetcher","labels_url":"https://api.github.com/repos/sul-dlss/purl-fetcher/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/sul-dlss/purl-fetcher/issues/175/comments","events_url":"https://api.github.com/repos/sul-dlss/purl-fetcher/issues/175/events","html_url":"https://github.com/sul-dlss/purl-fetcher/issues/175","id":180768342,"number":175,"title":"If a purl is deleted, the corresponding record in the purl-fetcher database needs to be deleted","user":{"login":"lmcglohon","id":3585151,"avatar_url":"https://avatars.githubusercontent.com/u/3585151?v=3","gravatar_id":"","url":"https://api.github.com/users/lmcglohon","html_url":"https://github.com/lmcglohon","followers_url":"https://api.github.com/users/lmcglohon/followers","following_url":"https://api.github.com/users/lmcglohon/following{/other_user}","gists_url":"https://api.github.com/users/lmcglohon/gists{/gist_id}","starred_url":"https://api.github.com/users/lmcglohon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmcglohon/subscriptions","organizations_url":"https://api.github.com/users/lmcglohon/orgs","repos_url":"https://api.github.com/users/lmcglohon/repos","events_url":"https://api.github.com/users/lmcglohon/events{/privacy}","received_events_url":"https://api.github.com/users/lmcglohon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sul-dlss/purl-fetcher/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/sul-dlss/purl-fetcher/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-03T22:59:30Z","updated_at":"2016-10-11T17:33:18Z","closed_at":null,"body":"When a purl is deleted, as opposed to when the release data field is changed from true to false, the corresponding record in the purl-fetcher database needs to be removed.  For example, the purl for druid zc933cw0607 was deleted because the object was placed in the SDR graveyard. However, when the purl-fetcher API is called for the druid, the druid is returned with a true-target for SearchworksPreview. The purl-fetcher database should include only published purls so the database record should have been deleted. See attached files for the current corresponding argo record display and the result from the purl-fetcher API (purl-fetcher-prod.stanford.edu/purls/zc933cw0607)\r\n\r\n![zc933cw0607_argo](https://cloud.githubusercontent.com/assets/3585151/19057016/c72e7baa-8981-11e6-9c4b-ecaaa04fc2c6.png)\r\n\r\n![zc933cw0607_purl_fetcher](https://cloud.githubusercontent.com/assets/3585151/19056986/984e4086-8981-11e6-86fe-d1ca45a7007d.png)"},"comment":{"url":"https://api.github.com/repos/sul-dlss/purl-fetcher/issues/comments/252987597","html_url":"https://github.com/sul-dlss/purl-fetcher/issues/175#issuecomment-252987597","issue_url":"https://api.github.com/repos/sul-dlss/purl-fetcher/issues/175","id":252987597,"user":{"login":"mejackreed","id":1656824,"avatar_url":"https://avatars.githubusercontent.com/u/1656824?v=3","gravatar_id":"","url":"https://api.github.com/users/mejackreed","html_url":"https://github.com/mejackreed","followers_url":"https://api.github.com/users/mejackreed/followers","following_url":"https://api.github.com/users/mejackreed/following{/other_user}","gists_url":"https://api.github.com/users/mejackreed/gists{/gist_id}","starred_url":"https://api.github.com/users/mejackreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mejackreed/subscriptions","organizations_url":"https://api.github.com/users/mejackreed/orgs","repos_url":"https://api.github.com/users/mejackreed/repos","events_url":"https://api.github.com/users/mejackreed/events{/privacy}","received_events_url":"https://api.github.com/users/mejackreed/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T17:33:18Z","updated_at":"2016-10-11T17:33:18Z","body":"We also need to make sure to cleanup collections and release tags"}}
{"actor":{"display_login":"mejackreed"}}