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

Consistently use FacetField#field when retrieving aggregation values #1449

Merged
merged 2 commits into from
Jul 28, 2016

Conversation

cbeer
Copy link
Member

@cbeer cbeer commented Jul 28, 2016

@coveralls
Copy link

coveralls commented Jul 28, 2016

Coverage Status

Coverage decreased (-0.01%) to 77.029% when pulling cd56723 on facet-fields into c31a190 on master.

@jcoyne
Copy link
Member

jcoyne commented Jul 28, 2016

Please add a test for facet_by_field_name

return blacklight_config.facet_fields[field] if blacklight_config.facet_fields[field] && blacklight_config.facet_fields[field].field == field

# Find the facet field configuration for the solr field, or provide a default.
blacklight_config.facet_fields.find { |_, v| v.field.to_s == field.to_s } ||

Choose a reason for hiding this comment

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

Prefer detect over find.

@coveralls
Copy link

coveralls commented Jul 28, 2016

Coverage Status

Coverage increased (+0.02%) to 77.06% when pulling b8e2875 on facet-fields into c31a190 on master.

@coveralls
Copy link

coveralls commented Jul 28, 2016

Coverage Status

Coverage increased (+0.02%) to 77.06% when pulling 9c6fbc1 on facet-fields into c31a190 on master.

@jcoyne jcoyne merged commit 2d7ec3c into master Jul 28, 2016
@jcoyne jcoyne deleted the facet-fields branch July 28, 2016 18:37
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.

None yet

4 participants