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

feat(helper): persistHierarchicalRootCount: true #6478

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Dec 18, 2024

BREAKING CHANGE: the option persistHierarchicalRootCount no longer exists. The default behaviour is now the same as used to be with persistHierarchicalRootCount: true

FX-3185

Copy link

codesandbox-ci bot commented Dec 18, 2024

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:

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration

@Haroenv Haroenv force-pushed the feat/change-persist-hier-root-count branch from 59db4c2 to 6876b38 Compare December 18, 2024 14:28
BREAKING CHANGE: the default behaviour of the helper is now persistHierarchicalRootCount: true
It behaves as persistHierarchicalRootCount: true
@Haroenv Haroenv force-pushed the feat/change-persist-hier-root-count branch from 6876b38 to 5721ac8 Compare December 18, 2024 14:31
@@ -75,6 +78,19 @@ test('hierarchical facets: using sortBy', function (done) {
'categories.lvl0': { beers: 5 },
},
},
// other levels
Copy link
Contributor Author

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

@Haroenv Haroenv marked this pull request as ready for review December 19, 2024 08:38
@Haroenv Haroenv requested review from dhayab and sarahdayan December 19, 2024 08:38
@Haroenv
Copy link
Contributor Author

Haroenv commented Dec 19, 2024

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)

@Haroenv Haroenv added this to the instantsearch.js v5 milestone Dec 20, 2024
@Haroenv Haroenv merged commit d8449c9 into next Dec 20, 2024
10 checks passed
@Haroenv Haroenv deleted the feat/change-persist-hier-root-count branch December 20, 2024 09:08
Haroenv added a commit that referenced this pull request Dec 26, 2024
* 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
Haroenv added a commit that referenced this pull request Jan 9, 2025
* 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
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.

2 participants