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

Converts collection in spec/features/collection_type_spec.rb and highlights bug. #6612

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

bwatson78
Copy link
Contributor

Fixes

Fixes spec/features/collection_type_spec.rb.

Summary

Converts collection in spec/features/collection_type_spec.rb and highlights bug.

Type of change (for release notes)

  • notes-valkyrie Valkyrie Progress

Changes proposed in this pull request:

  • L#244: Changes collection object to :pcdm_collection because the query used to find a collection_type's collections is tied to Hyrax::PcdmCollection, which :hyrax_collection doesn't parse to when that type of collection is created via FactoryBot.
  • L#300+: split this into ActiveFedora vs. Valkyrie to highlight bug detailed in BUG: In Koppie, a collection type can be deleted when it has collections associated to it. #6611. I also believe this is tied to the behavior discussed above (CollectionResource vs. Hyrax::PcdmCollection for querying).
  • All: refactored to shorten test suite's length.

@samvera/hyrax-code-reviewers

@bwatson78 bwatson78 added valkyrization notes-valkyrie Release Notes: Valkyrie specific labels Jan 17, 2024
@bwatson78 bwatson78 self-assigned this Jan 17, 2024
@jeremyf jeremyf merged commit 0f15b51 into main Jan 19, 2024
4 checks passed
@jeremyf jeremyf deleted the updates_refactors_collection_type_spec branch January 19, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-valkyrie Release Notes: Valkyrie specific valkyrization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants