mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[PR #1106] [MERGED] Track favorites on a per-user basis #2883
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#2883
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/1106
Author: @jjlin
Created: 8/19/2020
Status: ✅ Merged
Merged: 8/23/2020
Merged by: @dani-garcia
Base:
master← Head:favorites📝 Commits (3)
0e9eba8Maximize similarity between MySQL and SQLite/PostgreSQL schemasf83a8a3Track favorites on a per-user basis3bbdbb8Transfer favorite status for user-owned ciphers📊 Changes
12 files changed (+258 additions, -40 deletions)
View changed files
➕
migrations/mysql/2020-08-02-025025_add_favorites_table/down.sql(+13 -0)➕
migrations/mysql/2020-08-02-025025_add_favorites_table/up.sql(+16 -0)➕
migrations/postgresql/2020-08-02-025025_add_favorites_table/down.sql(+13 -0)➕
migrations/postgresql/2020-08-02-025025_add_favorites_table/up.sql(+16 -0)➕
migrations/sqlite/2020-08-02-025025_add_favorites_table/down.sql(+13 -0)➕
migrations/sqlite/2020-08-02-025025_add_favorites_table/up.sql(+71 -0)📝
src/api/core/ciphers.rs(+6 -1)📝
src/db/models/cipher.rs(+45 -3)📝
src/db/schemas/mysql/schema.rs(+39 -33)📝
src/db/schemas/postgresql/schema.rs(+7 -1)📝
src/db/schemas/sqlite/schema.rs(+7 -1)📝
src/main.rs(+12 -1)📄 Description
Currently, favorites are tracked at the cipher level. For org-owned ciphers,
this means that if one user sets it as a favorite, it automatically becomes a
favorite for all other users that the cipher has been shared with.
Fixes #885.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.