mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-19 02:13:17 -05:00
[PR #5482] [MERGED] add and use new event types #12489
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/5482
Author: @stefan0xC
Created: 1/27/2025
Status: ✅ Merged
Merged: 1/28/2025
Merged by: @BlackDex
Base:
main← Head:add-additional-events📝 Commits (5)
c66935dadd additional event_types1b9efc0use correct event_type when leaving an org32d47fause correct event type when deleting a user3d6f9cfalso correctly log auth requestsa7ef547add correct membership info to event log📊 Changes
5 files changed (+48 additions, -6 deletions)
View changed files
📝
src/api/admin.rs(+1 -1)📝
src/api/core/accounts.rs(+26 -0)📝
src/api/core/events.rs(+5 -4)📝
src/api/core/organizations.rs(+1 -1)📝
src/db/models/event.rs(+15 -0)📄 Description
It seems like the web-vault has some additional event types, so I've updated our list accordingly. Most of them are added only for reference (and it seems like the web-vault does not even have support to display all of them correctly at the moment).
I've used the new ones for auth requests and to differentiate between a member leaving an organization


and getting the whole account deleted by an admin (
possibly this should also be when it's deleted by yourself?).Lastly I also changed it so that the membership info is also stored in the

log_user_eventfor the found organizations, so the link to the member id won't show up asundefinedin the report:(I'm not sure why this is not also linked for other User events as it seems useful to have a quick link to list the associated items for a given member...)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.