From 0230013b20acf0996e4c148c5660609f56d90f82 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Mon, 19 Aug 2024 08:00:17 +1000 Subject: [PATCH] [AC-2972] AC Team ownership: Events (#4647) * Move Event domain under AC Team ownership --- .github/CODEOWNERS | 2 ++ src/Api/{ => AdminConsole}/Controllers/EventsController.cs | 0 .../{ => AdminConsole}/Public/Controllers/EventsController.cs | 0 src/Core/{ => AdminConsole}/Entities/Event.cs | 0 src/Core/{ => AdminConsole}/Enums/EventSystemUser.cs | 0 src/Core/{ => AdminConsole}/Enums/EventType.cs | 0 src/Core/{ => AdminConsole}/Models/Data/EventMessage.cs | 0 src/Core/{ => AdminConsole}/Models/Data/EventTableEntity.cs | 0 src/Core/{ => AdminConsole}/Models/Data/IEvent.cs | 0 src/Core/{ => AdminConsole}/Repositories/IEventRepository.cs | 0 .../Repositories/TableStorage/EventRepository.cs | 0 .../{ => AdminConsole}/Repositories/EventRepository.cs | 0 .../{ => AdminConsole}/Repositories/EventRepository.cs | 0 .../Repositories/Queries/EventReadPageByCipherIdQuery.cs | 0 .../Queries/EventReadPageByOrganizationIdActingUserIdQuery.cs | 0 .../Repositories/Queries/EventReadPageByOrganizationIdQuery.cs | 0 .../EventReadPageByOrganizationIdServiceAccountIdQuery.cs | 0 .../Queries/EventReadPageByProviderIdActingUserIdQuery.cs | 0 .../Repositories/Queries/EventReadPageByProviderIdQuery.cs | 0 .../Repositories/Queries/EventReadPageByUserIdQuery.cs | 0 20 files changed, 2 insertions(+) rename src/Api/{ => AdminConsole}/Controllers/EventsController.cs (100%) rename src/Api/{ => AdminConsole}/Public/Controllers/EventsController.cs (100%) rename src/Core/{ => AdminConsole}/Entities/Event.cs (100%) rename src/Core/{ => AdminConsole}/Enums/EventSystemUser.cs (100%) rename src/Core/{ => AdminConsole}/Enums/EventType.cs (100%) rename src/Core/{ => AdminConsole}/Models/Data/EventMessage.cs (100%) rename src/Core/{ => AdminConsole}/Models/Data/EventTableEntity.cs (100%) rename src/Core/{ => AdminConsole}/Models/Data/IEvent.cs (100%) rename src/Core/{ => AdminConsole}/Repositories/IEventRepository.cs (100%) rename src/Core/{ => AdminConsole}/Repositories/TableStorage/EventRepository.cs (100%) rename src/Infrastructure.Dapper/{ => AdminConsole}/Repositories/EventRepository.cs (100%) rename src/Infrastructure.EntityFramework/{ => AdminConsole}/Repositories/EventRepository.cs (100%) rename src/Infrastructure.EntityFramework/{ => AdminConsole}/Repositories/Queries/EventReadPageByCipherIdQuery.cs (100%) rename src/Infrastructure.EntityFramework/{ => AdminConsole}/Repositories/Queries/EventReadPageByOrganizationIdActingUserIdQuery.cs (100%) rename src/Infrastructure.EntityFramework/{ => AdminConsole}/Repositories/Queries/EventReadPageByOrganizationIdQuery.cs (100%) rename src/Infrastructure.EntityFramework/{ => AdminConsole}/Repositories/Queries/EventReadPageByOrganizationIdServiceAccountIdQuery.cs (100%) rename src/Infrastructure.EntityFramework/{ => AdminConsole}/Repositories/Queries/EventReadPageByProviderIdActingUserIdQuery.cs (100%) rename src/Infrastructure.EntityFramework/{ => AdminConsole}/Repositories/Queries/EventReadPageByProviderIdQuery.cs (100%) rename src/Infrastructure.EntityFramework/{ => AdminConsole}/Repositories/Queries/EventReadPageByUserIdQuery.cs (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a067f879cc..0ed3ee0f71 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -38,6 +38,8 @@ src/Identity @bitwarden/team-auth-dev bitwarden_license/src/Scim @bitwarden/team-admin-console-dev bitwarden_license/src/test/Scim.IntegrationTest @bitwarden/team-admin-console-dev bitwarden_license/src/test/Scim.ScimTest @bitwarden/team-admin-console-dev +src/Events @bitwarden/team-admin-console-dev +src/EventsProcessor @bitwarden/team-admin-console-dev # Billing team **/*billing* @bitwarden/team-billing-dev diff --git a/src/Api/Controllers/EventsController.cs b/src/Api/AdminConsole/Controllers/EventsController.cs similarity index 100% rename from src/Api/Controllers/EventsController.cs rename to src/Api/AdminConsole/Controllers/EventsController.cs diff --git a/src/Api/Public/Controllers/EventsController.cs b/src/Api/AdminConsole/Public/Controllers/EventsController.cs similarity index 100% rename from src/Api/Public/Controllers/EventsController.cs rename to src/Api/AdminConsole/Public/Controllers/EventsController.cs diff --git a/src/Core/Entities/Event.cs b/src/Core/AdminConsole/Entities/Event.cs similarity index 100% rename from src/Core/Entities/Event.cs rename to src/Core/AdminConsole/Entities/Event.cs diff --git a/src/Core/Enums/EventSystemUser.cs b/src/Core/AdminConsole/Enums/EventSystemUser.cs similarity index 100% rename from src/Core/Enums/EventSystemUser.cs rename to src/Core/AdminConsole/Enums/EventSystemUser.cs diff --git a/src/Core/Enums/EventType.cs b/src/Core/AdminConsole/Enums/EventType.cs similarity index 100% rename from src/Core/Enums/EventType.cs rename to src/Core/AdminConsole/Enums/EventType.cs diff --git a/src/Core/Models/Data/EventMessage.cs b/src/Core/AdminConsole/Models/Data/EventMessage.cs similarity index 100% rename from src/Core/Models/Data/EventMessage.cs rename to src/Core/AdminConsole/Models/Data/EventMessage.cs diff --git a/src/Core/Models/Data/EventTableEntity.cs b/src/Core/AdminConsole/Models/Data/EventTableEntity.cs similarity index 100% rename from src/Core/Models/Data/EventTableEntity.cs rename to src/Core/AdminConsole/Models/Data/EventTableEntity.cs diff --git a/src/Core/Models/Data/IEvent.cs b/src/Core/AdminConsole/Models/Data/IEvent.cs similarity index 100% rename from src/Core/Models/Data/IEvent.cs rename to src/Core/AdminConsole/Models/Data/IEvent.cs diff --git a/src/Core/Repositories/IEventRepository.cs b/src/Core/AdminConsole/Repositories/IEventRepository.cs similarity index 100% rename from src/Core/Repositories/IEventRepository.cs rename to src/Core/AdminConsole/Repositories/IEventRepository.cs diff --git a/src/Core/Repositories/TableStorage/EventRepository.cs b/src/Core/AdminConsole/Repositories/TableStorage/EventRepository.cs similarity index 100% rename from src/Core/Repositories/TableStorage/EventRepository.cs rename to src/Core/AdminConsole/Repositories/TableStorage/EventRepository.cs diff --git a/src/Infrastructure.Dapper/Repositories/EventRepository.cs b/src/Infrastructure.Dapper/AdminConsole/Repositories/EventRepository.cs similarity index 100% rename from src/Infrastructure.Dapper/Repositories/EventRepository.cs rename to src/Infrastructure.Dapper/AdminConsole/Repositories/EventRepository.cs diff --git a/src/Infrastructure.EntityFramework/Repositories/EventRepository.cs b/src/Infrastructure.EntityFramework/AdminConsole/Repositories/EventRepository.cs similarity index 100% rename from src/Infrastructure.EntityFramework/Repositories/EventRepository.cs rename to src/Infrastructure.EntityFramework/AdminConsole/Repositories/EventRepository.cs diff --git a/src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByCipherIdQuery.cs b/src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByCipherIdQuery.cs similarity index 100% rename from src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByCipherIdQuery.cs rename to src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByCipherIdQuery.cs diff --git a/src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByOrganizationIdActingUserIdQuery.cs b/src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByOrganizationIdActingUserIdQuery.cs similarity index 100% rename from src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByOrganizationIdActingUserIdQuery.cs rename to src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByOrganizationIdActingUserIdQuery.cs diff --git a/src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByOrganizationIdQuery.cs b/src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByOrganizationIdQuery.cs similarity index 100% rename from src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByOrganizationIdQuery.cs rename to src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByOrganizationIdQuery.cs diff --git a/src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByOrganizationIdServiceAccountIdQuery.cs b/src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByOrganizationIdServiceAccountIdQuery.cs similarity index 100% rename from src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByOrganizationIdServiceAccountIdQuery.cs rename to src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByOrganizationIdServiceAccountIdQuery.cs diff --git a/src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByProviderIdActingUserIdQuery.cs b/src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByProviderIdActingUserIdQuery.cs similarity index 100% rename from src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByProviderIdActingUserIdQuery.cs rename to src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByProviderIdActingUserIdQuery.cs diff --git a/src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByProviderIdQuery.cs b/src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByProviderIdQuery.cs similarity index 100% rename from src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByProviderIdQuery.cs rename to src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByProviderIdQuery.cs diff --git a/src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByUserIdQuery.cs b/src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByUserIdQuery.cs similarity index 100% rename from src/Infrastructure.EntityFramework/Repositories/Queries/EventReadPageByUserIdQuery.cs rename to src/Infrastructure.EntityFramework/AdminConsole/Repositories/Queries/EventReadPageByUserIdQuery.cs