Skip to content

Make undo deletion work again #119

Closed

Description

@jancborchardt

Short: We need »undo delete« for files again.


You have an ownCloud server and it syncs to your desktop.

Now when you delete a file via the web interface, it doesn’t really get deleted, because you get the opportunity to undo that (like Gmail, better than a modal asking you for confirmation, which no one reads and just confirms).

The problem here is that you expect it to be deleted, and thus also removed from your local synced folder. This doesn’t happen immediately though because the file is not removed in the backend.

@MTRichards and I discussed a solution for this: When you delete a file in the web interface, the deletion should take place after the 7 seconds undo time, or after performing the next navigation action (whatever comes first). The file should be visibly (but fake) removed from the list instantly, and instantly reappear on undo.

Activity

  1. jancborchardt commented on Oct 28, 2012

    @jancborchardt
    ContributorAuthor

    This seems related to #51 (Undo function makes sync experience suboptimal).

  2. DeepDiver1975 commented on Dec 20, 2012

    @DeepDiver1975
    Contributor

    How do we want to handle external file systems in this case?

    Moving the files to be deleted within the same filesystem is cheep.
    Moving file from DropBox to ownCloud is expensive.

    Can we ignore the undo feature for this case?

  3. MTRichards commented on Dec 20, 2012

    @MTRichards
    Contributor

    @jancborchardt I think this is a UX question for you. Probably not, if possible...

  4. jancborchardt commented on Dec 21, 2012

    @jancborchardt
    ContributorAuthor

    Depends on what external file system we’re talking about I’d say:

    • Dropbox: the file will probably not be lost permanently anyway because Dropbox has their own versioning where files can be restored. As it is probably also synced to clients, we don’t want to have the problem of not actually deleting/moving the file and causing client »lag«. And it would be too expensive, so let’s just not do it.
    • FTP: doesn’t have any history and isn’t synced anywhere else probably, I’d say here use the current just notification-undo without moving the file

    That as short example, more tomorrow.

  5. DeepDiver1975 commented on Dec 28, 2012

    @DeepDiver1975
    Contributor

    How do we want the undo to work in general?

    1. Only allow undo of the last delete actions?
    2. Trash can feature and the user can undo whatever deletion

    In addition:
    How will this work together with version?
    Do we want any integration of undo/trash can and versions?

    @jancborchardt @karlitschek @schiesbn

  6. MTRichards commented on Dec 28, 2012

    @MTRichards
    Contributor

    In general, it should only be the last action available to undo. The big one here is delete - and undo there moves it out of the trash back where it was. If you select a whole stack of files and folders and delete them, then undo undoes them all - undo usually means "oops, I take that back".

    Other undo options would be things like rename and move as well. Undo here is lower priority, but would be nice to have. Undo would change names back to original names, and locations to original locations.

    Versions...this is interesting. I would like them to work independently, as people may or may not have the two turned on. If they are both enabled, undo should track and undo changes to the appropriate versions too. Example: if I delete a file, versions go away too, but if I then undo the delete, then the versions should come back too, if the versions app is turned on. If I delete a folder and hit undo, versions for everything in the folder should come back too. If I move a folder, versions should move, and then undo would move them back as well - but again, these last two actions are less important than undelete.

  7. jlgg commented on Dec 30, 2012

    @jlgg

    As I commented some hours ago in #199, I've implemeted a patch in files_versions in order to have a simple trash. In this issue you can find my proposal.

    In my implementations, versions of files aren't deleted so, if you recover the deleted file, you keep all history.

    As I commented, I'm working on the following TODO list:

    1. Include remove procedure in the cron for deleted files/dirs
    2. Remove or fix working in "All versions..." link
    3. Generate an "Empty trash" procedure (different than cron)
    4. Change history icon in directories

    You can see this implementation on my fork simple_trash. I accept comments an suggestions

  8. DeepDiver1975 commented on Dec 31, 2012

    @DeepDiver1975
    Contributor

    @jlgg some questions

    1. How do you handle external fs?
    2. Your trash app is an extention to files_version, right?

    AFAIK files_version will be reimplemented. @schiesbn is in charge
    And we need an undo solution which works independent of versions.

  9. jlgg commented on Dec 31, 2012

    @jlgg

    @DeepDiver1975

    1. I've just edited files_versions hooks.php and versions.php (and js and ajax files) using the same methods used in this ones. So if versions supports external fs, then my undo method supports too.
    2. Yes

    I agree with you that undo should be independent of versions but we can get a working version in just some hours using versions support.

  10. schiessle commented on Jan 22, 2013

    @schiessle
    Contributor

    pull request #1266 introduces a trash bin like we know it from most desktop systems. Once the pull request is merged the other undo function will be gone which will solve the issue discussed here.

  11. jancborchardt commented on Mar 5, 2013

    @jancborchardt
    ContributorAuthor

    As you see from #2101 we should definitely bring back proper undo for Files in ownCloud 6.

  12. jancborchardt commented on Aug 7, 2013

    @jancborchardt
    ContributorAuthor

    Folks, what’s the resolution on this? I want to grab one of you awesome PHP devs at the Berlin hackfest next week and make undo deletion work again. It will have a 5–10 second automatic timeout so there will be no syncing lag. It should also be implemented in a way that it can be used by other apps.

    Who’s with me?

  13. DeepDiver1975 commented on Aug 22, 2013

    @DeepDiver1975
    Contributor

    @jancborchardt @MTRichards @karlitschek OC7 from my point of view

  14. karlitschek commented on Aug 23, 2013

    @karlitschek
    Contributor

    Yes. oC7

  15. 71 remaining items

  16. jancborchardt commented on Dec 7, 2015

    @jancborchardt
    ContributorAuthor

    Hey @watermark since you worked on the delete confirmation app, would you like to implement this undo delete feature here so we can have the proper functionality in core? :)

  17. watermark commented on Dec 7, 2015

    @watermark

    @jancborchardt My extra curricular time is pretty full, so I don't believe I'll have time to address this. For my uses, we have to disable the "deleted files" app anyway, so this undo functionality wouldn't be of use for any of my installs. For "deleted files" to be useful for us, it would have to move to some type of system where deleted files from external storage didn't count towards the quota of the user that deleted it. Additionally, last I checked, "deleted files" uses a "copy" instead of a "move", which also made it difficult to use.

  18. jancborchardt commented on Dec 7, 2015

    @jancborchardt
    ContributorAuthor

    @watermark just to be clear though: This has nothing to do with the »deleted files« app. It’s simply a mechanism like »undo send« of Gmail and »undo deletion« of Google Drive etc to defer deletion for a few seconds in case it was a mistake.

    It’s a more elegant solution than a popup since popups are often clicked away. Also, the popup makes every real deletion an annoying 2-click process.

  19. PVince81 commented on Jun 1, 2016

    @PVince81
    Contributor

    We're past feature freeze for 9.1 and there wasn't enough time to work on this.

    @MTRichards again something to be scheduled, maybe for 9.2

    CC @cmonteroluque

  20. modified the milestones: , on Jun 1, 2016
  21. MTRichards commented on Jun 1, 2016

    @MTRichards
    Contributor

    check, ok.

  22. Shamim-Capgemini commented on Jun 1, 2016

    @Shamim-Capgemini

    @jancborchardt I'm not sure why elegant is expected to be coincident with "more usable". Yes, a popup requires multiple clicks. But a popup used to make a non-desirable activity more difficult is not a bad choice per se. Should we remove seals/locks on ALL airplane doors because it makes it harder to open to go skydiivng?

    Sometimes, the ELEGANT is the WRONG choice for the AUDIENCE but NOT the AUTHOR. I feel it is not responsible for a committee to foist one scenario or another when both are clearly possible. With "delete and allow undo for a few seconds" there are many edge cases not covered.. What happens if it is not caught in time? What happens if the user looks away? We are making way too many assumptions on WHAT the BEST solution is.

    I strongly advocate giving the users a choice since it works differently for different groups.

    For the record, since i IMPLEMENTED the delete popup by hand in v6 and v7 for my consituents (140+ enterprise users, hundreds of Gigs of data stored), I have not had a SINGLE instance of:

    1. Accidental deletes
    2. No complaints on the two step delete
    3. No requests to restore any files
    4. No questions on how to restore shares from deleted files

    I would consider this ample evidence for a need for both. The "elegant" solution for those that have a simple scenario or users that pay attention, or a "delete popup" for those users that need that level of hand-holding.

    Thank you.

    @watermark I share your opinions on this one.

  23. Shamim-Capgemini commented on Jun 1, 2016

    @Shamim-Capgemini

    @jancborchardt Take home message: please don't take our ability to CHOOSE if we want a popup away just because it's annoying to a particular audience that has very specific needs. This one group does not speak for all users everywhere and should not be brandished as the cause-celebre to remove the "click-twice to delete" option.

  24. watermark commented on Jun 1, 2016

    @watermark

    @Shamim-Capgemini You're preaching to the wrong guy. I've had a similar experience as you (100+ users), and I implemented a plugin to do the popup as well. You should probably discuss your point of view with @jancborchardt.

  25. Shamim-Capgemini commented on Jun 1, 2016

    @Shamim-Capgemini

    @watermark You are right. We're in the same boat.

    @jancborchardt Please see my comment above.

  26. hodyroff commented on Feb 24, 2017

    @hodyroff

    @watermark Like the delete question app. Do you have a chance to update to 9.1 and soon to 10.0? Would be happy to recommend to customers once in a while ... Or would you just like to implement this for Core? Would happily take it as an Admin setting function. Please do a PR in that case and link to it here.

    However this one original was about something else and doesn't seem to work easily with external file systems. Closing.

  27. lock commented on Aug 3, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  28. locked as resolved and limited conversation to collaborators on Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions