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

fix(highlight): highlight should work even if the attribute is missing #1791

Merged
merged 1 commit into from
Jan 3, 2017

Conversation

bobylito
Copy link
Contributor

@bobylito bobylito commented Jan 2, 2017

What project are you opening a pull request for?

  • react-instantsearch (use v2 base)

Summary

Since algolia does not enforce a schema on the records, it is possible
that an highlighted value is only available on some of them. This means
that react-instantsearch should not throw when highlighting an attribute
that is missing from the hit.

fix #1790

@algobot
Copy link
Contributor

algobot commented Jan 2, 2017

By analyzing the blame information on this pull request, we identified @vvo to be a potential reviewer

Since algolia does not enforce a schema on the records, it is possible
that an highlighted value is only available on some of them. This means
that react-instantsearch should not throw when highlighting an attribute
that is missing from the hit.

fix #1790
@bobylito bobylito force-pushed the fix/highlight-missing-attribute branch from 3909f1e to c12f17c Compare January 2, 2017 15:59
Copy link
Contributor

@mthuret mthuret left a comment

Choose a reason for hiding this comment

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

LGTM

@mthuret mthuret merged commit 5b79b15 into v2 Jan 3, 2017
@bobylito bobylito deleted the fix/highlight-missing-attribute branch January 3, 2017 13:14
vvo pushed a commit that referenced this pull request Jan 4, 2017
<a name="2.1.0"></a>
# [2.1.0](v2.0.1...v2.1.0) (2017-01-04)

### Bug Fixes

* **createInstantSearchManager:** drop outdated response (#1765) ([76c5312](76c5312))
* **highlight:** highlight should work even if the attribute is missing (#1791) ([5b79b15](5b79b15)), closes [#1790](#1790)
* **InfiniteHits:** better classname to loadmore btn (#1789) ([ad2ded3](ad2ded3))
* **starRatings:** click on selected range doesn't unselect it (#1766) ([beacc72](beacc72))
* **website:** broken demo links (#1802) ([0abe2f5](0abe2f5))
* **widgets:** add 300px width for the default SearchBox (#1803) ([bf5d791](bf5d791))

### Features

* **InfiniteHits:** Add class to load more button (#1787) ([416febd](416febd))
* **RefinementList, connectRefinementList:** allow to search for facet values ([e086a81](e086a81))
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.

3 participants