Open rouletout opened 2 years ago
@rouletout
If you edit the topo on the website, the route does show twice there, too.
@scd can you look into that briefly?
Note to self, english version of page:
Hmm, there is. a dup route in the data. I tried deleting and putting back using our UI and it puts back the dup field. I suspect that somehow the system got the dup field (eg a merge) and the UI assumes that when deleting there is only one route. I think the route link is soft deleted.
This needs further investigation
For some reason we have two active set of points drawn on one route. The system only ever assumes one. Next I have to work out what to do about it.
mysql> select * from TopoRoutePoints where TopoRoute=2656170321\G
*************************** 1. row ***************************
CreateDate: 1564980778
RecordOrder: 15649807780000
ID: 2656175184
TopoRoute: 2656170321
ActiveFlag: 1
SVGPath: NULL
CreatedBy: 2649603096
ReviewedFlag: 0
Points: 6.3 299.8,2.1 262.4
UpdatedBy: 2649603120
RecordStatus: 1
LastUpdated: NULL
*************************** 2. row ***************************
CreateDate: 1564980779
RecordOrder: 15649807790000
ID: 2656175232
TopoRoute: 2656170321
ActiveFlag: 1
SVGPath: NULL
CreatedBy: 2649603096
ReviewedFlag: 0
Points: 6.3 299.8,2.1 262.4
UpdatedBy: 2649603120
RecordStatus: 1
LastUpdated: NULL
2 rows in set (0.00 sec)
I have made a fix to the topo route linking and unlinking so that it deals with historical inactive lines and only pick the latest when relinking.
After the next release unlink the route and relink the route and the topo line should come back without duplicates.
Fixed as we see, please check.
What happened?
For example here: https://www.thecrag.com/de/klettern/mexico/area/2649717507 the app shows the first route twice but the web shows it correctly.
Ideally also provide screenshots:
What you expected:
Correct display of routes.