Skip to content

LIBTD-1464: Remove admin set functionality

Paul Mather requested to merge LIBTD-1464 into dev

Created by: tingtingjh

JIRA Ticket: https://webapps.es.vt.edu/jira/browse/LIBTD-1464 ()

What does this Pull Request do? ()

Hyrax displays references to admin sets by default. This PR turns off this feature by COMPEL requirement.

What's the changes? ()

  • Toggle this feature off by setting it in feature_config_path which is config/features.yml.
  • Changes made in app/views/hyrax/base/_relationships_parent_rows.html.erb makes sure that if this feature is indeed flipped off, not to display admin set relationship.

How should this be tested?

  • Create a performance or composition work. Then check if the default admin set is not displayed in the "Relationships" section.
  • Sign in as an admin user, go to dashboard -> Settings -> Features, to check if the assign admin set feature is disabled.

Additional Notes:

  • Testing branch: LIBTD-1464
  • assign_admin_set should be set as boolean false instead of string false which is deviated from Samvera https://github.com/samvera/hyrax
  • Changes made in config might require a restart of your virtual machine

Interested parties

@shabububu () Required fields

Merge request reports