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

Use a Hyrax configuration option to set the system virus scanner #4211

Merged
merged 1 commit into from
Jan 24, 2020

Conversation

no-reply
Copy link
Contributor

Previously, we used Hyrax.primary_work_type to set the system wide virus
scanner. There appears to be no reason for this to be configurable on a
per-work basis; we always use the "primary work type" (i.e. whichever one
happens to be first in the registered work types list!) to choose the virus
scanner.

Using a system-wide configuration is much more clear. The default for this
configuration is to fall back on the primary_work_type's configured scanner.

@samvera/hyrax-code-reviewers

Previously, we used `Hyrax.primary_work_type` to set the system wide virus
scanner. There appears to be  no reason for this to be configurable on a
per-work basis; we always use the "primary work type" (i.e. whichever one
happens to be first in the registered work types list!) to choose the virus
scanner.

Using a system-wide configuration is much more clear. The default for this
configuration is to fall back on the `primary_work_type`'s configured scanner.
@mjgiarlo mjgiarlo merged commit fc9d119 into master Jan 24, 2020
@mjgiarlo mjgiarlo deleted the config-virus-scanner branch January 24, 2020 17: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.

3 participants