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

don't break on UrlHelper load if models aren't ActiveModel conformant #4848

Merged
merged 1 commit into from
Apr 2, 2021

Conversation

no-reply
Copy link
Contributor

@no-reply no-reply commented Apr 2, 2021

not all possible registered_curation_concern_types (or FileSets or
Collections) have a model name. likewise, registered_curation_concern_types
contains strings, which might not be constantizable by mistake. if the rest of
the application works under these conditions, just skip defining track paths.

note that this module is eagerly loaded and run (only in production, for usual
app configurations!) even if it's not included anywhere in the downstream
application. this is a bad time to break someone's app on startup over code they
didn't load themselves.

@samvera/hyrax-code-reviewers

@no-reply no-reply force-pushed the no-track-paths-for-old-models branch 2 times, most recently from 8475f46 to 2a8fda5 Compare April 2, 2021 06:28
not all possible `registered_curation_concern_types` (or `FileSet`s or
`Collection`s) have a model name. likewise, `registered_curation_concern_types`
contains strings, which might not be constantizable by mistake. if the rest of
the application works under these conditions, just skip defining track paths.

note that this module is eagerly loaded and run (only in production, for usual
app configurations!) even if it's not included anywhere in the downstream
application. this is a bad time to break someone's app on startup over code they
didn't load themselves.
@jeremyf jeremyf merged commit 7c00574 into master Apr 2, 2021
@jeremyf jeremyf deleted the no-track-paths-for-old-models branch April 2, 2021 12:05
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