Openfoodnetwork: Switching between shops does not work correctly

Created on 25 May 2020  路  1Comment  路  Source: openfoodfoundation/openfoodnetwork

Description


Switching between different shops does not work as expected: while logged in and shopping in shop A, clicking Shops in the main menu and choosing shop B from the shop list will first display again the shopfront of shop A (were customer was initially)... The address bar shows the address of shop B. See gif below.

Expected Behavior

Switching shops by clicking on the main menu should work, and lead you to the shopfront you clicked on.

Actual Behaviour

Clicking on another shop first showed the shopfront of the previous shop.

Steps to Reproduce




Not always observable if in guest mode - Only occurs if logged in.

  1. Log in (admin, customer...)
  2. Click /shops in main menu
  3. Choose an open shop A
  4. Click again in /shops in main menu
  5. Choose another shop (other than the one you are), shop B
  6. You should observe shop A again, while the address bar clearly shows the address of shop B...

Animated Gif/Screenshot


switching_between_shops

Workaround

Refreshing the page solves this.

Severity

While it is not always observable (only while logged in) and it does have a workaround (refreshing page) this is quite a critical feature - switching shops... it's a release blocker - S2.

Your Environment

  • Version used: Release draft 2.9.10
  • Browser name and version: Firefox 75
  • Operating System and version (desktop or mobile): Desktop
bug-s2

Most helpful comment

I just confirmed this is caused by #5440
this commit: https://github.com/openfoodfoundation/openfoodnetwork/pull/5440/commits/a438317d69c5787a94b8f745b01dc8b8c19cf3a7

Refactoring legacy code...
Look at the code review chat for this commit:
image

I can work on this tomorrow morning.

>All comments

I just confirmed this is caused by #5440
this commit: https://github.com/openfoodfoundation/openfoodnetwork/pull/5440/commits/a438317d69c5787a94b8f745b01dc8b8c19cf3a7

Refactoring legacy code...
Look at the code review chat for this commit:
image

I can work on this tomorrow morning.

Was this page helpful?
0 / 5 - 0 ratings