Skip to content

Harden calendar auto-sync event dedupe - #156

Merged
thomasluizon merged 1 commit into
mainfrom
fix/calendar-sync-dedupe-cleanup
Apr 16, 2026
Merged

Harden calendar auto-sync event dedupe#156
thomasluizon merged 1 commit into
mainfrom
fix/calendar-sync-dedupe-cleanup

Conversation

@thomasluizon

Copy link
Copy Markdown
Owner

Summary

  • dedupe fetched Google Calendar event ids before processing auto-sync
  • reserve event ids during reconciliation and suggestion creation to avoid duplicate assignments in the same sync pass
  • add regression coverage for duplicate fetched event ids and clean a duplicate test using

Testing

  • dotnet test C:\orbit-api\tests\Orbit.Application.Tests\Orbit.Application.Tests.csproj --filter "FullyQualifiedNameRunCalendarAutoSyncCommandHandlerTests|FullyQualifiedNameGetCalendarEventsQueryHandlerTests"
  • dotnet test C:\orbit-api\tests\Orbit.Infrastructure.Tests\Orbit.Infrastructure.Tests.csproj --filter FullyQualifiedName~DistributedRateLimitServiceTests

@thomasluizon
thomasluizon merged commit 5f215c8 into main Apr 16, 2026
3 checks passed
@thomasluizon
thomasluizon deleted the fix/calendar-sync-dedupe-cleanup branch April 16, 2026 14:38
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant