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

count collection items with the SolrService directly #4314

Merged
merged 1 commit into from
May 18, 2020

Conversation

no-reply
Copy link
Contributor

remove a hard dependency on ActiveFedora by querying solr directly instead of
using the Relation#count interface.

there are other methods here using similar queries, but working out the
relationship with Blacklight::AccessControls::Enforcement is going to take
some more work. for one thing, we have local Enforcement additions that are
being bypassed (inappropriately?) by the existing queries.

@samvera/hyrax-code-reviewers

remove a hard dependency on ActiveFedora by querying solr directly instead of
using the `Relation#count` interface.

there are other methods here using similar queries, but working out the
relationship with `Blacklight::AccessControls::Enforcement` is going to take
some more work. for one thing, we have local `Enforcement` additions that are
being bypassed (inappropriately?) by the existing queries.
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cjcolvar
Copy link
Member

Right, it looks like those other ones are using accessible_by which I think are only applying the basic gated discovery and not the full search builder context.

@no-reply
Copy link
Contributor Author

Right, it looks like those other ones are using accessible_by which I think are only applying the basic gated discovery and not the full search builder context.

it sounds like you're implying that's appropriate? if so, i'm not following why. could you help me with whatever i'm overlooking?

@no-reply no-reply merged commit e3efa1e into master May 18, 2020
@no-reply no-reply deleted the collection-item-count branch May 18, 2020 16:25
@cjcolvar
Copy link
Member

Sorry, no, I wasn't trying to say that I thought it appropriate. I'm happy to help as possible.

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

Successfully merging this pull request may close these issues.

2 participants