hyrax icon indicating copy to clipboard operation
hyrax copied to clipboard

Cannot remove embargo from work

Open jlhardes opened this issue 2 years ago • 3 comments

Descriptive summary

When testing locally using koppie and after a work has an embargo assigned, trying to deactivate the embargo results in an error message.

Expected behavior

A Deactivation successful message should appear and you should be able to verify that the embargo has been removed from the Work and the Work can be accessed.

Actual behavior

The following error message is shown when trying to deactivate an embargo on a work: Faraday::ConnectionFailed in Hyrax::PermissionsController#confirm

Screen Shot 2022-09-08 at 11 38 35 AM

Steps to reproduce the behavior

  1. Navigate to a Work which contains an embargo
  2. Click the "Edit" button
  3. In the "Save Work" box on the right side, click the "Embargo Management Page" link in the Visibility section
  4. Click the "Deactivate Embargo" button
  5. Error message appears (see screenshot)

Related work

#5572 Works cannot be saved if embargo or lease is assigned (nurax-pg) - in progress and available to test locally only but allows works to be saved with an embargo

jlhardes avatar Sep 08 '22 15:09 jlhardes

Testing on koppie shows that the error screen isn't occurring anymore but the embargo is still not being removed. I see the green message that says it was successful but the Embargo badge is never changed to anything else. Additionally, the work title is not showing in the Embargo Management Page or in the interim screen when trying to Deactivate. I'm not sure if that is connected to the embargo not actually being removed, but maybe? The title of this work is supposed to be "Julie test embargo 1":

Screen Shot 2022-09-15 at 4 20 37 PM

Screen Shot 2022-09-15 at 4 20 52 PM

jlhardes avatar Sep 15 '22 20:09 jlhardes

Seeing the same behavior Julie notes on Koppie.

embargo

gamontoya avatar Sep 16 '22 00:09 gamontoya

My bad. I was fooled into thinking the Embargo had been remove because the Embargo badge wasn't there. I'm looking into it.

fritzfreiheit avatar Sep 16 '22 12:09 fritzfreiheit

I deactivated the Embargo on this work: https://nurax-pg.curationexperts.com/concern/generic_works/90bcd2bb-c040-44f1-a795-bc4f7afcba35/edit?locale=en - the embargo appears to have been removed, but it does not show up on the Deactivated Embargoes list in Manage Embargoes.

Screen Shot 2023-01-23 at 1 43 04 PM

eporter23 avatar Jan 23 '23 18:01 eporter23

I created a new work and embargoed it, and tried to remove the embargo. I see a prompt to reset permissions to Private and proceed. No errors occur, but the work remains embargoed after several attempts. https://nurax-pg.curationexperts.com/concern/generic_works/9bc3f926-28c9-4165-bc71-0bf4adc7358f?locale=en

eporter23 avatar Jan 23 '23 19:01 eporter23

@rjkati

I can still replicate this issue on Koppie v4.0.0.rc3

embargo

gamontoya avatar May 23 '23 20:05 gamontoya

@rjkati This now works on dev-nurax Hyrax Version: 4.0.0.rc3

embargo

However, it sets the visibility to Private even if I set it to be Public or Institution after embargo period ends.

gamontoya avatar May 23 '23 20:05 gamontoya

this ticket only refers to embargoes, but it appear leases also aren't working. it's out of scope, but the work has begun on #6111.

alishaevn avatar Jul 17 '23 15:07 alishaevn

Confirmed that deactivating embargoes now works on pg.nurax

rjkati avatar Aug 10 '23 16:08 rjkati