theCrag / website

theCrag.com: Add your voice and help guide the development of the world's largest collaborative rock climbing & bouldering platform
https://www.thecrag.com/
109 stars 8 forks source link

Route order not preserved in bulk edit #4081

Closed killakalle closed 1 year ago

killakalle commented 2 years ago

The screenshot shows...

left: wrong order of routes during bulk edit right: correct order of routes in route list

image

Sector link: https://www.thecrag.com/es/escalar/spain/jerica/area/164284014

I would consider this issue critical, as you easily edit the wrong route if

This issue was first mentioned in https://github.com/theCrag/website/issues/3915 though is unrelated according to Simon.

scd commented 1 year ago

I am looking into this, but it seems right. So I did some further investigation by auditing the code and there is an edge case for about 10 minutes after a re-order where the data fields have not been fully synced. For that period of time the order can be strange. It is impossible to say if this was the problem, but highly likely.

I have hot fixed this so please keep an eye out for it happening again.