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

Deleting an object should remove the SolrDocument of the proxy #72

Open
jcoyne opened this issue Sep 11, 2015 · 0 comments
Open

Deleting an object should remove the SolrDocument of the proxy #72

jcoyne opened this issue Sep 11, 2015 · 0 comments
Labels

Comments

@jcoyne
Copy link
Contributor

jcoyne commented Sep 11, 2015

https://github.com/projecthydra-labs/activefedora-aggregation/blob/master/lib/active_fedora/aggregation/association.rb#L24

If the target object is deleted, I believe that Fedora removes the proxy object automatically. But ActiveFedora doesn't know this happened, so the proxies solr document was never removed. Thus members_ids.size can return the old count (say 5) instead of the accurate count that members.size would return (4).

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

1 participant