Skip to content

Ask for confirmation before reverting/overriding a folder #7520

Closed

Description

@sebyte

I lost work recently clicking the 'Revert local changes?' button on a receive only folder, expecting a dialogue box would list the affected files and seek my confirmation before reverting or deleting. To my surprise, the file I'd mistakenly saved in the wrong folder was instantly deleted. Everone's expectations are different of course but the potential for accidental data loss here is huge.

No versioning strategy was employed on this particular folder but even if it had been, I don't believe it would have helped since versioning strategies only apply to changes coming in from other devices.

Activity

  1. added
    enhancement
    needs-triage
    on Mar 24, 2021
  2. calmh commented on Mar 24, 2021

    @calmh
    Member

    Versioning does apply, and the files that will be reverted are listed in the "locally changed items" line before pressing revert. I'll give you that there could be a confirmation though... That said, if the problem is the expectation on what the button does I don't see a "Really revert?" dialog making much difference.

  3. imsodin commented on Mar 24, 2021

    @imsodin
    Member

    This discussion happened on the forum not too long ago, with a general agreement that a confirmation would be good. Just a single word (revert/override) and a the red color apparently isn't able to convey the consequences appropriately. I actually intended to take a stab at a short message based on your proposal, but never got around to it:

    I agree on the confirmation (though it needs to be much shorter and to the point, I think, maybe something like “Warning: the folder contents on OTHER devices will be overwritten to become identical with THIS device. Files not present here will be deleted on other devices.”?).

    https://forum.syncthing.net/t/do-not-click-override-changes/16081/6

  4. added
    ui
    and removed
    needs-triage
    on Mar 24, 2021
  5. changed the title [-]'Revert local changes?' on a receive-only folder should list affected files and seek confirmation before reverting and/or deleting[/-] [+]Ask for confirmation before reverting/overriding a folder[/+] on Mar 24, 2021
  6. sebyte commented on Mar 24, 2021

    @sebyte
    Author

    I see now that I overlooked the 'Locally changed items' line and expected to see the dialogue it would have shown me when I pressed 'Revert local changes?' IMO, any confirmation dialogue should somehow draw the user's attention to the list of locally changed items as well as soliciting an additional button press.

    Also, I am surprised to learn that a versioning strategy would have protected me. The manual strongly suggests otherwise.

  7. imsodin commented on Mar 24, 2021

    @imsodin
    Member

    Also, I am surprised to learn that a versioning strategy would have protected me. The manual strongly suggests otherwise.

    What are you referring to? Maybe

    Versioning applies to changes received from other devices.

    Reverting files is receiving changes from other devices, but I can see how that might not be obvious. Feel free to propose changes to the docs to make it more clear.

  8. sebyte commented on Mar 24, 2021

    @sebyte
    Author

    Versioning applies to changes received from other devices.

    Yes, that's the line that suggests to me file versioning does not apply here. It also happens to be the first line of an 'important note' box and the words 'from other devices' are italicised to provide additional emphasis.

    Reverting files is receiving changes from other devices, but I can see how that might not be obvious.

    Yes, not obvious at all. Without an in-depth understanding of the versioning machinery I can't be certain this is correct, but how about the following?

    Versioning applies to changes received from other devices, with one notable exception; locally introduced changes to receive-only folders are versioned when the changes are manually reverted using the UI.

  9. acolomb commented on Mar 24, 2021

    @acolomb
    Member

    I agree on the confirmation (though it needs to be much shorter and to the point, I think, maybe something like “Warning: the folder contents on OTHER devices will be overwritten to become identical with THIS device. Files not present here will be deleted on other devices.”?).

    How about moving the "Revert Local Changes" button to the "Locally Changed Items" dialog? Just a quick idea, I'm not even sure whether such a dialog pops up or what it looks like. But that would couple the "what will happen" preview directly to the opportunity of pressing the red button.

  10. sebyte commented on Mar 25, 2021

    @sebyte
    Author

    How about moving the "Revert Local Changes" button to the "Locally Changed Items" dialog?

    Good idea. That would have prevented me from losing my work.

    that would couple the "what will happen" preview directly to the opportunity of pressing the red button.

    Yes it would, and coupling the list of changes with the option to revert those changes makes accidental or inadvertant data loss far less likely.

  11. added 5 commits that reference this issue on Mar 25, 2021
    81f77c2
    1672dbb
    63e9cf5
    6adbe99
    28ec4c9
  12. added a commit that references this issue on Mar 26, 2021
    707001c
  13. added a commit that references this issue on Apr 5, 2021
    d1011dc
  14. added this to the v1.15.1 milestone on Apr 6, 2021
  15. added a commit that references this issue on May 8, 2021
    938f0ab
  16. added
    frozen-due-to-age
    on Aug 11, 2022
  17. locked and limited conversation to collaborators on Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-ageui

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions