google / ground-platform

Ground hosted components: Web console, Cloud Functions, db config
http://groundplatform.org
Apache License 2.0
203 stars 83 forks source link

Prevent changes to survey from making data inaccessible #1701

Open gino-m opened 5 months ago

gino-m commented 5 months ago

We currently show BSWs (Big Scary Warnings) in most cases when the survey organizer is about to do something destructive. We should instead prevent data loss from occurring by flagging fields as deleted and prevent changes which would break data consistency. Several cases where data would be corrupt:

Destructive action New strategy Android app Survey editor (web) Main dashboard (web)
Delete job Flag jobs as "deleted" Hide deleted P0: Hide deleted
P2: Show deleted and allow un-delete
P0: Hide in job list
P2: Show as "deleted" in job list
Delete task Flag tasks as "deleted" " " Only show in submission with related data
Delete multiple choice option " " "
Change to incompatible task type Disallow change once published n/a n/a n/a
gino-m commented 5 months ago

@rfontanarosa @shobhitagarwal1612 Any edge cases I'm missing here?