Skip to content
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

Remove nth occurrence of an object from a collection/object. #102

Closed
elrayle opened this issue May 18, 2015 · 2 comments
Closed

Remove nth occurrence of an object from a collection/object. #102

elrayle opened this issue May 18, 2015 · 2 comments

Comments

@elrayle
Copy link
Contributor

elrayle commented May 18, 2015

Objects can repeat in a collection and in an object. The RemoveObjectFromCollection and RemoveObjectFromObject services need to support specifying which occurrence to remove. See notes in those services and see the following tests in remove_object_from_collection_spec and remove_object_from_object_spec.

xit 'should remove first occurrence'
xit 'should remove last occurrence'
xit 'should remove nth occurrence'

@elrayle
Copy link
Contributor Author

elrayle commented Jul 13, 2015

DEPENDENCY: samvera-deprecated/activefedora-aggregation#46 for more information.

Proposed syntax:

# delete 2nd occurrence of do_child1
do_parent.members.delete( do_child1, 2 )   # => do_child1

@mjgiarlo mjgiarlo removed this from the summer-2015 milestone Jul 13, 2015
@jrgriffiniii
Copy link
Contributor

Closing this due to the age of the issue (I am sorry, please let me know should this be reopened).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants