Skip to content

Comments

[stable27] Let occ trashbin:restore restore also from groupfolders and add filters#40581

Merged
artonge merged 5 commits intostable27from
backport/39818/stable27
Sep 25, 2023
Merged

[stable27] Let occ trashbin:restore restore also from groupfolders and add filters#40581
artonge merged 5 commits intostable27from
backport/39818/stable27

Conversation

@backportbot-nextcloud
Copy link

Backport of #39818

…ional filters

* Using the TrashManager allows access to all deleted files
* Add 'scope' parameter to choose where to restore from (user or groupfolders)
* Add 'restore-from' and 'restore-to' date parameters to filter files to be
  restored by their deletion date
* Add 'dry-run' flag to be able to see which files would be restored and being
  able to adjust the filter parameters accordingly

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
* Delete unnecessary function docs
* Rename parameters to 'since' and 'until'
* Style: use '&&' instead of 'and'
* Add types

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
@artonge
Copy link
Contributor

artonge commented Sep 25, 2023

CI failures looks unrelated

@artonge artonge disabled auto-merge September 25, 2023 08:31
@artonge artonge merged commit 033e62a into stable27 Sep 25, 2023
@artonge artonge deleted the backport/39818/stable27 branch September 25, 2023 08:31
@blizzz blizzz mentioned this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants