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 blacklist in products list preview and sorting #1430

Merged
merged 2 commits into from
Jul 8, 2019
Merged

fix blacklist in products list preview and sorting #1430

merged 2 commits into from
Jul 8, 2019

Conversation

androshchuk
Copy link
Contributor

No description provided.

@romainruaud
Copy link
Collaborator

It was important for me to add this because it will ensure an exact preview, including the optimizers associated to the category, if any.

But yes, I made a mistake and this is also applying the blacklist, which should not be the case.

Instead of removing the line, I'd go for skipping these methods if we are on the admin store :

https://github.com/Smile-SA/elasticsuite/blob/2.8.x/src/module-elasticsuite-catalog/Model/Product/Search/Request/Container/Filter/SearchBlacklist.php#L55

https://github.com/Smile-SA/elasticsuite/blob/2.8.x/src/module-elasticsuite-virtual-category/Model/Product/Search/Request/Container/Filter/CategoryBlacklist.php#L56

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