nextcloud / nextcloud/server

Trash bin - add filters, improve batch actions

Open
#24,544 8 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: trashbin Nice to have
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.
I've now had 2 cases were the desktop client I used (used owncloud client because I needed the Virtual File System functionality) sent delete command for almost all of my files. Frankly, recovering those files from the Trash bin is a huge pain in the ass because atm you can only recover all files (even that keeps crashing) or you have to select single files, if you need to do it in thousands of files it's frankly pain in the ass.

Describe the solution you'd like
First thing I'm proposing, add filters, that would include minimally:

  • Choose datetime period, when the files were deleted
  • Allow searching by folder. For example yesterday, I know it only managed to delete important stuff in my /Notes folder, would have been nice if I could limit the trash bin to show only deleted content from /Notes frolder.
  • Improve batch working:
    • selecting multiple (there is select range option when I click 2 items, but nothing happens) files more easily
    • when I select multiple files and click restore, instead of sending restore backend call for each file separately, send it as one backend call, that includes list of files. This would prevent browser from crashing/dying if I need to restore for example thousands or tens of thousands files.

Describe alternatives you've considered
I tried varius other webdav clients, including windows 10 file explorer integration to directly access /remote.php/dav/trashbin/Admin to see if any of them can handle moving files from trash folder to restore folder. None of them could. About half of them could see the files in trash, but not open nor move them.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the trash-bin UI and the /remote.php/dav/trashbin/Admin entry point mentioned in the issue, then trace how selection, filtering, and restore requests currently work. Done means users can filter deleted files by date and folder, select batches reliably, and restore large selections without one backend call per file.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
full-stack
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.