scientist-softserv / hykuup_knapsack

container project for the Hyku Up deploy of Hyku
Apache License 2.0
1 stars 0 forks source link

When `Hyrax.config.use_valkyrie?` is true DO NOT ALLOW ActiveFedora objects to be made/updated directly #139

Open jeremyf opened 8 months ago

jeremyf commented 8 months ago

This means:

  1. GET url for new work, redirects to GET url for new work resource
  2. POST url for create work, raises an exception
  3. GET url for editing a work, redirects to GET url for editing work resource
  4. PATCH/PUT url for update work, raises an exception
  5. In Hyku, when Hyrax.config.use_valkyrie? is true; our entry methods for create and update in the actor stack should raise an exception. No rescue no kindness just scream "Not gonna do it!" in our best Dana Carvey imitation of George Bush Sr.

The observed problem is when Hyrax.config.use_valkyrie? to be true, and we use the Actor Stack we end up create two objects with different IDs, one an ActiveFedora::Base object and the other a Valkyrie object; in essence creating one work in fact creates two.