Applied-GeoSolutions / gips

Geospatial Image Processing System
GNU General Public License v3.0
17 stars 5 forks source link

DH - support for D in CRUD operations #354

Open ra-tolson opened 7 years ago

ra-tolson commented 7 years ago

The datahandler will sooner or later need to support deletion of assets and products. Right now it can't be done conveniently at all; even manually deleting rows with SQL doesn't work due to the foreign key constraints in the status change tables.

Usually in systems like this a status field can have a value that represents "I was here but now I'm not," maybe 'missing', or 'removed'. If gips ever removes corrupted files on its own accord, maybe 'quarantined'.

For now, start by implementing 'removed', and develop a way for admins to remove it via API call.

This depends on #353. #352 would be helpful too.

ra-tolson commented 7 years ago

This would also be useful for development as a part of the edit-reset-run cycle; sometimes deleting a job and starting over is much more convenient than, for instance, incrementing the date.