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 force "Collection" model filter from the view #6273

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

no-reply
Copy link
Contributor

@no-reply no-reply commented Aug 31, 2023

Fixes

Fixes a Valkyrie-only bug where collections are filtered en-masse from the Collection listing because they are indexed from a model other than the AF Collection

refs #5522

Summary

the search builders for the target controller already search effectively for the
model class, and may have better strategies for doing so in the future. adding a
filter here prevents applications from using Collection models not named
"Collection".

Guidance for testing, such as acceptance criteria or new user interface behaviors:

Changes proposed in this pull request:

  • adds some controller tests (it turns out these are irrelevant to the change, but improve testing anyway)
  • Fix bug: "Empty collections displayed when clicking "View collections of this type" after trying deleting non-empty collection type"

@samvera/hyrax-code-reviewers

@no-reply no-reply added the notes-bugfix Release Notes: Fixed a bug label Aug 31, 2023
tamsin johnson added 2 commits August 30, 2023 19:50
the issue in #5522 is that search filters for collections aren't working
correctly on `.koppie` (when collections have `model_name` other than
`Collection`).

the relevant controller specs were completely stubbed on all the related
behavior. this unstubs them so there's a narrow test that fails related to the
issue.
the search builders for the target controller already search effectively for the
model class, and may have better strategies for doing so in the future. adding a
filter here prevents applications from using Collection models not named
"Collection".
@no-reply no-reply added the notes-valkyrie Release Notes: Valkyrie specific label Aug 31, 2023
Copy link
Contributor

@mcritchlow mcritchlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This was so confusing

@mcritchlow mcritchlow merged commit 5893bc5 into main Aug 31, 2023
@mcritchlow mcritchlow deleted the 5522-my-collections-search branch August 31, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug notes-valkyrie Release Notes: Valkyrie specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants