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

OFN BE : loading of the page "Products" without result #6608

Closed
SophieDuponcheel opened this issue Jan 5, 2021 · 19 comments
Closed

OFN BE : loading of the page "Products" without result #6608

SophieDuponcheel opened this issue Jan 5, 2021 · 19 comments
Assignees
Labels
blocked bug-s2 The bug is affecting any of the non-critical features described in S1 and there is no workaround. prod-test

Comments

@SophieDuponcheel
Copy link

SophieDuponcheel commented Jan 5, 2021

Description

When I go to consult the products in a entreprise's product catalog (example: coprosain s.c) or even in the product tab, the page is loading but the products never appear. I can see the first 15 products, then to see the next 50 on the load page but nothing appears.

This has no impact on the online shop but the producers don't know how to modify their product anymore, which is really problematic.

Expected Behavior

see all the products and be able to modify them

Actual Behaviour

the page is loading but the products never appear.

Steps to Reproduce

  1. I go to the dashboard of the coprosain s.c. entreprise, I want to change a product. I go to the "product" tab. I can see the first 15 products, then to see the next 50 on the load page but nothing appears.

Animated Gif/Screenshot

image

Error 422 on https://openfoodnetwork.be/api/products/bulk_products.json?import_date=&page=1&per_page=15&q[name_cont]=&q[primary_taxon_id_eq]=&q[s]=&q[supplier_id_eq]=116

Workaround

Severity

bug-s2

Your Environment

i'm using a PC, with mozilla firefox
  • Version used:
  • Browser name and version:
  • Operating System and version (desktop or mobile):

Possible Fix

@RachL
Copy link
Contributor

RachL commented Jan 5, 2021

hello @SophieDuponcheel that you very much for opening this issue! Where are those products sold? only on https://openfoodnetwork.be/coprosain-sc/shop#/shop ?

@SophieDuponcheel
Copy link
Author

No, they are also sold on Coquelicoop shop. In fact, they are the ones who warned me of the problem. When I try with another company, the problem doesn't exist. It's only the coprosain products that are the problem (for the moment).

@RachL RachL added the bug-s2 The bug is affecting any of the non-critical features described in S1 and there is no workaround. label Jan 6, 2021
@Matt-Yorkley Matt-Yorkley self-assigned this Jan 6, 2021
@Matt-Yorkley
Copy link
Contributor

Okay, this looks like another occurrence of the variant unit_value / NaN issue...

@Matt-Yorkley
Copy link
Contributor

Interestingly I can clearly see there's an error occurring here, but it doesn't show up in Bugsnag, and I can reproduce it. 🤔

@Matt-Yorkley
Copy link
Contributor

Okay, this is not the same bug as the other variant unit issues...

@Matt-Yorkley
Copy link
Contributor

Matt-Yorkley commented Jan 6, 2021

The serializer is throwing this error: exception: "868: NaN not allowed in JSON", but none of the fields on that object (Variant 868) or related objects are invalid or NaN...?

@Matt-Yorkley
Copy link
Contributor

When I try to write specs for this in master, I can't replicate the issue. I think there may have been a bug in JSON parsing of NaN values, but it seems like it's fixed with Ruby 2.4.4?

@Matt-Yorkley
Copy link
Contributor

Let's check this again after the next release is deployed...

@RachL
Copy link
Contributor

RachL commented Jan 6, 2021

Great, thanks @Matt-Yorkley !

@SophieDuponcheel
Copy link
Author

@RachL @Matt-Yorkley it's not solved if I understand correctly? The person who manages "coquelicoop" with "coprosain" products gets impatient, it blocks them too much. I don't know what to tell her. Sorry to rush you.

@Matt-Yorkley
Copy link
Contributor

Matt-Yorkley commented Jan 7, 2021

@SophieDuponcheel I think it will be solved when the next release is deployed. I'll do some double-checking now to make sure 👍

@SophieDuponcheel
Copy link
Author

it means the next tuesday? could you explain me why? so that I'm explaining to the users of "coprosain" products. For them it will surely be a too late answer but well ... thank you to help us !!

@RachL
Copy link
Contributor

RachL commented Jan 7, 2021

@SophieDuponcheel we only deploy on Tuesdays, we don't have the capacity to do more frequent releases at the moment. It involves time on the dev team to prepare and deploy and time on testing that every thing is ok. So currently we cannot do it more than once a week.

@Matt-Yorkley
Copy link
Contributor

@SophieDuponcheel I've had another look, and I think it's fixed now in production (live).

@SophieDuponcheel
Copy link
Author

but I have bad news, the problem persists with other producers. I just had a complaint for the shop "du pain & des roses" with the producer "La ferme de la tortue bio".

@SophieDuponcheel
Copy link
Author

Uploading image.png…

@SophieDuponcheel
Copy link
Author

the user of "du Pain et des Roses" sent me this URL to explain the bug : https://www.openfoodnetwork.be/api/products/bulk_products.json?import_date=&page=9&per_page=15&q%5Bname_cont%5D=&q%5Bprimary_taxon_id_eq%5D=&q%5Bs%5D=&q%5Bsupplier_id_eq%5D=

and this link : https://developer.cdn.mozilla.net/fr/docs/Web/HTTP/Status/422

@Matt-Yorkley
Copy link
Contributor

Matt-Yorkley commented Jan 7, 2021

@SophieDuponcheel Can you reply to them and ask them to set the weight on this product at: https://openfoodnetwork.be/admin/products/chicons-6/variants/10915/edit

I'd have done it myself, but it's not clear what the weight should be.

@Matt-Yorkley
Copy link
Contributor

I'll close this for now, it should be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug-s2 The bug is affecting any of the non-critical features described in S1 and there is no workaround. prod-test
Projects
None yet
Development

No branches or pull requests

3 participants