Redoing Undo?
Richard Newman
rnewman at mozilla.com
Wed Oct 26 17:31:52 UTC 2016
To speak to part of this:
> To head that off, I’d like to fix rollbacks in general. So here I am,
> asking for what other people want from it.
>
"Undo" is a really tricky problem if the data makes it to the database.
You can't roll back the transaction (it's committed).
You can't just write the old state directly to the DB — as soon as the
change hits the database, Sync is going to upload those changes, altering
metadata as it goes. (In general, you cannot write directly to Places at
all.)
And writing a computed reverse-diff through the API is also hard to get
right — by the time you try to change things back, Sync might have merged
in new changes.
If data doesn't hit the database… well, that's another set of problems.
> The editor window is too small and unresizable, the tag list changes width
> as you scroll it, etc. With my two extensions, tags are now (with ESR45)
> quite useful, and you can have minutes long sessions editing tags, making
> cancel a necessity.
If you're making changes over the course of minutes, and those changes are
applied to Places, then those changes have synced to other devices and
might indeed change underneath you during editing.
> https://mail.mozilla.org/listinfo/firefox-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/firefox-dev/attachments/20161026/3328283e/attachment.html>
More information about the firefox-dev
mailing list