splashblot / dronedb

Location Intelligence & Data Visualization tool
http://carto.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Delete raster doesn't delete overviews #92

Closed apercas closed 6 years ago

apercas commented 6 years ago

Steps to Reproduce

  1. Go to the dataset list, delete a raster dataset

Current Result

Visually everything is fine but under the hood the overviews of the raster are still there. It's not really important for the user because the overview layers don't add up for the quota limit but we should delete them anyway. It could generate a conflict if we re-upload the same raster because when creating the new overview its table name won't be available.

Expected result

We should clean all the related tables to the raster.

apercas commented 6 years ago

Done. https://github.com/splashblot/dronedb/blob/tileo-feature/raster/script/clean_orphan_overviews.rb