Skip to content

Upgrading manifest generation to Hyrax 2.9.2

Tiffany Chan edited this page Mar 19, 2021 · 11 revisions

See https://github.com/samvera/hyrax/pull/4412/files

Performance Tests

Loading time is defined by the time for the first thumbnail of a compound object to load. In all instances, caching is disabled. Refreshed page 5 times and recorded the median time.

5G Fast 3G Slow 3G
Before 1:09.64s 1:37.33s Time out
After 0:08.77s 0:31.96s Time out

Initial Upgrade Files

Controllers

  • concerns/hyku/iiif_manifest

Models

  • concerns/hyrax/solr_document_behavior.rb
  • concerns/hyrax/solr_document/metadata.rb

Presenters

  • hyrax/iiif_manifest_presenter.rb
  • hyrax/custom iiif_manifest_presenter.rb (inherits from above)

Services

  • hyrax/manifest_builder_service.rb
  • hyrax/custom_manifest_builder_service.rb (inherits from above)

Other

  • Install Draper gem: gem 'draper', '~> 4.0'

To Do

  • Integrate option to cache manifests
  • Change config/features.rb to include FlipFlop for manifest caching
  • Add support for PNGs with transparency
  • Change the JS code in public/uv.html to only show label fields (without "label" in the label)