-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
search
endpoint returns duplicated results for translated products
#2197
Comments
We are running Vendure 2.0.5 and are also experiencing issues with duplicated products when using Sometimes, one of the products on the next page is the same as the products on the previous page - i.e. the same product is fetched twice but on different pages. This seems to be an issue when the product name is identical or the price is identical. We tried to sort by name, then price or price, then name, but to no avail. The instance is running the DefaultSearchPlugin, if that makes any difference. When do you think it's possible to have a fix for this bug? Environment
|
@WeAreHaus I just put this on the backlog to take a look at for the next patch release. If you are able to set up a minimal reproduction repo, it would make it about 10x more likely that I can get a fix for that patch :) |
Great, thank you! We managed to solve it by loading all products into the browser and do the pagination there instead. I'm a little pressed for time at the moment but will try to create a reproduction repo soon. |
I have created a reproduction repo for this issue here: https://github.com/WeAreHaus/reproduction-vendure-issue-2197 I haven't been able to reproduce the duplicated first and last product when paginating the results using the Vendure demo data. Unfortunately I cannot share the actual data we use but I will continue to look into that part, and maybe it should also be a different issue. Let me know if you need any more information. Thank you in advance! |
@busyfingers thank you for the reproduction! Looking into this now... |
I believe this is the same issue that is addressed in this PR: |
Describe the bug
When I translate an existing product to another language the
search
endpoint (shop-api
as well asadmin-api
) returns the translated product variants in both languages in theitems
field. This only happens when thelanguageCode
param is set to another language than the default language. This behavior is also visible in the Admin UI when theGroup by product
switch is deactivated in the product list.To Reproduce
Steps to reproduce the behavior:
Expected behavior
You should only see the product variants in the selected language
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: