Improve and expose purge cloud photos API to user interface

Issue #1095 resolved
Ghislain Hachey created an issue

Currently we need to remember or bookmark the URL to purge safely images from the cloud. We need a user friendly way to execute this URL. Perhaps under menu item System Admin → Tools.

In addition, the current purge works well and safely removes cloud photos once downloaded. However, the cloud account can still fill up. The reason for this is how Google Cloud Service Account and syncing works with the Education Survey Tool. The exact situation when this happens needs to be better understood but it definitely seems like there are several copies of the photos in the could (merged files). We need to consider better cleaning tools.

Both Brian and Ghislain (and possibly Omega-R) will need to work on this one.

Comments (9)

  1. Ghislain Hachey reporter

    Directly related to this from #1098. We have a routine that purges already downloaded photos. There could still be a number of creeping photos in there that will never be removed with this routine. Orphaned photos for example. We will need a way to cleanup any photos that is no longer needed.

  2. Brian Lewis repo owner

    cf #1167, the implementation there deletes all photos that are associated to the surveys being deleted, so this goes some way to eliminating the possibility of “orphans”.

  3. Ghislain Hachey reporter

    Would this delete good photos in the case a merged survey would be deleted before the completed survey would be approved (loaded and photos loaded)? This would need a quick test. Not sure when merging surveys offline whether copied photos keep the same Google file ID and this are essentially the same cloud file. In that case, this could be dangerous. I can test this before we push to production.

  4. Ghislain Hachey reporter

    So I think the only necessary thing to do here really is just expose the feature for the user somewhere in the “Data Operation → Data Cleanup” a button in there or something like that.

  5. Ghislain Hachey reporter

    This has been worked to a reasonable level. Any further cleanups of cloud files can be done manually using external tools.

  6. Log in to comment