coopcycle-web icon indicating copy to clipboard operation
coopcycle-web copied to clipboard

Repurposing old restaurants creates naming error

Open Paul-Eraman-CoopCycle opened this issue 3 years ago • 4 comments

Describe the bug When taking an unused restaurant profile and using it for a new restaurant (changing all the information in the profile including its name), on the admin Dashboard the order shows up with the original restaurant name along with the new one. The old incorrect name is in bold, and the new correct one in normal text

To Reproduce Steps to reproduce the behavior:

  1. create restaurant with its own info
  2. wait an unknown amount of time
  3. replace name with new name
  4. make order
  5. see error on admin dashboard panel

Expected behavior The correct name shows up

Screenshots image image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]

Additional context Add any other context about the problem here.

Paul-Eraman-CoopCycle avatar Dec 19 '21 11:12 Paul-Eraman-CoopCycle

Same thing happens with stores?

AdrienSICKLO avatar Apr 13 '22 14:04 AdrienSICKLO

It's because what's in bold in the "organization name" (which is attached to the task), and what's in normal text is the "address name" (an alias for the address).

When a restaurant is updated, the address name is updated, but the organization name is not. The problem I see, if we update the organization name, is that all previous tasks will be updated.

alexsegura avatar Apr 26 '22 17:04 alexsegura

How about adding the possibility to Clone/Duplicate a restaurant? With this action you can reuse all the information of an existing restaurant and assign to the new one new properties such as: name, logo, address, etc. And you can keep the old restaurant (and the previous tasks will still refer to it) or you can delete it if it's no longer needed.

lucasferraro avatar May 06 '22 18:05 lucasferraro

So that was a separate issue request I was going to make whenever I got around to it. Multiple times it would have been very useful to be able to

  1. copy and paste a restaurant to avoid redoing all the configurations (effectively could have a "template" unconnected restaurant)
  2. Export menu products, options, etc. Recently would have saved a considerable amount of work for a coop that is opening with a restaurant that we are with, and it was also going to be helpful at some other point but I forget when it was...sorry 3

Paul-Eraman-CoopCycle avatar May 08 '22 17:05 Paul-Eraman-CoopCycle