mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #19] [MERGED] Remove dependent items when removing cipher #2575
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#2575
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/19
Author: @mprasil
Created: 5/15/2018
Status: ✅ Merged
Merged: 5/15/2018
Merged by: @dani-garcia
Base:
master← Head:cipher_deleting📝 Commits (1)
21c1ab7Remove dependent items when removing cipher📊 Changes
6 files changed (+51 additions, -32 deletions)
View changed files
📝
src/api/core/accounts.rs(+4 -3)📝
src/api/core/ciphers.rs(+12 -15)📝
src/db/models/attachment.rs(+12 -6)📝
src/db/models/cipher.rs(+11 -8)📝
src/db/models/collection.rs(+6 -0)📝
src/db/models/folder.rs(+6 -0)📄 Description
This makes sure, that we delete all dependent records (
Attachment,FolderCipher,CollectionCipher) before deleting Cipher itself. Otherwise the deleting will fail.This also implements better error handling (#6) for
deleteand moves some functionality out of request handling undercipher.rs.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.