Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

fix(currentRefinements): give access to id and index from transformItems for deduplication #830

Merged
merged 2 commits into from
Jan 11, 2018

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Jan 10, 2018

Summary

The currentRefinemements widget (and connector) will give exactly the same data as the widgets which are present in the layout. As seen in #258, when there are two refinements with the same attribute, this will give those items the same key and render with warnings.

Result

  1. Give access to index and id (${attributeName}, query, ...) to transformItems so users can deduplicate themselves
  2. test how the deduplication can be done

@Haroenv Haroenv requested review from samouss and mthuret January 10, 2018 16:29
@algobot
Copy link
Contributor

algobot commented Jan 10, 2018

Deploy preview ready!

Built with commit 42e7f5b

https://deploy-preview-830--react-instantsearch.netlify.com

@Haroenv Haroenv changed the title fix(currentRefinements): deduplicate metadata entries fix(currentRefinements): give access to id and index from transformItems for deduplication Jan 10, 2018
…ems for deduplication

**Summary**

The currentRefinemements widget (and connector) will give exactly the same data as the widgets which are present in the layout. As seen in #258, when there are two refinements with the same attribute, this will give those items the same `key` and render with warnings.

**Result**

1. Give access to `index` and `id` (`${attributeName}`, `query`, ...) to `tranformItems` so users can deduplicate themselves
2. test how the deduplication can be done
@Haroenv Haroenv force-pushed the fix/current-refinements-dedupe branch from 92ebf1f to 63ba882 Compare January 10, 2018 17:40
Haroenv added a commit that referenced this pull request Jan 10, 2018
Copy link
Collaborator

@samouss samouss left a comment

Choose a reason for hiding this comment

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

LGTM

@samouss samouss merged commit 316b8f5 into master Jan 11, 2018
@samouss samouss deleted the fix/current-refinements-dedupe branch January 11, 2018 18:06
samouss added a commit that referenced this pull request Jan 24, 2018
<a name="4.4.2"></a>
## [4.4.2](v4.4.1...v4.4.2) (2018-01-24)

### Bug Fixes

* **currentRefinements:** give access to id and index from transformItems for deduplication ([#830](#830)) ([316b8f5](316b8f5))
* pass maxFacetHits to SFFV ([#863](#863)) ([de23a46](de23a46))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants