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

Consider Removing #contains= #140

Closed
tpendragon opened this issue Jul 8, 2015 · 8 comments
Closed

Consider Removing #contains= #140

tpendragon opened this issue Jul 8, 2015 · 8 comments
Labels

Comments

@tpendragon
Copy link
Contributor

https://github.com/projecthydra-labs/hydra-pcdm/blob/master/lib/hydra/pcdm/models/concerns/object_behavior.rb#L83-L88

@tpendragon tpendragon added the pcdm label Jul 8, 2015
@grosscol
Copy link
Member

Should object= also be removed? Is this in favor of using a service object to add files to the object?

@elrayle
Copy link
Contributor

elrayle commented Jul 13, 2015

RE: contains=

It appears that this method is never used or tested. Some exploration is required to confirm this. If it is true, then we should be able to safely remove the contains= method.

@escowles
Copy link
Contributor

Should we just deprecate contains= along with the service objects in samvera/hydra-pcdm#144, samvera/hydra-pcdm#158, and #161?

@tpendragon
Copy link
Contributor Author

@escowles @elrayle Do we have a status here?

@escowles
Copy link
Contributor

I don't have anything new here. But I agree with @elrayle: it doens't look like this is being used or tested. We're overriding it in Hydra::Works::GenericWorkBehavior to throw an error (and that's tested at least). I don't see any usage of it in hydra-pcdm, hydra-works, or curation_concerns.

So I think we should remove it -- whether that's just removing it, deprecating it, etc.

@mjgiarlo
Copy link
Member

👍

@mjgiarlo
Copy link
Member

Closed by PR.

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

No branches or pull requests

5 participants