akvo / akvo-flow

A data collection and monitoring tool that works anywhere.
http://akvo.org/products/akvoflow/
GNU Affero General Public License v3.0
65 stars 31 forks source link

Delete form data in bulk #3774

Closed janagombitova closed 2 years ago

janagombitova commented 3 years ago

The original issue here: https://app.zenhub.com/workspaces/akvo-k2-55d493e09e846e9104ab9478/issues/akvo/akvo-flow/3597

Context

In Flow data deletion is relatively limited. You can delete one submission at a time, so you cannot delete all data to a survey form in one go. You have to go through all the individual submissions. In some cases partners contacted us with a list of survey form they wanted the data to be deleted.

Sometimes partners want to remove old data from their instance or have done a test round of the survey form, want to delete all the submission so they can start the actual data collection.

We never invested more in deletion because of the risk of someone deleting an entire dataset by mistake. Some products handle such cases - where you cannot bring the thing you delete back by asking the user for a double confirmation where you need to type something in. Plus stating this cannot be undone.

Deleting data in bulk should fall under the user permissions to Delete data. If one is not allowed to delete one submission, she should not be allowed to delete all either.

janagombitova commented 3 years ago

@Kiarii can you take a look at this one and how it can be handled in the UI of Flow's Inspect data tab (the only place where users can delete data). Thank you

Kiarii commented 3 years ago

I think adding an option to select all submissions and a respective action "delete" might be one approach; essentially sth like this, perhaps @muloem you have some input towards this? Some housekeeping with the layout and terminology might be in order as well 🤺

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.