-
Notifications
You must be signed in to change notification settings - Fork 14
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
fileset #in_works method always returns [] #301
Comments
calling |
Is .ordered_members the preferred method that should be encouraged over .members? There are inconsistencies in the functioning of the in_* methods. Examples assume
Why wouldn't the in_works and in_collections methods return all containing works and collections, respectively, whether the contained item was added with .members or .orderedmembers? I would expect...
|
I would be in favor of deprecating the |
Not for collections. Ordering's moderately expensive, so when it's not needed it's important to have that option. #in_works and #in_collections should probably work off members instead of ordered_members. |
It makes sense for #in_works and #in_collections to use members instead of ordered_members. When going from the contained to the containing items, order is not important. |
Description
When a fileset is in a work, calling method #in_works does not return the work.
Expected Results
in_works should return the work in an array
Actual Results
in_works returns an empty array
To reproduce
NOTE: If you create a collection and add w1 as a member, w1.in_collections will return an empty array until the collection is saved. In the code to reproduce, w1 is saved after putting fs1 into its member list.
The text was updated successfully, but these errors were encountered: