mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-23 08:32:45 -05:00
[PR #1579] [MERGED] Add support for auto-deleting trashed items #6619
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/1579
Author: @jjlin
Created: 4/3/2021
Status: ✅ Merged
Merged: 4/6/2021
Merged by: @dani-garcia
Base:
master← Head:job-scheduler📝 Commits (3)
73ff8d7Add a generic job schedulerd773335Add support for auto-deleting trashed items90e0b7fOffset scheduled jobs by 5 minutes📊 Changes
11 files changed (+180 additions, -33 deletions)
View changed files
📝
.env.template(+17 -0)📝
Cargo.lock(+32 -1)📝
Cargo.toml(+10 -0)📝
src/api/core/ciphers.rs(+10 -1)📝
src/api/core/mod.rs(+2 -1)📝
src/api/core/sends.rs(+8 -16)📝
src/api/mod.rs(+2 -1)📝
src/config.rs(+16 -0)📝
src/db/models/cipher.rs(+23 -1)📝
src/db/models/send.rs(+16 -6)📝
src/main.rs(+44 -6)📄 Description
Upstream will soon auto-delete trashed items after 30 days, but some people use the trash as an archive folder, so to avoid unexpected data loss, this implementation requires the user to explicitly enable auto-deletion.
This PR also adds a generic job scheduler, and rewrites deletion of old sends to use it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.