ualbertalib / Hydranorth2

[deprecated] Sufia 7 based application
1 stars 2 forks source link

Unable to create "works" with current version of sufia in HydraNorth2 #124

Closed murny closed 7 years ago

murny commented 7 years ago

With the current version of sufia 7.2 you are not able to upload/create any "works" from the UI. This is a pretty big breaking bug since this is a big portion of functionality for sufia.

This is due the params behaviour being changed in Rails 5. ActionController::Parameters now returns an Object instead of a Hash. You are required to .to_h the object to get an hash back. This now breaks the code found here when attempting to create a BatchCreateJob: https://github.com/projecthydra/sufia/blob/v7.2.0/app/controllers/concerns/sufia/batch_uploads_controller_behavior.rb#L43-L48

This has been hotfixed in future commits in Sufia: https://github.com/projecthydra/sufia/commit/a5b5e9fb87afbc91baf0a981cd4780e84ed0cb41

But currently no other releases have happened in 4 months since sufia 7.2 was released in Oct 1st, 2016?

What to do?

(@mbarnett )

mbarnett commented 7 years ago

Yikes. We'll either need to fork 7.2 or get working against hyrax. Since we don't want to freeze on 7.2 we're going to have to tackle the pain of moving to hyrax sooner or later -- I'd vote for sooner.

weiweishi commented 7 years ago

I agree using Hyrax makes sense at this point, since that's where all the active development is happening.

murny commented 7 years ago

Has been fixed in #127 (Decided to upgrade to Sufia branch instead of hyrax (#125))