Rake task for updating collection_type_gid #982
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Notes
The collections in production have been updated. Collections in staging have not been updated.