developmentseed / developmentseed/pearl-backend

Delete mosaics

Open
#75 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
58
Forks
7
PR merge metrics
No merged PRs in 30d

Description

With the introduction of `POST /mosaic` it can be expected that some created mosaics might not be used. For example, the user might change their mind on the mosaic dates before running a prediction, leaving an unused mosaic behind.

I believe we need a `DELETE /mosaic/:id` endpoint that only admins can call and that returns an error if there is any timeframes using that mosaic.

Another useful endpoint would be something like `POST /mosaic/purge` that delete all unused mosaics.

This is not blocking any feature now; it is just a suggested enhancement.

@geohacker @ingalls @LanesGood please let me know if you have thoughts.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.