-
Notifications
You must be signed in to change notification settings - Fork 124
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
Empty collections displayed when clicking "View collections of this type" after trying deleting non-empty collection type #5522
Comments
I'm unable to replicate this ticket. @elrayle Is it possible some of the collection work that's already been done has fixed this? |
@MPLSFedResearchTZ Couple of questions:
|
I tested this on nurax-pg. On nurax-pg, I tried to create a new collection type and the problem was still there. |
@MPLSFedResearchTZ nurax-pg is ~55 commits behind Hyrax main. I'll see about getting that updated and deployed. |
I updated to latest Hyrax and this still fails on nurax-pg. The problem is the filtering. It filters by |
Remaining work listed in #3820 - Replace calls to ActiveFedora::Base.where (removes 7 refs to ActiveFedora) might be needed for this issue |
Let's try to reproduce this problem first. If reproducible, cross-check against in #3820 . |
I'm unable to reproduce this as described with nurax on the When clicking on And then However, when I then navigate to |
Here's a follow up after (finally) getting a koppie environment up and running. what i'm finding is that the collection type https://github.com/samvera/hyrax/blob/valkyrie-collectiontype-deletemodal-fix/app/models/hyrax/collection_type.rb#L117-L117 is returning nothing Whereas if I run the next AF query https://github.com/samvera/hyrax/blob/valkyrie-collectiontype-deletemodal-fix/app/models/hyrax/collection_type.rb#L118-L118 I will actually retrieve the 2 collections that I created and associated with the collection type I'm trying to delete. There are quite a few different dev/test environments in play here, so I'm admittedly not sure what I should expect to be working in koppie. But:
@no-reply if you have any tips i'd be interested. I didn't think koppie was running active fedora at all. |
@mcritchlow it seems like this comment #5522 (comment) correctly identifies the issue. the search builder used for the |
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 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 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 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.
@no-reply still unable to replicate the original issue, the modal notifying the user that there are multiple collections in a collection type is being bypassed/ignored as referenced by this 5522 comment |
@OkayKris i'm confused. i thought that this issue was fixed by the removal of |
@no-reply i assumed so as well, but i guess it's something completely different. my and @mcritchlow 's guesses were there is something going on with the relationship of collections and collection types or something is wrong with assigning a collection to a collection type |
@OkayKris that seems like a leap to me, and i'm wondering if we could start at trying to get a failing test. it may also help to say where you're observing the behavior you describe (on what branch/commit, in what environment). i wasn't seeing it yesterday on the now merged work. |
@no-reply sure working on latest commit on main in i feel that
but we don't get that modal, instead we're allowed to delete the collection type right away. aside from this test, i assume we're expecting this to execute https://github.com/samvera/hyrax/blob/main/app/models/hyrax/collection_type.rb#L156-L160 to give us a instead, we're taken straight to |
@OkayKris i'm still confused. is the behavior you're experiencing that the feature test fails or that, using some other setup, you're able to create a circumstance where it fails? it dosen't fail for me, and if the issue is the latter case, i think some more information is needed. what's different between how you're setting up your environment and how the feature spec does it? |
@no-reply apologies! no test is failing, which i feel is why i'm confused. this test is under the context
now, running |
This seems to be fixed on pg.nurax. As a regular user, I created a collection of the |
Descriptive summary
When clicking the button "View collections of this type" it should display all visible collections of this collection type.
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: