From 9e6a5a7f9f9ae36ccc63176287534afd121078fc Mon Sep 17 00:00:00 2001 From: Thomas Luizon Rodrigues Gregorio Date: Sun, 23 Aug 2026 02:03:23 -0300 Subject: [PATCH 1/5] Start #334 notification route fix From 81b59630774df24370da94bd1427c7f6af9ef728 Mon Sep 17 00:00:00 2001 From: Thomas Luizon Rodrigues Gregorio Date: Sun, 23 Aug 2026 02:25:04 -0300 Subject: [PATCH 2/5] Fix notification routes and goal dedupe for #334 --- architecture.html | 2 +- architecture.json | 9 +- .../AcceptAccountabilityPairCommand.cs | 4 +- .../Commands/CheckInAccountabilityCommand.cs | 4 +- .../InviteAccountabilityBuddyCommand.cs | 4 +- .../Commands/RunCalendarAutoSyncCommand.cs | 7 +- .../Commands/CreateChallengeCommand.cs | 3 +- .../Services/GamificationService.cs | 4 +- .../Commands/TestPushNotificationCommand.cs | 7 +- .../Notifications/NotificationUrls.cs | 11 + .../CheckReferralCompletionCommand.cs | 5 +- .../Commands/AcceptFriendRequestCommand.cs | 4 +- .../Social/Commands/SendCheerCommand.cs | 4 +- .../Commands/SendFriendRequestCommand.cs | 4 +- src/Orbit.Domain/Entities/Notification.cs | 13 +- ...51503_AddNotificationDedupeKey.Designer.cs | 2596 +++++++++++++++++ ...20260823051503_AddNotificationDedupeKey.cs | 95 + ..._RewriteStreakNotificationUrls.Designer.cs | 2596 +++++++++++++++++ ...823051619_RewriteStreakNotificationUrls.cs | 70 + .../Migrations/OrbitDbContextModelSnapshot.cs | 7 + .../Persistence/OrbitDbContext.cs | 1 + .../GoalDeadlineNotificationService.cs | 24 +- .../ProactiveCheckinSchedulerService.cs | 5 +- .../Services/ReminderSchedulerService.cs | 10 +- .../Services/SlipAlertSchedulerService.cs | 5 +- .../StreakFreezeAutoActivationService.cs | 7 +- .../AcceptAccountabilityPairCommandTests.cs | 4 +- .../CheckInAccountabilityCommandTests.cs | 4 +- .../InviteAccountabilityBuddyCommandTests.cs | 4 +- .../Notifications/NotificationUrlsTests.cs | 39 + .../Social/FriendshipCommandsTests.cs | 8 +- .../Social/SendCheerCommandTests.cs | 4 +- .../Entities/NotificationTests.cs | 15 +- .../NotificationRouteMigrationTests.cs | 74 + .../GoalDeadlineNotificationServiceTests.cs | 61 +- .../StreakFreezeAutoActivationServiceTests.cs | 5 +- 36 files changed, 5630 insertions(+), 89 deletions(-) create mode 100644 src/Orbit.Application/Notifications/NotificationUrls.cs create mode 100644 src/Orbit.Infrastructure/Migrations/20260823051503_AddNotificationDedupeKey.Designer.cs create mode 100644 src/Orbit.Infrastructure/Migrations/20260823051503_AddNotificationDedupeKey.cs create mode 100644 src/Orbit.Infrastructure/Migrations/20260823051619_RewriteStreakNotificationUrls.Designer.cs create mode 100644 src/Orbit.Infrastructure/Migrations/20260823051619_RewriteStreakNotificationUrls.cs create mode 100644 tests/Orbit.Application.Tests/Notifications/NotificationUrlsTests.cs create mode 100644 tests/Orbit.Infrastructure.Tests/Persistence/NotificationRouteMigrationTests.cs diff --git a/architecture.html b/architecture.html index 2568f8b3..1df31853 100644 --- a/architecture.html +++ b/architecture.html @@ -47,7 +47,7 @@

Handlers with no endpoint

RequestHandler file

Entities

EntityDomain file
- + +