-
Notifications
You must be signed in to change notification settings - Fork 0
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
Issue with adding collections as subcollections #783
Comments
@ndroark can you confirm whether or not this is still an issue? Based on the screenshot, the intended parent collection is Looking at the parent collection now, Though I can tell from the URL that the Collection ID is different, maybe it was recreated? I created two test collections in the franklin tenant and was able to add one as a subcollection to the other: |
The issue seems to still be present with at least certain collections in the tenant. For instance, this collection (https://franklin.hykucommons.org/dashboard/collections/39e102cc-551c-4d41-8f26-2d87190ac39f?locale=en) only lists two other collections as available to add to it, and doesn't show up in the list for other collections to be added to. |
This function should be not be limited to superadmins, any user with collection manager level permissions should be able to do this. The specific subcollections in the comments above in the Franklin tenant are the main area where problems have been observed. |
This might be associated with the pagination bug in adventist |
possible this may be fixed when upgrading. edit: it's also possible that fix wasn't applied to all controllers though related tickets (should've been contributed back). Is there an issue with permissions? |
Things to look at: And we need to consider applying the cloning the of the object to the three other locations. ❯ rg "Hyrax::CollectionsService.new"
app/controllers/concerns/hyrax/works_controller_behavior.rb
173: Hyrax::CollectionsService.new(self)
app/controllers/hyrax/my/works_controller.rb
35: Hyrax::CollectionsService.new(cloned)
app/controllers/hyrax/dashboard/collections_controller.rb
387: Hyrax::CollectionsService.new(self).search_results(:edit)
app/controllers/hyrax/homepage_controller.rb
25: Hyrax::CollectionsService.new(self).search_results do |builder| |
There seem to be 3 collections in the franklin repo that are affected:
These 3 can be added to each other, but are not options for any other collections. All other collections seem to work correctly. So far I have found no reason for this behavior and have been unable to duplicate the behavior locally. Editing and saving the Legacy collection did not fix anything. These 3 collections seem to have been the first 3 collections created in the franklin tenant. Is it possible something changed in the code prior to the 4th collection being created in March of 2023? |
✅ Passes QA
|
Summary
I am trying to add collections to existing collections (while logged in as a superadmin), but after I select the subcollection from the dropdown list, I get this error message. Occuring in franklin.hykucommons.org.
Acceptance Criteria
NOTE
This ticket was unrelated to permissions. If collection manager permissions continue, this should be a new ticket.
Testing
Verify that the 3 affected collections in Franklin tenant now show the full list of valid collections to be added as subcollections. The 3 affected collections were College Presidents, Franklin College in the News, and Lasting Legacies.
To test in staging, you would have to find an old collection (prior to 2024), create a new collection, and verify that subcollections can be added to each other.
The text was updated successfully, but these errors were encountered: