Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render orphan filesets #647

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Render orphan filesets #647

wants to merge 3 commits into from

Conversation

aploshay
Copy link
Contributor

Trying to render the Show page for a FileSet missing a parent generates ruby errors in the controller and view partials, which prevents looking at such a file in the UI. This patches the controller and partials to continue rendering the page.

Note that, in principle, a FileSet is meant to always have a parent -- but it can be an orphan as a result of various circumstances, one of them being mid-import in newer versions of bulkrax that can generate an object then run a separate job later to create its relationships.

@aploshay aploshay marked this pull request as ready for review January 29, 2025 17:24
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