-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Misc. typos #1740
chore: Misc. typos #1740
Conversation
📝 WalkthroughWalkthroughThe pull request introduces various textual corrections across multiple files in the Dialogporten project. Key changes include correcting the spelling of "occured" to "occurred," adjusting hyphenation in phrases such as "up-to-date" to "up to date," and refining error messages for consistency. Additionally, property names have been updated to improve clarity, such as changing Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (5)
⏰ Context from checks skipped due to timeout of 90000ms (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
🧹 Nitpick comments (1)
src/Digdir.Domain.Dialogporten.Domain/Common/EventPublisher/IDomainEvent.cs (1)
18-20
: LGTM! Consider tracking the deprecation.Good approach making the property nullable and adding clear documentation about the planned removal.
Would you like me to help create an issue to track the removal of this property once all message bus references are cleared?
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Events/AltinnForwarders/DialogActivityEventToAltinnForwarder.cs
(1 hunks)src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Events/AltinnForwarders/DialogEventToAltinnForwarder.cs
(4 hunks)src/Digdir.Domain.Dialogporten.Domain/Common/DomainEvents/DomainEvent.cs
(1 hunks)src/Digdir.Domain.Dialogporten.Domain/Common/EventPublisher/IDomainEvent.cs
(1 hunks)src/Digdir.Domain.Dialogporten.Domain/Outboxes/OutboxMessage.cs
(1 hunks)src/Digdir.Domain.Dialogporten.Infrastructure/Persistence/Interceptors/ConvertDomainEventsToOutboxMessagesInterceptor.cs
(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- src/Digdir.Domain.Dialogporten.Infrastructure/Persistence/Interceptors/ConvertDomainEventsToOutboxMessagesInterceptor.cs
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build / build-and-test
🔇 Additional comments (1)
src/Digdir.Domain.Dialogporten.Domain/Common/EventPublisher/IDomainEvent.cs (1)
22-25
: LGTM! Verify consumer updates.The new property is well-documented and correctly typed.
Let's verify that consumers are updated to use the new property:
✅ Verification successful
Migration strategy for OccurredAt property is properly implemented
The codebase shows a well-thought-out transition:
- Old property is maintained for message bus compatibility
- Consumers handle both properties with proper fallback
- New code correctly sets the new property
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for any remaining direct usage of OccuredAt rg -l "OccuredAt" --type cs # Search for places where OccurredAt is used to ensure proper migration rg -l "OccurredAt" --type csLength of output: 1027
Script:
#!/bin/bash # Check actual usage context of both spellings echo "=== Checking OccuredAt usage ===" rg "OccuredAt" --type cs -C 2 echo -e "\n=== Checking OccurredAt usage ===" rg "OccurredAt" --type cs -C 2Length of output: 12662
src/Digdir.Domain.Dialogporten.Domain/Common/DomainEvents/DomainEvent.cs
Outdated
Show resolved
Hide resolved
src/Digdir.Domain.Dialogporten.Domain/Outboxes/OutboxMessage.cs
Outdated
Show resolved
Hide resolved
...plication/Features/V1/Common/Events/AltinnForwarders/DialogActivityEventToAltinnForwarder.cs
Outdated
Show resolved
Hide resolved
...orten.Application/Features/V1/Common/Events/AltinnForwarders/DialogEventToAltinnForwarder.cs
Outdated
Show resolved
Hide resolved
🤖 I have created a release *beep* *boop* --- ## [1.47.4](v1.47.3...v1.47.4) (2025-01-29) ### Miscellaneous Chores * **deps:** update dependency coverlet.collector to 6.0.4 ([#1750](#1750)) ([7d8bb26](7d8bb26)) * **deps:** update dependency vitest to v3.0.3 ([#1748](#1748)) ([6ee8d28](6ee8d28)) * **deps:** update otel/opentelemetry-collector-contrib docker tag to v0.118.0 ([#1751](#1751)) ([2e3ae4d](2e3ae4d)) * Misc. typos ([#1740](#1740)) ([d83c7a0](d83c7a0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This changes a domain event property name
There might be events in the db/on the bus with the old property name at the time of deployment, so for a time we need to check for both.
When we are certain there are no events with the old name left, we can remove the old property (and the nullability)