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

Backoffice orders: Endless spinner and error 500 after skipping OC selector #6133

Closed
filipefurtad0 opened this issue Oct 5, 2020 · 2 comments · Fixed by #10712
Closed

Backoffice orders: Endless spinner and error 500 after skipping OC selector #6133

filipefurtad0 opened this issue Oct 5, 2020 · 2 comments · Fixed by #10712
Assignees
Labels
bug-s4 The bug is annoying, but doesn't prevent from using the platform. Not so many users are impacted.

Comments

@filipefurtad0
Copy link
Contributor

filipefurtad0 commented Oct 5, 2020

Description

Observed while testing #6039

Selecting a distributor and an order cycle from that distributor are the first steps to take, when placing backoffice orders.

If the selection of the order cycle is skipped and the user clicks "Next" then the "Add Product" field is broken: attempting to search and choose from a product list from, by inserting characters in the, shows an endless spinner, error 500 on the console and bugsnag is triggered.

See video below.

Expected Behavior

Selecting an OC should be mandatory

Actual Behaviour

The user is "allowed" to skip the choosing-OC step, which breaks the product search function: adding the first letters results in an endless spinner in the search field, error 500 in console and bugsnag error report:
https://app.bugsnag.com/yaycode/openfoodnetwork-uk/errors/5f33a1494da42b00178f81c4?event_id=5f5fa0c5005dfe3cef320000&i=sk&m=nw

Steps to Reproduce

Log in as admin

  1. Click "New Order"
  2. Select a distributor; don't select an OC
  3. Click "Next"
  4. Try to select a product, by inserting the relevant first three letters/characters
  5. See endless spinner/error 500/bugnsnag error

Animated Gif/Screenshot

error_not_selecting-OC

Workaround

Selecting the OC, just below the "Add a product" section solves this.

Severity

Proposing bug-s4: it's annoying, but you can use it

Your Environment

  • Version used: v3.2.8
  • Browser name and version: Firefox 81
  • Operating System and version (desktop or mobile): Ubuntu 20.04

Possible Fix

@filipefurtad0 filipefurtad0 added the bug-s4 The bug is annoying, but doesn't prevent from using the platform. Not so many users are impacted. label Oct 5, 2020
@jibees jibees self-assigned this Apr 17, 2023
@jibees
Copy link
Contributor

jibees commented Apr 17, 2023

Capture d’écran 2023-04-17 à 15 48 21

On this page, neither the distributor nor the order_cycle are required. Shouldn't we make them mandatory on that page?
I think it should solves the error we have on next step, but wondering if this is a good idea.

@RachL
Copy link
Contributor

RachL commented Apr 17, 2023

@jibees yes you can make both mandatory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s4 The bug is annoying, but doesn't prevent from using the platform. Not so many users are impacted.
Projects
None yet
3 participants