{"action":"created","issue":{"url":"https://api.github.com/repos/aic-collections/aicdams-lakeshore/issues/443","repository_url":"https://api.github.com/repos/aic-collections/aicdams-lakeshore","labels_url":"https://api.github.com/repos/aic-collections/aicdams-lakeshore/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/aic-collections/aicdams-lakeshore/issues/443/comments","events_url":"https://api.github.com/repos/aic-collections/aicdams-lakeshore/issues/443/events","html_url":"https://github.com/aic-collections/aicdams-lakeshore/pull/443","id":292530778,"number":443,"title":"Bug #2480: Pref rep is not cleared when removing rep from (preferred) asset edit page","user":{"login":"RudyOnRails","id":1021154,"avatar_url":"https://avatars0.githubusercontent.com/u/1021154?v=4","gravatar_id":"","url":"https://api.github.com/users/RudyOnRails","html_url":"https://github.com/RudyOnRails","followers_url":"https://api.github.com/users/RudyOnRails/followers","following_url":"https://api.github.com/users/RudyOnRails/following{/other_user}","gists_url":"https://api.github.com/users/RudyOnRails/gists{/gist_id}","starred_url":"https://api.github.com/users/RudyOnRails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RudyOnRails/subscriptions","organizations_url":"https://api.github.com/users/RudyOnRails/orgs","repos_url":"https://api.github.com/users/RudyOnRails/repos","events_url":"https://api.github.com/users/RudyOnRails/events{/privacy}","received_events_url":"https://api.github.com/users/RudyOnRails/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-29T19:28:54Z","updated_at":"2018-04-12T18:57:44Z","closed_at":"2018-04-12T18:57:44Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/aic-collections/aicdams-lakeshore/pulls/443","html_url":"https://github.com/aic-collections/aicdams-lakeshore/pull/443","diff_url":"https://github.com/aic-collections/aicdams-lakeshore/pull/443.diff","patch_url":"https://github.com/aic-collections/aicdams-lakeshore/pull/443.patch"},"body":"# REDMINE URL: https://cits.artic.edu/redmine/issues/2480\r\n\r\n### QUESTIONS\r\n- [ ] What test would it be in?\r\n- [ ] What code do we need to edit?\r\n- [ ] Does Adam need to be informed/included as part of relationship-flip?\r\n\r\n### SUPPORTING INFO\r\n* asset edit page when adding new work \r\n```\r\nStarted PATCH \"/concern/generic_works/7413c123-ebae-3eff-f557-2fedc3c4e374\" for ::1 at 2018-01-29 13:22:10 -0600\r\nProcessing by CurationConcerns::GenericWorksController#update as HTML\r\n  Parameters: {\"utf8\"=>\"✓\", \"authenticity_token\"=>\"v9cgQk8/v/DA3Wyic87qDUHiW+QcDvnt5dPKQKUJFR2Gds1FazPSU2biRSugKYN3cHln9UAZnBXlrVi8gfitfA==\", \"generic_work\"=>{\"asset_type\"=>\"http://definitions.artic.edu/ontology/1.0/type/StillImage\", \"external_resources\"=>[\"\"], \"document_type_uri\"=>\"http://definitions.artic.edu/doctypes/Imaging\", \"first_document_sub_type_uri\"=>\"http://definitions.artic.edu/doctypes/EventPhotography\", \"second_document_sub_type_uri\"=>\"http://definitions.artic.edu/doctypes/Lecture\", \"pref_label\"=>\"The Sun\", \"alt_label\"=>[\"\"], \"description\"=>[\"\"], \"language\"=>[\"\"], \"publisher\"=>[\"\"], \"capture_device\"=>\"\", \"digitization_source_uri\"=>\"\", \"compositing_uri\"=>\"\", \"light_type_uri\"=>\"\", \"view_uris\"=>[\"\"], \"keyword_uris\"=>[\"\"], \"publish_channel_uris\"=>[\"\"], \"view_notes\"=>[\"\"], \"visual_surrogate\"=>\"\", \"public_domain\"=>\"0\", \"licensing_restriction_uris\"=>[\"\"], \"caption\"=>\"\", \"representative_id\"=>\"ab6308fe-974b-4e9b-ae94-cfd6a2878bda\", \"thumbnail_id\"=>\"ab6308fe-974b-4e9b-ae94-cfd6a2878bda\", \"representations_for\"=>[\"3fbe48ae-c750-47bd-b083-7c30ece5c0e7\"], \"visibility\"=>\"department\", \"visibility_during_embargo\"=>\"department\", \"embargo_release_date\"=>\"2018-01-30\", \"visibility_after_embargo\"=>\"open\", \"visibility_during_lease\"=>\"open\", \"lease_expiration_date\"=>\"2018-01-30\", \"visibility_after_lease\"=>\"department\", \"use_uri\"=>\"http://definitions.artic.edu/ontology/1.0/type/IntermediateFileSet\"}, \"autocomplete_attachments_for\"=>\"Asset\", \"autocomplete_representations\"=>\"Work\", \"autocomplete_documents\"=>\"Work\", \"autocomplete_attachments\"=>\"Asset\", \"new_user_name_skel\"=>\"\", \"new_user_permission_skel\"=>\"none\", \"new_group_name_skel\"=>\"\", \"new_group_permission_skel\"=>\"none\", \"id\"=>\"7413c123-ebae-3eff-f557-2fedc3c4e374\"}\r\n```\r\n* asset edit page when removing a work:\r\n```\r\nStarted PATCH \"/concern/generic_works/7413c123-ebae-3eff-f557-2fedc3c4e374\" for ::1 at 2018-01-29 13:25:17 -0600\r\nProcessing by CurationConcerns::GenericWorksController#update as HTML\r\n  Parameters: {\"utf8\"=>\"✓\", \"authenticity_token\"=>\"6o9+k6tb2lZ+SMA1Ih/RRWULDg4udlvkt4vkT8s0OqjTLpOUj1e39dh36bzx+Lg/VJAyH3JhPhy39Xaz78WCyQ==\", \"generic_work\"=>{\"asset_type\"=>\"http://definitions.artic.edu/ontology/1.0/type/StillImage\", \"external_resources\"=>[\"\"], \"document_type_uri\"=>\"http://definitions.artic.edu/doctypes/Imaging\", \"first_document_sub_type_uri\"=>\"http://definitions.artic.edu/doctypes/EventPhotography\", \"second_document_sub_type_uri\"=>\"http://definitions.artic.edu/doctypes/Lecture\", \"pref_label\"=>\"The Sun\", \"alt_label\"=>[\"\"], \"description\"=>[\"\"], \"language\"=>[\"\"], \"publisher\"=>[\"\"], \"capture_device\"=>\"\", \"digitization_source_uri\"=>\"\", \"compositing_uri\"=>\"\", \"light_type_uri\"=>\"\", \"view_uris\"=>[\"\"], \"keyword_uris\"=>[\"\"], \"publish_channel_uris\"=>[\"\"], \"view_notes\"=>[\"\"], \"visual_surrogate\"=>\"\", \"public_domain\"=>\"0\", \"licensing_restriction_uris\"=>[\"\"], \"caption\"=>\"\", \"representative_id\"=>\"ab6308fe-974b-4e9b-ae94-cfd6a2878bda\", \"thumbnail_id\"=>\"ab6308fe-974b-4e9b-ae94-cfd6a2878bda\", \"representations_for\"=>[\"\"], \"visibility\"=>\"department\", \"visibility_during_embargo\"=>\"department\", \"embargo_release_date\"=>\"2018-01-30\", \"visibility_after_embargo\"=>\"open\", \"visibility_during_lease\"=>\"open\", \"lease_expiration_date\"=>\"2018-01-30\", \"visibility_after_lease\"=>\"department\", \"use_uri\"=>\"http://definitions.artic.edu/ontology/1.0/type/IntermediateFileSet\"}, \"autocomplete_attachments_for\"=>\"Asset\", \"autocomplete_representations\"=>\"Work\", \"autocomplete_documents\"=>\"Work\", \"autocomplete_attachments\"=>\"Asset\", \"new_user_name_skel\"=>\"\", \"new_user_permission_skel\"=>\"none\", \"new_group_name_skel\"=>\"\", \"new_group_permission_skel\"=>\"none\", \"id\"=>\"7413c123-ebae-3eff-f557-2fedc3c4e374\"}\r\nCalling ActiveFedora::SolrService.get without passing an explicit value for ':rows' is not recommended. You will end up with Solr's default (usually set to 10)\r\nCalled by /Users/kmusio/RubymineProjects/aicdams-lakeshore/app/models/aic_user.rb:66:in `find_nick_by_solr'\r\nDEPRECATION WARNING: Blacklight::Document#empty? is deprecated; use obj.to_h.empty? instead. (called from blank? at /Users/kmusio/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/core_ext/object/blank.rb:17)\r\nCalling ActiveFedora::SolrService.get without passing an explicit value for ':rows' is not recommended. You will end up with Solr's default (usually set to 10)\r\nCalled by /Users/kmusio/RubymineProjects/aicdams-lakeshore/app/models/concerns/citi_resource_metadata.rb:15:in `find_by_citi_uid_with_solr'\r\nDEPRECATION WARNING: Blacklight::Document#empty? is deprecated; use obj.to_h.empty? instead. (called from blank? at /Users/kmusio/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/core_ext/object/blank.rb:17)\r\n  User Load (0.2ms)  SELECT  \"users\".* FROM \"users\" WHERE \"users\".\"id\" = ?  ORDER BY \"users\".\"id\" ASC LIMIT 1  [[\"id\", 7]]\r\n  Load LDP (5.1ms) http://127.0.0.1:8986/rest/dev/74/13/c1/23/7413c123-ebae-3eff-f557-2fedc3c4e374 Service: 70275722539980\r\nUsergroups are [\"public\", \"admin\", \"registered\", \"112\"]\r\n  Load LDP (8.7ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898 Service: 70275722539980\r\n  Load LDP (5.7ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898/76/86/a6/70/7686a670-30f1-4853-90ed-a14183a44c7e Service: 70275722539980\r\n  Load LDP (8.9ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898/fa/b7/b4/18/fab7b418-0835-4485-8d1e-ee902886eeb4 Service: 70275722539980\r\n  Load LDP (5.4ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898/3b/04/be/29/3b04be29-9d54-46d5-b988-a868c16eca85 Service: 70275722539980\r\nUnpermitted parameter: use_uri\r\n  Load LDP (5.8ms) http://127.0.0.1:8986/rest/dev/3f/be/48/ae/3fbe48ae-c750-47bd-b083-7c30ece5c0e7 Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/74/13/c1/23/7413c123-ebae-3eff-f557-2fedc3c4e374 Service: 70275722539980\r\nCalling ActiveFedora::SolrService.get without passing an explicit value for ':rows' is not recommended. You will end up with Solr's default (usually set to 10)\r\nCalled by /Users/kmusio/RubymineProjects/aicdams-lakeshore/app/models/resource.rb:43:in `solr_relation_ids'\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/74/13/c1/23/7413c123-ebae-3eff-f557-2fedc3c4e374 Service: 70275722539980\r\n  Load LDP (9.8ms) http://127.0.0.1:8986/rest/dev/3f/be/48/ae/3fbe48ae-c750-47bd-b083-7c30ece5c0e7 Service: 70275722539980\r\n  Load LDP (4.9ms) http://127.0.0.1:8986/rest/dev/94/a0/0e/4f/94a00e4f-5361-4956-af00-6a2edb264d7e Service: 70275722539980\r\n  Load LDP (5.8ms) http://127.0.0.1:8986/rest/dev/38/37/49/52/38374952-18ab-48ba-946e-1699a1941ac1 Service: 70275722539980\r\n  Load LDP (8.8ms) http://127.0.0.1:8986/rest/dev/58/f0/0e/ca/58f00eca-c398-02f0-f9bb-6b2b6105c0ef Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/58/f0/0e/ca/58f00eca-c398-02f0-f9bb-6b2b6105c0ef Service: 70275722539980\r\n  Load LDP (6.5ms) http://127.0.0.1:8986/rest/dev/74/13/c1/23/7413c123-ebae-3eff-f557-2fedc3c4e374 Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/74/13/c1/23/7413c123-ebae-3eff-f557-2fedc3c4e374 Service: 70275722539980\r\n  Load LDP (4.4ms) http://127.0.0.1:8986/rest/dev/06/8c/5e/f1/068c5ef1-d511-4792-ba73-37fe3b320b60 Service: 70275722539980\r\n  Load LDP (5.9ms) http://127.0.0.1:8986/rest/dev/ab/63/08/fe/ab6308fe-974b-4e9b-ae94-cfd6a2878bda Service: 70275722539980\r\n  Load LDP (5.1ms) http://127.0.0.1:8986/rest/dev/ab/63/08/fe/ab6308fe-974b-4e9b-ae94-cfd6a2878bda/files/d52beb9b-0fa4-4b41-aad8-e61d7f53dd0e/fcr:metadata Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/ab/63/08/fe/ab6308fe-974b-4e9b-ae94-cfd6a2878bda/files/d52beb9b-0fa4-4b41-aad8-e61d7f53dd0e/fcr:metadata Service: 70275722539980\r\n  Load LDP (3.7ms) http://127.0.0.1:8986/rest/dev/09/6b/01/01/096b0101-070f-4ced-a1a2-b297562244b7 Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/58/f0/0e/ca/58f00eca-c398-02f0-f9bb-6b2b6105c0ef Service: 70275722539980\r\n  Load LDP (5.0ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898 Service: 70275722539980\r\n  Load LDP (8.5ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898/76/86/a6/70/7686a670-30f1-4853-90ed-a14183a44c7e Service: 70275722539980\r\n  Load LDP (5.2ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898/fa/b7/b4/18/fab7b418-0835-4485-8d1e-ee902886eeb4 Service: 70275722539980\r\n  Load LDP (4.6ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898/3b/04/be/29/3b04be29-9d54-46d5-b988-a868c16eca85 Service: 70275722539980\r\n  Load LDP (3.5ms) http://127.0.0.1:8986/rest/dev/3f/be/48/ae/3fbe48ae-c750-47bd-b083-7c30ece5c0e7/list_source Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/09/6b/01/01/096b0101-070f-4ced-a1a2-b297562244b7 Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/06/8c/5e/f1/068c5ef1-d511-4792-ba73-37fe3b320b60 Service: 70275722539980\r\nCalling ActiveFedora::SolrService.get without passing an explicit value for ':rows' is not recommended. You will end up with Solr's default (usually set to 10)\r\nCalled by /Users/kmusio/RubymineProjects/aicdams-lakeshore/app/models/resource.rb:43:in `solr_relation_ids'\r\n  Load LDP (5.3ms) http://127.0.0.1:8986/rest/dev/74/13/c1/23/7413c123-ebae-3eff-f557-2fedc3c4e374 Service: 70275722539980\r\n  Load LDP (4.4ms) http://127.0.0.1:8986/rest/dev/06/8c/5e/f1/068c5ef1-d511-4792-ba73-37fe3b320b60 Service: 70275722539980\r\n  Load LDP (3.9ms) http://127.0.0.1:8986/rest/dev/ab/63/08/fe/ab6308fe-974b-4e9b-ae94-cfd6a2878bda Service: 70275722539980\r\n  Load LDP (7.2ms) http://127.0.0.1:8986/rest/dev/ab/63/08/fe/ab6308fe-974b-4e9b-ae94-cfd6a2878bda/files/d52beb9b-0fa4-4b41-aad8-e61d7f53dd0e/fcr:metadata Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/ab/63/08/fe/ab6308fe-974b-4e9b-ae94-cfd6a2878bda/files/d52beb9b-0fa4-4b41-aad8-e61d7f53dd0e/fcr:metadata Service: 70275722539980\r\n  Load LDP (9.0ms) http://127.0.0.1:8986/rest/dev/09/6b/01/01/096b0101-070f-4ced-a1a2-b297562244b7 Service: 70275722539980\r\n  Load LDP (4.1ms) http://127.0.0.1:8986/rest/dev/58/f0/0e/ca/58f00eca-c398-02f0-f9bb-6b2b6105c0ef Service: 70275722539980\r\n  Load LDP (8.3ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898 Service: 70275722539980\r\n  Load LDP (4.3ms) http://127.0.0.1:8986/rest/dev/74/13/c1/23/7413c123-ebae-3eff-f557-2fedc3c4e374/list_source Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/74/13/c1/23/7413c123-ebae-3eff-f557-2fedc3c4e374 Service: 70275722539980\r\n  User Load (0.2ms)  SELECT  \"users\".* FROM \"users\" WHERE \"users\".\"id\" = ? LIMIT 1  [[\"id\", 7]]\r\nPerforming ContentUpdateEventJob from Inline(event) with arguments: gid://lakeshore/GenericWork/7413c123-ebae-3eff-f557-2fedc3c4e374, gid://lakeshore/User/7\r\nPerformed ContentUpdateEventJob from Inline(event) in 14.94ms\r\nEnqueued ContentUpdateEventJob (Job ID: 17b84ee3-fa4f-4e4d-958a-821566053921) to Inline(event) with arguments: gid://lakeshore/GenericWork/7413c123-ebae-3eff-f557-2fedc3c4e374, gid://lakeshore/User/7\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/74/13/c1/23/7413c123-ebae-3eff-f557-2fedc3c4e374 Service: 70275722539980\r\n  CACHE (0.0ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898 Service: 70275722539980\r\n  Load LDP (3.7ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898/76/86/a6/70/7686a670-30f1-4853-90ed-a14183a44c7e Service: 70275722539980\r\n  Load LDP (10.4ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898/fa/b7/b4/18/fab7b418-0835-4485-8d1e-ee902886eeb4 Service: 70275722539980\r\n  Load LDP (3.7ms) http://127.0.0.1:8986/rest/dev/0c/3e/79/88/0c3e7988-95f5-4183-9502-e85e2f2a0898/3b/04/be/29/3b04be29-9d54-46d5-b988-a868c16eca85 Service: 70275722539980\r\nRedirected to http://localhost:3000/concern/generic_works/7413c123-ebae-3eff-f557-2fedc3c4e374\r\nCompleted 302 Found in 1846ms (ActiveRecord: 0.3ms)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aic-collections/aicdams-lakeshore/issues/comments/380909994","html_url":"https://github.com/aic-collections/aicdams-lakeshore/pull/443#issuecomment-380909994","issue_url":"https://api.github.com/repos/aic-collections/aicdams-lakeshore/issues/443","id":380909994,"user":{"login":"RudyOnRails","id":1021154,"avatar_url":"https://avatars0.githubusercontent.com/u/1021154?v=4","gravatar_id":"","url":"https://api.github.com/users/RudyOnRails","html_url":"https://github.com/RudyOnRails","followers_url":"https://api.github.com/users/RudyOnRails/followers","following_url":"https://api.github.com/users/RudyOnRails/following{/other_user}","gists_url":"https://api.github.com/users/RudyOnRails/gists{/gist_id}","starred_url":"https://api.github.com/users/RudyOnRails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RudyOnRails/subscriptions","organizations_url":"https://api.github.com/users/RudyOnRails/orgs","repos_url":"https://api.github.com/users/RudyOnRails/repos","events_url":"https://api.github.com/users/RudyOnRails/events{/privacy}","received_events_url":"https://api.github.com/users/RudyOnRails/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T18:57:44Z","updated_at":"2018-04-12T18:57:44Z","author_association":"CONTRIBUTOR","body":"closing until it reappears in next release\r\n"}}
{"actor":{"display_login":"RudyOnRails"}}