Closed ShanaLMoore closed 6 months ago
The visibility attribute is not part of collection, so calling save on collection doesnât save it. It feels disingenuous to have a visibility= method on the collection because that doesnât do what is needed, but that's a bit beside the point.
The FORM has the visibility tied in, and saves the Hyrax::AccessControl through the transaction, which is where it gets updated.
problem - we need to change the form and not just the object. per LaRita
Confirmed that it is now working for works after a bulkrax update.
Verified that Bulkrax update fixed issue for collections.
Tested via CSV visibility.csv
Importer specified "Public" as default
Results:
UPDATE:
This issue is observed regardless if the work is imported or not. Repeating the following steps results in a failed update to the visibility property. And it seems as though it reverts back to whatever the original setting was. This needs to be addressed before Bulkrax.
STEPS TO REPRODUCE FROM RAILS CONSOLE
First, in the UI - login as an admin and create a work. Set the visibility to open.
Updating the visibility through the UI works though.
Original Issue: If you import a CSV on an importer and select the visibility to be open, it appears to ignore the selection.
All imported works and collections get set to private.
Acceptance Criteria