Skip to content

Redefine valid_child_concerns#94

Merged
ShanaLMoore merged 1 commit intomainfrom
i93-valid-child-work-types
Nov 17, 2025
Merged

Redefine valid_child_concerns#94
ShanaLMoore merged 1 commit intomainfrom
i93-valid-child-work-types

Conversation

@laritakr
Copy link
Copy Markdown
Member

Story

A class's valid_child_concerns are redefined to only include registered concerns.

Ensure that only the registered concerns can be nested within each other Hyrax::NestedWorks loads the valid_child_concerns prior to the above configuration This removes Hyku's default work types from the list of valid child concerns

Refs #93

Expected Behavior Before Changes

A work's show page will not load to logged in user in production environment.

Expected Behavior After Changes

  • Work show pages load
  • Work show page's child works button shows only the valid list of work types.

Screenshots / Video

Notes

A class's valid_child_concerns are redefined to only include registered concerns.

Ensure that only the registered concerns can be nested within each other
Hyrax::NestedWorks loads the valid_child_concerns prior to the above configuration
This removes Hyku's default work types from the list of valid child concerns
@ShanaLMoore ShanaLMoore merged commit e54c814 into main Nov 17, 2025
7 checks passed
@ShanaLMoore ShanaLMoore deleted the i93-valid-child-work-types branch November 17, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants