psu-libraries / scholarsphere-3

A web application for ingest, curation, search, and display of digital assets. Powered by Hydra technologies (Rails, Hydra-head, Blacklight, Solr, Fedora Commons, etc.)
Apache License 2.0
78 stars 24 forks source link

Deprecation warning on prod for rights #1475

Closed carolyncole closed 5 years ago

carolyncole commented 6 years ago

DEPRECATION WARNING: You are using the deprecated RightsService module, but you do not have 'rights.yml'. Switch to CurationConcerns::LicenseService instead. (called from at /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/curation_concerns-1.7.8/app/services/rights_service.rb:4) Loading production environment (Rails 4.2.7.1)

mtribone commented 5 years ago

It looks like we are calling the updated Rights Service in the edit fields for records. Not sure why we are getting the deprecation warning in production.

https://github.com/psu-stewardship/scholarsphere/blob/develop/app/views/records/edit_fields/_rights.html.erb#L1

mtribone commented 5 years ago

licenses authorities https://github.com/psu-stewardship/scholarsphere/blob/develop/config/authorities/licenses.yml

mtribone commented 5 years ago

It was suggested that perhaps updating our version of Curation Concerns would resolve the deprecation warning, however, Sufia 7.4.1 requires Curation Concerns 1.7.6. Upgrading to Curation Concerns 2.0.0 would also require a data migration and resolving compatible version of Active Fedora, Hydra Batch Edit, Mailboxer, Blacklight Gallery, etc.

mtribone commented 5 years ago

Wait until we upgrade to Hyrax to solve the deprecation warning.

mtribone commented 5 years ago

The direction has changed scope.