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

Rake task for updating collection_type_gid #982

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

laritakr
Copy link
Contributor

@laritakr laritakr commented Mar 6, 2024

Story

Refs #783

The structure of the stored collection type gid changed in Hyrax 3.0

A rake task is needed to update the collection_type_gid that is stored on the collection as part of the upgrade from Hyrax 2.x process. This references the logic from the rake task that Hyrax has in versons 3 & 4, and updates it to work within Hyku tenants.

The definition of collection_type_gid= changed in Hyrax 5.0. This rake task is known to work for updates to versions prior to Hyrax 5. Functionality for later versions is unknown.

Related to #3

Expected Behavior Before Changes

Collections created in Hyrax 2 cannot be added as parent collections or subcollections of collections created in Hyrax 3 or later.

Expected Behavior After Changes

After running the rake task, collections created in Hyrax 2 have collection type gids that are compatible with the Hyrax 3 collections.

Screenshots / Video

Screenshot 2024-03-06 at 3 21 04 PM

Notes

The collections in production have been updated. Collections in staging have not been updated.

lib/tasks/collection_type_global_id.rake Outdated Show resolved Hide resolved
lib/tasks/collection_type_global_id.rake Outdated Show resolved Hide resolved
@laritakr laritakr force-pushed the i783-missing-subcollection-options branch 2 times, most recently from e26624e to bc9beda Compare March 6, 2024 21:11
The structure of the stored collection type gid changed in Hyrax 3.0

A rake task is needed to update the collection_type_gid that is stored
on the collection as part of the upgrade from Hyrax 2.x process. This
references the logic from the rake task that Hyrax has in versons 3 & 4,
and updates it to work within Hyku tenants.

The definition of collection_type_gid= changed in Hyrax 5.0. This
rake task is known to work for updates to versions prior to Hyrax 5.
Functionality for later versions is unknown.
@laritakr laritakr force-pushed the i783-missing-subcollection-options branch from bc9beda to 8c12959 Compare March 6, 2024 21:28
@laritakr laritakr merged commit 09bf754 into main Mar 6, 2024
7 checks passed
@laritakr laritakr deleted the i783-missing-subcollection-options branch March 6, 2024 22:21
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