From 1b7de96301dff06ecd79dea60b5fef931727ebf7 Mon Sep 17 00:00:00 2001 From: MOHAMED RASHED Date: Sat, 13 Jun 2026 20:57:05 +0300 Subject: [PATCH 1/2] refactor: enhanc consumers + add s3 storage managment --- backend/Directory.Packages.props | 23 +- .../CommunityJoinRequestedBusPublisher.cs | 2 +- .../EventHandlers/PostCreatedBusPublisher.cs} | 2 +- .../EventHandlers}/PostVotedBusPublisher.cs | 2 +- .../ReplyCreatedBusPublisher.cs | 2 +- .../CCE.Infrastructure.csproj | 1 + .../CceInfrastructureOptions.cs | 12 ++ .../CCE.Infrastructure/DependencyInjection.cs | 10 +- .../CCE.Infrastructure/Files/S3FileStorage.cs | 72 +++++++ .../Notifications/NotificationGateway.cs | 24 ++- backend/src/CCE.Seeder/Program.cs | 1 + .../Seeders/NotificationTemplateSeeder.cs | 198 ++++++++++++++++++ .../Country/CountryResourceRequestTests.cs | 9 +- .../Identity/UserDefaultsTests.cs | 2 +- .../Identity/UserMutationTests.cs | 12 +- 15 files changed, 330 insertions(+), 42 deletions(-) rename backend/src/CCE.Application/{Notifications/Handlers => Community/EventHandlers}/CommunityJoinRequestedBusPublisher.cs (95%) rename backend/src/CCE.Application/{Notifications/Handlers/PostCreatedIntegrationEventHandler.cs => Community/EventHandlers/PostCreatedBusPublisher.cs} (96%) rename backend/src/CCE.Application/{Notifications/Handlers => Community/EventHandlers}/PostVotedBusPublisher.cs (95%) rename backend/src/CCE.Application/{Notifications/Handlers => Community/EventHandlers}/ReplyCreatedBusPublisher.cs (95%) create mode 100644 backend/src/CCE.Infrastructure/Files/S3FileStorage.cs create mode 100644 backend/src/CCE.Seeder/Seeders/NotificationTemplateSeeder.cs diff --git a/backend/Directory.Packages.props b/backend/Directory.Packages.props index 6921bf9d..a5b081dc 100644 --- a/backend/Directory.Packages.props +++ b/backend/Directory.Packages.props @@ -1,11 +1,10 @@ - true true - + @@ -26,22 +25,18 @@ - - - - @@ -50,7 +45,6 @@ - @@ -60,12 +54,10 @@ - - @@ -80,14 +72,12 @@ - - @@ -103,7 +93,6 @@ - @@ -111,7 +100,6 @@ - @@ -121,22 +109,18 @@ - - - - @@ -145,7 +129,6 @@ which has GHSA-37gx-xxp4-5rgx and GHSA-w3x6-4m5h-cxqf. Pin to .NET 10 patched version. --> -