core: clean up routes left behind after last location was deleted

Bug #447960 reported by Janos Gyerik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AkibaMap
Confirmed
Medium
Unassigned

Bug Description

Location deleting has a flow. Each location has a location id, and a route id, and multiple locations that belong to the same route have the same route id. The issue is when deleting a location, the route id should only be deleted if there are no more locations associated with it. Right now we use a lazy method, and not delete routes at all. One way of implementing this is add a delete query to delete all routes where route id is not in distinct route ids of location table.

tags: added: mymapscan
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.