You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing a collection, the Sharing tab allows the user to set default permissions for works created in that collection and the Discoverable tab allows the user to set the visibility of the collection. The view hyrax/dashbaord/collections/_form_share.html.erb uses @form.permission_template to construct the form allowing the user to add access. Similarly, the view hyrax/dashboard/collections/_form_discovery.html.erb uses @form.permission_template to determine the current visibility of the collection.
When working with Hyrax::PcdmCollections (Valkyrie::Resource), the Hyrax::PcdmCollectionForm (Valkyrie::ChangeSet) is used. At this time, it does not support #permission_template. This error impacts Sharing and Discovery tabs of the collection edit form.
Rationale
Working with AF Collections or Valkyrie Collections, the Sharing and Discovery tabs should allow users to set default permissions and visibility, respectively, for the collection.
Expected behavior
Editing a Hyrax::PcdmCollection should load the edit form, including the Sharing and Discovery tabs.
Actual behavior
Editing a Hyrax::PcdmCollection fails to load the edit form for multiple reasons. One includes the inability to load the Sharing and Discovery tabs because the @form object does not support the #permission_template method.
To isolate issues in other tabs, create a collection_type with all options off except Discovery.
navigate to Dashboard -> Settings -> Collection Types
click button: Create new collection type
set Type name: Discovery only (or other meaningful name)
click button: Save
click tab: Settings
set to only have Discovery turned on (as seen below)
click button: Save changes
To reproduce:
navigate to Dashboard -> Collections
click button: New Collection
select type: Discovery only (or the name you used when creating the collection type)
click button: Create Collection
set Title: My Discoverable Collection (or other meaningful name)
click Save (this loads the editor for the collection including the Discovery tab)
The error will occur as the edit form tries to load.
NOTE: There may be other errors on the Discovery tab once this error is resolved.
NOTE: This impacts the Sharing tab as well. Once a fix is in place for the Discovery tab, test the Sharing tab.
Related work
See related issues in Issue #5326 UBER: Hyrax-Valkyrization MVP
Issue #5400 is the same error for AdministrativeSets
The text was updated successfully, but these errors were encountered:
Descriptive summary
When editing a collection, the Sharing tab allows the user to set default permissions for works created in that collection and the Discoverable tab allows the user to set the visibility of the collection. The view
hyrax/dashbaord/collections/_form_share.html.erb
uses @form.permission_template to construct the form allowing the user to add access. Similarly, the viewhyrax/dashboard/collections/_form_discovery.html.erb
uses @form.permission_template to determine the current visibility of the collection.When working with Hyrax::PcdmCollections (Valkyrie::Resource), the Hyrax::PcdmCollectionForm (Valkyrie::ChangeSet) is used. At this time, it does not support
#permission_template
. This error impacts Sharing and Discovery tabs of the collection edit form.Rationale
Working with AF Collections or Valkyrie Collections, the Sharing and Discovery tabs should allow users to set default permissions and visibility, respectively, for the collection.
Expected behavior
Editing a Hyrax::PcdmCollection should load the edit form, including the Sharing and Discovery tabs.
Actual behavior
Editing a Hyrax::PcdmCollection fails to load the edit form for multiple reasons. One includes the inability to load the Sharing and Discovery tabs because the
@form
object does not support the#permission_template
method.Steps to reproduce the behavior
Prerequisites:
Edit
/config/initializers/hyrax.rb
and set:To isolate issues in other tabs, create a collection_type with all options off except Discovery.
To reproduce:
The error will occur as the edit form tries to load.
NOTE: There may be other errors on the Discovery tab once this error is resolved.
NOTE: This impacts the Sharing tab as well. Once a fix is in place for the Discovery tab, test the Sharing tab.
Related work
See related issues in Issue #5326 UBER: Hyrax-Valkyrization MVP
Issue #5400 is the same error for AdministrativeSets
The text was updated successfully, but these errors were encountered: