{"action":"created","issue":{"url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/60","labels_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/60/comments","events_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/60/events","html_url":"https://github.com/artefactual/archivematica-storage-service/pull/60","id":55837722,"number":60,"title":"Improve default location creation","user":{"login":"Hwesta","id":3166226,"avatar_url":"https://avatars.githubusercontent.com/u/3166226?v=3","gravatar_id":"","url":"https://api.github.com/users/Hwesta","html_url":"https://github.com/Hwesta","followers_url":"https://api.github.com/users/Hwesta/followers","following_url":"https://api.github.com/users/Hwesta/following{/other_user}","gists_url":"https://api.github.com/users/Hwesta/gists{/gist_id}","starred_url":"https://api.github.com/users/Hwesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hwesta/subscriptions","organizations_url":"https://api.github.com/users/Hwesta/orgs","repos_url":"https://api.github.com/users/Hwesta/repos","events_url":"https://api.github.com/users/Hwesta/events{/privacy}","received_events_url":"https://api.github.com/users/Hwesta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-29T00:24:48Z","updated_at":"2015-01-29T01:11:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/60","html_url":"https://github.com/artefactual/archivematica-storage-service/pull/60","diff_url":"https://github.com/artefactual/archivematica-storage-service/pull/60.diff","patch_url":"https://github.com/artefactual/archivematica-storage-service/pull/60.patch"},"body":"Previously, when creating default locations, we checked if a Location with the exact same attributes (path, description, etc) already existed, and created one if it didn't.  This causes problems when a Location with that purpose already exists but has been modified, eg storage service internal, since there can only be one.  Update to only look for a Location with the same purpose.\r\n\r\nTo support disabling Locations instead of deleting them, ensure queries against Location use 'active' not 'objects'.\r\n\r\nAdd tests."},"comment":{"url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/comments/71950783","html_url":"https://github.com/artefactual/archivematica-storage-service/pull/60#issuecomment-71950783","issue_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/60","id":71950783,"user":{"login":"Hwesta","id":3166226,"avatar_url":"https://avatars.githubusercontent.com/u/3166226?v=3","gravatar_id":"","url":"https://api.github.com/users/Hwesta","html_url":"https://github.com/Hwesta","followers_url":"https://api.github.com/users/Hwesta/followers","following_url":"https://api.github.com/users/Hwesta/following{/other_user}","gists_url":"https://api.github.com/users/Hwesta/gists{/gist_id}","starred_url":"https://api.github.com/users/Hwesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hwesta/subscriptions","organizations_url":"https://api.github.com/users/Hwesta/orgs","repos_url":"https://api.github.com/users/Hwesta/repos","events_url":"https://api.github.com/users/Hwesta/events{/privacy}","received_events_url":"https://api.github.com/users/Hwesta/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T01:11:30Z","updated_at":"2015-01-29T01:11:30Z","body":"Added logging of Tastypie errors, so debugging this sucks less next time."}}