Closed antonkast-google closed 4 years ago
Merging #463 into main will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## main #463 +/- ##
=======================================
Coverage 75.72% 75.72%
=======================================
Files 22 22
Lines 2010 2010
Branches 449 449
=======================================
Hits 1522 1522
Misses 347 347
Partials 141 141
Make it possible to recover from unintended deletions.
A new table, "revisions" logs datasets with timestamps.
A new JS behavior logs a checkpoint before taking action on any "remove" button.
A new endpoint, "/checkpoint" appends to the revisions log.
A new web page, "/revisions" shows this log for a given dataset, each with a timestamp linking to the historical pbtxt.
It's not exactly an undo feature, but it makes recovery possible from some kinds of mistake. The procedure after a loss is: go to /revisions; pick a log entry; download it; and upload it again.
This could be integrated into the editor with little effort by adding an editor affordance showing the revision list and linking from there to a Flask function that reverts the dataset and reloads the page.