Skip to content

Add compatibility with Blacklight 7 #5075

@anusharanganathan

Description

@anusharanganathan

Descriptive summary

When viewing the list of works in a dashboard, the logs are filled with the following deprecation warning

DEPRECATION WARNING: You provided a String value to IndexPresenter#field_value Provide a Blacklight::Configuration::Field instead. This behavior is deprecated in Blacklight 7. (called from block in __usr_local_bundle_gems_hyrax_______app_views_catalog__index_list_default_html_erb__4462691090849688107_47379448317800 at /usr/local/bundle/gems/hyrax-2.9.5/app/views/catalog/_index_list_default.html.erb:8)

Rationale

It will prevent future upgrades of blacklight.

Expected behavior

Deprecation warnings are addressed.

Actual behavior

The logs are filled with the deprecation warning message, making it difficult to track errors.

Steps to reproduce the behavior

  1. Login to Hyrax 2.9.5
  2. Visit your dashboard, where there is a list of works.
  3. Check the log file.

Related work

Hyrax 2.9.5 is missing commit 4a476aa which is a fix for this issue. (It was available in an earlier version).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions