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

only use specialized Wings::WorkSearchBuilder if Wings is enabled #6261

Merged
merged 1 commit into from Aug 30, 2023

Conversation

no-reply
Copy link
Member

WorksControllerBehavior offers the option to use it with curation_concern_type that is a Valkyrie::Resource. in the event that one does this, and Wings is turned on, it's necessary to provide a custom search_builder_class to the controller to allow it to find resources indexed as their mapped ActiveFedora objects.

that is, Valkyrie objects saved by Wings are indexed by ActiveFedora using model names provided by AF.

none of this is needed if Valkyrie is handling the indexing, and the normal search builder can be used in that case. so don't try to setup this class for .koppie and in other cases where Wings is not in use.

@samvera/hyrax-code-reviewers

`WorksControllerBehavior` offers the option to use it with
`curation_concern_type` that is a `Valkyrie::Resource`. in the event that one
does this, and `Wings` is turned on, it's necessary to provide a custom
search_builder_class to the controller to allow it to find resources indexed as
their mapped `ActiveFedora` objects.

that is, Valkyrie objects saved by Wings are indexed by ActiveFedora using model
names provided by AF.

none of this is needed if Valkyrie is handling the indexing, and the normal
search builder can be used in that case. so don't try to setup this class for
`.koppie` and in other cases where Wings is not in use.
@no-reply no-reply added notes-valkyrie Release Notes: Valkyrie specific notes-tests Release Notes: Spec or CI changes labels Aug 30, 2023
@hackartisan hackartisan merged commit 0fb3829 into main Aug 30, 2023
3 checks passed
@hackartisan hackartisan deleted the works-controller branch August 30, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-tests Release Notes: Spec or CI changes notes-valkyrie Release Notes: Valkyrie specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants