Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable31] Allow to delete files without trashbin + add unit tests + some refactoring #51397

Merged
merged 6 commits into from
Mar 13, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Mar 11, 2025

Backport of #51394

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@susnux susnux marked this pull request as ready for review March 11, 2025 14:59
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@solracsf solracsf linked an issue Mar 11, 2025 that may be closed by this pull request
8 tasks
@blizzz blizzz mentioned this pull request Mar 12, 2025
14 tasks
susnux added 6 commits March 13, 2025 21:30
1. Refactor to make code better testable (move columns and view source to `files_views` folder)
2. Fix deletion time fallback (JS Date vs unix timestamp for
   "delted"-column)
3. Correctly sort `deletedBy` and `originalLocation` columns to use
   natural sort like any other column
4. Add unit tests for columns and views

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1. correctly return null instead of void in empty trash action
2. use constant instead of magic value for action ID
3. add unit tests for empty trash action
4. add unit tests for trashbin api

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1. do not rely on magic string but use constant ID for trashbin view
2. add unit tests for restore action

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the backport/51394/stable31 branch from 6692da9 to da8e210 Compare March 13, 2025 20:32
@susnux susnux merged commit c34c8ed into stable31 Mar 13, 2025
128 of 130 checks passed
@susnux susnux deleted the backport/51394/stable31 branch March 13, 2025 21:03
@Altahrim Altahrim mentioned this pull request Mar 18, 2025
20 tasks
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.

[Bug]: Can't delete files without "Deleted Files" application
3 participants