{"action":"created","issue":{"url":"https://api.github.com/repos/NYPL-Simplified/server_core/issues/316","repository_url":"https://api.github.com/repos/NYPL-Simplified/server_core","labels_url":"https://api.github.com/repos/NYPL-Simplified/server_core/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/NYPL-Simplified/server_core/issues/316/comments","events_url":"https://api.github.com/repos/NYPL-Simplified/server_core/issues/316/events","html_url":"https://github.com/NYPL-Simplified/server_core/issues/316","id":161209239,"number":316,"title":"OPDS import can recreate LicensePools, leaving old LicensePool without identifier","user":{"login":"leonardr","id":662474,"avatar_url":"https://avatars.githubusercontent.com/u/662474?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardr","html_url":"https://github.com/leonardr","followers_url":"https://api.github.com/users/leonardr/followers","following_url":"https://api.github.com/users/leonardr/following{/other_user}","gists_url":"https://api.github.com/users/leonardr/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardr/subscriptions","organizations_url":"https://api.github.com/users/leonardr/orgs","repos_url":"https://api.github.com/users/leonardr/repos","events_url":"https://api.github.com/users/leonardr/events{/privacy}","received_events_url":"https://api.github.com/users/leonardr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-20T14:32:31Z","updated_at":"2016-06-20T14:47:44Z","closed_at":null,"body":"This is kind of a vague issue but I don't have time to investigate it in depth.\n\nAfter importing books multiple times from the open-access content server, I noticed a number of LicensePools that had no associated Identifiers. I think these two things are related. Maybe the old LicensePool gets destroyed and a new one created? \n\nThis was causing crashes, but I've fixed them.\nSo apart from cluttering up the database, this isn't a big problem. The main problem is that the old license_pool_id is still stored in the materialized view. Until the materialized view is refreshed, the \"changed\" book won't show up in search results. \n\nI would still like to figure out what's really going on here because there might be a more subtle problem I haven't fixed."},"comment":{"url":"https://api.github.com/repos/NYPL-Simplified/server_core/issues/comments/227164237","html_url":"https://github.com/NYPL-Simplified/server_core/issues/316#issuecomment-227164237","issue_url":"https://api.github.com/repos/NYPL-Simplified/server_core/issues/316","id":227164237,"user":{"login":"leonardr","id":662474,"avatar_url":"https://avatars.githubusercontent.com/u/662474?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardr","html_url":"https://github.com/leonardr","followers_url":"https://api.github.com/users/leonardr/followers","following_url":"https://api.github.com/users/leonardr/following{/other_user}","gists_url":"https://api.github.com/users/leonardr/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardr/subscriptions","organizations_url":"https://api.github.com/users/leonardr/orgs","repos_url":"https://api.github.com/users/leonardr/repos","events_url":"https://api.github.com/users/leonardr/events{/privacy}","received_events_url":"https://api.github.com/users/leonardr/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T14:47:44Z","updated_at":"2016-06-20T14:47:44Z","body":"Amy speculates that the old LicensePool might be the one with a data source of \"Gutenberg\", and the new LicensePool might be the one with a data source of \"Library Simplified Open Access Content Server\". The bug would happen if we don't allow two different data sources to provide a LicensePool for the same Identifier."}}
{"actor":{"display_login":"leonardr"}}