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(refinementList): cap maxFacetHits to 100 for SFFV #4523

Merged
merged 2 commits into from
Sep 25, 2020

Conversation

francoischalifour
Copy link
Member

We cap the maxFacetHits value to 100 because the Algolia API doesn't support a greater number.

An Enterprise customer has faced this issue in Vue InstantSearch and it's challenging to fix user-land.

Closes #4521.

We cap the `maxFacetHits` value to 100 because the Algolia API doesn't support a greater number.

See https://www.algolia.com/doc/api-reference/api-parameters/maxFacetHits/

Closes #4521.
@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 24, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8c5a7a4:

Sandbox Source
InstantSearch.js Configuration

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

looks good!

@eunjae-lee
Copy link
Contributor

Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

looks good as long as bundlesize conf gets updated

@francoischalifour
Copy link
Member Author

@eunjae-lee I see that the dev bundlesize threshold was decreased. We originally put a high arbitrary number because it's counter productive to track the dev bundle size. It leads us to going for poorer DX.

I increased it back to a higher number than needed.

@francoischalifour francoischalifour changed the title fix(refinementList): cap maxFacetHits to 100 fix(refinementList): cap maxFacetHits to 100 for SFFV Sep 25, 2020
@francoischalifour francoischalifour merged commit baf1f02 into master Sep 25, 2020
@francoischalifour francoischalifour deleted the fix/refinementList-sffv-cap-100 branch September 25, 2020 07:55
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.

Searching for facet can throw an error when a refinement list is expanded with more than 100 items.
3 participants