uic-utah / uic-inventory

a public web application to manage the creation, permitting, and payment for underground injection control sites in Utah
1 stars 0 forks source link

Delete User Uploaded Files #206

Open nathankota opened 2 years ago

nathankota commented 2 years ago

In addition to the scenarios already implemented in #84, user-uploaded well detail files should also be deleted:

steveoh commented 2 years ago

Draft Inventories: If Draft is not submitted within 90 days (i.e. status does not change to Submitted)

Will we show any UI that drafts are only stored for 90 days or is this only for documents?

nathankota commented 2 years ago

Draft Inventories: If Draft is not submitted within 90 days (i.e. status does not change to Submitted)

Will we show any UI that drafts are only stored for 90 days or is this only for documents?

This is only for documents. Should we put some text in the UI, or when they drag or pick a file?

image

nathankota commented 1 year ago

@rsparker-utah We now know that the retention of uploaded files and the app data is 5 years for approved inventories. However, for draft inventories, do you want to delete uploaded files and the app data after 90 days? If yes, then also delete Site data if there is only a draft inventory associated with the site?

rsparker-utah commented 1 year ago

@nathankota Quick updating regarding the retention schedule for UIC program files, there is a caveat for what the retention schedule refers to as "computer data files". Retention for these UIC program computer data files is "retain in office until administrative need ends and then delete". Based on this, I think information within the app would correspond to this "retain in office until administrative need ends and then delete" clause for computer data files from the retention schedule.

In regards to handling of draft inventories, Mark and I discussed this and agreed that it makes sense to delete draft inventories and their associated app data that have not been submitted after 90 days. We also agreed that site data should be deleted after the 90 days as well if there is only draft inventory associated with the site. In summary, after 90 days delete the following:

In addition, can we include some text notifying the user that draft inventories (including their associated app data) will be automatically deleted if not submitted within 90 days? Something along the lines of:

"Notice: Any draft well inventories and/or sites with only draft well inventories will be automatically removed from the application if not submitted within 90 days of creation."

I'm open to suggestions on how and where to display this text, but here is an example of one possibility: image

nathankota commented 1 year ago

A desired feature, but not for initial production release.