Skip to content

Commit

Permalink
Update to Hyrax 3
Browse files Browse the repository at this point in the history
----------------------------------------------------------------------

Hyrax 3.0.2

* Field label “Abstract or Summary” has been changed to “Description”

* License on the monograph “show” page has moved

* Hyrax::Actors::TransactionalRequest, Hyrax::Actors::TransferRequestActor, and Hyrax::Actors::InitializeWorkflowActor are now gone.

* object.original_file.present? not working in an odd edge case spec mock.
!object.original_file.nil? is fine though.

* Can't modify frozen string derivatives path in download controller override

* Heliotrope doesn't use Workflow. Don't throw a WorkflowAuthorizationException
if a FileSet has no parent in the FileSet controller. We handle that in other
ways (orphaned FileSet logic from long ago)

* New default work fields: alternative_title, abstract, access_right, rights_notes
Suppressing these in the work and batch upload forms

* Creating a work now creates 5 objects:

Monograph
Hydra::AccessControl
Hydra::AccessControls::Permission
Hydra::AccessControls::Embargo
Hydra::AccessControls::Lease

when it used to create 3

Monograph
Hydra::AccessControl
Hydra::AccessControls::Permission

* Hyrax::Actors::CleanupFileSetsActor.cleanup_file_sets override needs to
account for leases and embargos. We do not want orphan leases and embargos
after deleting a work.

* Lease and Embargo objects need to be accounted for in services/restful_fedora/service

Hyrax 3.1

* Blacklight::Exceptions::RecordNotFound: and ActionView::Template::Error:

models/ability_spec and views/monograph_catalog/index.html.erb_spec had
a couple of failures of the kind:

- The solr permissions search handler didn't return anything for id "my_id"

from blacklight-access-controls.

For the Ability, I think we were incorrectly adding abilities to Presenters based
on role that were only for seeing buttons/links on the monograph_catalog page.
These seem to no longer be neccesary. Removed and the buttons are fine.

For the template, we now commit the solr doc to solr instead of just .new

Hyrax 3.2.0

Hyrax 3.3.0

Hyrax 3.4.1

* Hyrax::Actors::TransferRequestActor is now back in the actor stack

* Asset compilation errors

Updated uglifier gem
Pin tinymce-rails per samvera/hyrax#5612

* Added okcomputer gem for /healthz route
  • Loading branch information
sethaj committed Jun 3, 2022
1 parent 155f383 commit 27a5510
Show file tree
Hide file tree
Showing 19 changed files with 427 additions and 357 deletions.
12 changes: 10 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ gem 'faraday_middleware', '~> 0.14.0'
# # Use gem version of handle_rest
gem 'handle_rest', git: 'https://github.com/mlibrary/handle_rest', ref: 'baed402b5a530eb57e838443ce292ec3f46cd5e6'

gem 'hyrax', '2.9.5'
gem 'hyrax', '3.4.1'

# pinned for Jekyll
gem 'i18n', '~> 0.7'
Expand Down Expand Up @@ -150,6 +150,8 @@ gem 'mysql2', '~> 0.4.10'
# CVE-2020-26247
gem "nokogiri", ">= 1.13.6"

gem "okcomputer", "~> 1.18.4"

# Read PDF ToC
gem 'origami'

Expand Down Expand Up @@ -185,8 +187,14 @@ gem 'sqlite3'
# SwaggerClient - the Ruby gem for the COUNTER_SUSHI5_0 API
gem 'swagger_client', git: 'https://github.com/mlibrary/swagger_client', branch: 'master'

# https://github.com/samvera/hyrax/pull/5612
# "Version 6 of tinymce-rails causes uglifier to error during assets:precompile"
# This seems to be a hyrax 3.4.1 problem, the next release will have this pin
# in hyrax itself so can be removed
gem 'tinymce-rails', '~> 5.10'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '~> 3.2'
gem 'uglifier', '~> 4.2'

# Talking to Google Analytics
gem 'legato', '~> 0.3'
Expand Down
Loading

0 comments on commit 27a5510

Please sign in to comment.