-
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
using ordered_members puts parent-child relationship in both directions #361
Comments
|
Implementation path of
As written, Implementation path of
I do expect this method to use the |
Ran same relationship checks when relationship was setup using
|
Relationship Expectations
Expected method behaviors:
Summary of Actual method behaviors:
As written, the methods are behaving as expected. But I don't believe this is what was originally intended. |
Descriptive summary
Adding a child work to a parent work using ordered members causes the child to respond with parent works using both in_work_ids and member_of_work_ids, resulting in the parent work being listed twice.
Rationale
In the list of parent_works, the parents should not repeat.
Expected behavior
Actual behavior
See PR #360 which includes a test that fails because of this bug.
Steps to reproduce the behavior
Use test provided in PR #360 to debug.
Expect
parent_works
to returnparent_work1
andparent_work2
, but you get the two parent works in the list twice.Related Work
PR samvera/hyrax#3697 - Orders members when converting to AF objects
The text was updated successfully, but these errors were encountered: