Add support for archiving items#6916
Conversation
| "anon-addy-self-host-alias", | ||
| "simple-login-self-host-alias", | ||
| "mutual-tls", | ||
| "pm-19148-innovation-archive", |
There was a problem hiding this comment.
@BlackDex I have not tested it (and I am not sure how stable this feature is yet) but could we not just enable this feature directly instead of adding a new feature flag that you have to opt in?
Also the feature flags we set have already been removed for a few releases, so they can be safely replaced in my opinion.
vaultwarden/src/api/core/mod.rs
Lines 208 to 212 in ba55191
There was a problem hiding this comment.
With it being included in the 2026.2.1 release announcement, I think it'd be stable enough to enable directly
There was a problem hiding this comment.
I have enabled the flag directly and removed some of the older flags (keeping email-verification and mobile-error-reporting).
@BlackDex Let me know if this needs further adjustments
|
I’m just wondering why we don’t simply add a field to the https://github.com/bitwarden/server/blob/main/src/Sql/dbo/Vault/Tables/Cipher.sql#L16 |
They originally did that, but later added the |
f5497c3 to
4bfc0b2
Compare
|
Refactored to properly support importing items that were archived |
ba40076 to
6fc9aa0
Compare
|
@BlackDex any further thoughts on this? Seems fairly straightforward and previous comments were addressed. |
6ac5beb to
4a73d26
Compare
|
I need time to check and verify this, or @dani-garcia must have some time of course. |
| // Platform Team | ||
| "pm-30529-webauthn-related-origins", | ||
| // Innovation Team | ||
| "pm-19148-innovation-archive", |
There was a problem hiding this comment.
This is not needed when adding it as a default flag, since those can't be adjusted by users anyway.
| archived_at -> Timestamp, | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Looking at the migration sql's i think there are some joinable!() lines missing between the archives and users/ciphers tables. Without those Diesel doesn't treat those as joinable records during queries or might be unable to optimize the queries.
There was a problem hiding this comment.
Added the joinable!() lines and also included archives in the allow_tables_to_appear_in_same_query!() macro
Adds support for archiving items: #6372
I'm new to the codebase, so let me know if I have missed anything. Happy to apply any feedback you may have. Thank you!