-
Notifications
You must be signed in to change notification settings - Fork 530
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
feat(helper): persistHierarchicalRootCount: true #6478
Conversation
packages/algoliasearch-helper/test/spec/hierarchical-facets/sort-by.js
Outdated
Show resolved
Hide resolved
packages/algoliasearch-helper/test/spec/hierarchical-facets/sort-by.js
Outdated
Show resolved
Hide resolved
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 5721ac8:
|
59db4c2
to
6876b38
Compare
BREAKING CHANGE: the default behaviour of the helper is now persistHierarchicalRootCount: true
It behaves as persistHierarchicalRootCount: true
6876b38
to
5721ac8
Compare
@@ -75,6 +78,19 @@ test('hierarchical facets: using sortBy', function (done) { | |||
'categories.lvl0': { beers: 5 }, | |||
}, | |||
}, | |||
// other levels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test was wrong and missing the intermediary facet response
by the way this means that #6445 (comment) is now fixed for hierarchical in all cases, not just when the flag is set (because the default has changed) |
* feat(helper): persistHierarchicalRootCount: true BREAKING CHANGE: the default behaviour of the helper is now persistHierarchicalRootCount: true * fix(options): remove persistHierarchicalRootCount option It behaves as persistHierarchicalRootCount: true
* feat(helper): persistHierarchicalRootCount: true BREAKING CHANGE: the default behaviour of the helper is now persistHierarchicalRootCount: true * fix(options): remove persistHierarchicalRootCount option It behaves as persistHierarchicalRootCount: true
BREAKING CHANGE: the option persistHierarchicalRootCount no longer exists. The default behaviour is now the same as used to be with persistHierarchicalRootCount: true
FX-3185