1
0
mirror of https://github.com/bitwarden/server.git synced 2025-03-01 04:01:11 +01:00
bitwarden-server/util/Migrator
Nick Krantz 1267332b5b
[PM-14406] Security Task Notifications (#5344)
* initial commit of `CipherOrganizationPermission_GetManyByUserId`

* create queries to get all of the security tasks that are actionable by a user

- A task is "actionable" when the user has manage permissions for that cipher

* rename query

* return the user's email from the query as well

* Add email notification for at-risk passwords

- Added email layouts for security tasks

* add push notification for security tasks

* update entity framework to match stored procedure plus testing

* update date of migration and remove orderby

* add push service to security task controller

* rename `SyncSecurityTasksCreated` to `SyncNotification`

* remove duplicate return

* remove unused directive

* remove unneeded new notification type

* use `createNotificationCommand` to alert all platforms

* return the cipher id that is associated with the security task and store the security task id on the notification entry

* Add `TaskId` to the output model of `GetUserSecurityTasksByCipherIdsAsync`

* move notification logic to command

* use TaskId from `_getSecurityTasksNotificationDetailsQuery`

* add service

* only push last notification for each user

* formatting

* refactor `CreateNotificationCommand` parameter to `sendPush`

* flip boolean in test

* update interface to match usage

* do not push any of the security related notifications to the user

* add `PendingSecurityTasks` push type

* add push notification for pending security tasks
2025-02-27 08:34:42 -06:00
..
DbScripts [PM-14406] Security Task Notifications (#5344) 2025-02-27 08:34:42 -06:00
DbScripts_finalization Move DbScripts_finalization to DbScripts (#3675) 2024-02-12 14:00:09 -05:00
DbScripts_transition Add gitkeep files to preserve DbScript folders even if there's no sql scripts in them (#3341) 2023-10-13 15:05:27 +02:00
MySql enh(mysql) Enforce ENGINE=InnoDB (#1470) 2021-07-29 17:12:57 -04:00
DbMigrator.cs Add variable for production migration transaction level (#4702) 2024-10-09 08:48:19 -06:00
DbUpLogger.cs [deps] DbOps: Update dbup-sqlserver to v6 (#4951) 2025-01-09 14:05:26 -07:00
Migrator.csproj [deps] DbOps: Update dbup-sqlserver to v6 (#4951) 2025-01-09 14:05:26 -07:00
MigratorConstants.cs [DEVOPS-1519] Add transition mode to mssql migrator utility (#3259) 2023-09-28 16:29:52 +02:00
SqlServerDbMigrator.cs [PM-6938] Allow certain database operations to be skipped (#3914) 2024-03-27 11:20:54 -04:00