{"action":"created","issue":{"url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/712","labels_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/712/comments","events_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/712/events","html_url":"https://github.com/ualbertalib/HydraNorth/issues/712","id":110840248,"number":712,"title":"belongsToCommunity has an GenericFile Id instead of Collection Id","user":{"login":"weiweishi","id":2047614,"avatar_url":"https://avatars.githubusercontent.com/u/2047614?v=3","gravatar_id":"","url":"https://api.github.com/users/weiweishi","html_url":"https://github.com/weiweishi","followers_url":"https://api.github.com/users/weiweishi/followers","following_url":"https://api.github.com/users/weiweishi/following{/other_user}","gists_url":"https://api.github.com/users/weiweishi/gists{/gist_id}","starred_url":"https://api.github.com/users/weiweishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weiweishi/subscriptions","organizations_url":"https://api.github.com/users/weiweishi/orgs","repos_url":"https://api.github.com/users/weiweishi/repos","events_url":"https://api.github.com/users/weiweishi/events{/privacy}","received_events_url":"https://api.github.com/users/weiweishi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ualbertalib/HydraNorth/labels/priority:medium","name":"priority:medium","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ualbertalib/HydraNorth/milestones/32","html_url":"https://github.com/ualbertalib/HydraNorth/milestones/Sprint%2028","labels_url":"https://api.github.com/repos/ualbertalib/HydraNorth/milestones/32/labels","id":1353387,"number":32,"title":"Sprint 28","description":"High:\r\n\r\n#709\r\n#710\r\n#715\r\n\r\nMedium:\r\n\r\n#608\r\n#712\r\n","creator":{"login":"pbinkley","id":272816,"avatar_url":"https://avatars.githubusercontent.com/u/272816?v=3","gravatar_id":"","url":"https://api.github.com/users/pbinkley","html_url":"https://github.com/pbinkley","followers_url":"https://api.github.com/users/pbinkley/followers","following_url":"https://api.github.com/users/pbinkley/following{/other_user}","gists_url":"https://api.github.com/users/pbinkley/gists{/gist_id}","starred_url":"https://api.github.com/users/pbinkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbinkley/subscriptions","organizations_url":"https://api.github.com/users/pbinkley/orgs","repos_url":"https://api.github.com/users/pbinkley/repos","events_url":"https://api.github.com/users/pbinkley/events{/privacy}","received_events_url":"https://api.github.com/users/pbinkley/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":1,"state":"open","created_at":"2015-10-13T15:11:27Z","updated_at":"2015-10-13T17:01:30Z","due_on":"2015-10-23T06:00:00Z","closed_at":null},"comments":7,"created_at":"2015-10-11T07:38:19Z","updated_at":"2015-10-13T17:46:39Z","closed_at":null,"body":"With the issue identified by @sfarnel on the comment of #710:\r\ne.g.: https://hydranorth.library.ualberta.ca/files/dn39x224x\r\n\r\nvisibility shows as UofA. when I click on an item I get an error:\r\n\r\n\"We're sorry, but something went wrong. If you are the application owner\r\ncheck the logs for more information.\"\r\n\r\nLog info:\r\nActionView::Template::Error (Model mismatch. Expected Collection. Got: GenericFile):\r\n     8:         <% @generic_file.belongsToCommunity.each do |c| %>\r\n     9:         <tr class=\"collection attributes\">\r\n    10:           <%= content_tag :td, class: 'attribute title', data: { id: c } do %>\r\n    11:             <% community = Collection.find(c) %>\r\n    12:             <%= link_to community.title, collections.collection_path(community) %>\r\n    13:           <% end %>\r\n    14:         </tr>\r\n\r\nSome issue with a particular item:\r\nuuid:ca304e6a-06ab-419d-aa52-1771d3b641ee\r\n\r\nThe community in the foxml has an uuid:11274e20-0426-4e80-84f4-bef79dbd6633 \r\nHowever, this is not a collection, it's an object. \r\nhttps://era.library.ualberta.ca/public/view/item/uuid:11274e20-0426-4e80-84f4-bef79dbd6633/\r\n\r\nWe can temporarily disable the community display to allow these items to show properly. And can probably generate a report on all the problematic issues for further investigation. "},"comment":{"url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/comments/147791719","html_url":"https://github.com/ualbertalib/HydraNorth/issues/712#issuecomment-147791719","issue_url":"https://api.github.com/repos/ualbertalib/HydraNorth/issues/712","id":147791719,"user":{"login":"pbinkley","id":272816,"avatar_url":"https://avatars.githubusercontent.com/u/272816?v=3","gravatar_id":"","url":"https://api.github.com/users/pbinkley","html_url":"https://github.com/pbinkley","followers_url":"https://api.github.com/users/pbinkley/followers","following_url":"https://api.github.com/users/pbinkley/following{/other_user}","gists_url":"https://api.github.com/users/pbinkley/gists{/gist_id}","starred_url":"https://api.github.com/users/pbinkley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbinkley/subscriptions","organizations_url":"https://api.github.com/users/pbinkley/orgs","repos_url":"https://api.github.com/users/pbinkley/repos","events_url":"https://api.github.com/users/pbinkley/events{/privacy}","received_events_url":"https://api.github.com/users/pbinkley/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T17:46:39Z","updated_at":"2015-10-13T17:46:39Z","body":"That would lead to hydranorth being able to fetch foxml from old ERA both\nfor a collection and for an item with the same uuid, without there being\nactual duplication in old ERA.\n\n\nOn 13 October 2015 at 11:42, Mariana Paredes-Olea <notifications@github.com>\nwrote:\n\n> In relation to duplicate uuids: it may be that it is not a case of\n> duplication but of different views available in ERA for a specific foxml\n> item.\n>\n> For example, the community below can be viewed in old ERA both as\n> community and as item but it is the same foxml:\n>\n> https://era.library.ualberta.ca/public/view/community/uuid:11274e20-0426-4e80-84f4-bef79dbd6633/\n> and\n>\n> https://era.library.ualberta.ca/public/view/item/uuid:11274e20-0426-4e80-84f4-bef79dbd6633/\n>\n> This applies to all communities and collections (i.e. any community can be\n> seen as item and any collection can be seen as item, but no community can\n> be seen as collection or viceversa).\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/ualbertalib/HydraNorth/issues/712#issuecomment-147789439>\n> .\n>\n"}}