google / google/ground-platform

[Project] Prevent changes to survey from making data inaccessible

Open
#1,701 2 comments 0 reactions 1 assignee Claimed by @rfontanarosa View on GitHub
type: fr web
Dominant language
TypeScript
Stars
249
Forks
112
Avg merge
10h 7m
Merged PRs (30d)
4

Description

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 |
| Edit question / task instructions | TBD | | | |
| Edit task | TBD | | | |
| Edit LOI location | TBD | | | |
| Edit multiple choice options | TBD | | | |

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.