bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

UIs: delete uploaded Minio file if filing is cancelled #14795

Open severinbeauvais opened 1 year ago

severinbeauvais commented 1 year ago

(There may already be a BE feature or ticket to delete an uploaded file when a draft filing is deleted.)

THIS is a UI ticket to delete an uploaded file if the current filing is cancelled. This will need to be fixed anywhere a current filing can be cancelled -- at the moment this is only the Court Order filing in Filings UI.

Example:

  1. login as staff
  2. go to a business' dashboard
  3. start a Court Order filing
  4. select a valid file
  5. click Cancel

In this example, the file you selected was uploaded to Minio and then orphaned (no link to it was saved in LEAR). We should delete it from Minio when the filing is cancelled.

jdyck-fw commented 1 year ago

If you select a file and then change the file, that's another scenario where we end up with an orphaned file too.