Repository navigation
Add Source metadata support to Mediator and Consumer descriptions - #10063
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds SourceMetadata propagation to various runtime Describe() outputs (messages, consumers, sagas, mediator handlers) so diagnostic/visualization descriptions can include declaration/source information, and updates/extends tests and snapshots accordingly.
Changes:
- Add
SourceMetadata? Sourceto multiple*Descriptionrecord types and populate it from configuration inDescribe()implementations. - Implement saga-consumer fallback behavior so
Consumer.Describe()can use the saga’s source when the consumer has none. - Add focused tests asserting
Sourceis present when configured, and update existing snapshots to include"Source": null.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Mocha/test/Mocha.Tests/MessageTypes/MessageTypeTests.cs | Adds a test for message type Describe() returning configured Source. |
| src/Mocha/test/Mocha.Tests/Consumers/ConsumerBehaviorTests.cs | Adds a test for consumer Describe() returning configured Source. |
| src/Mocha/test/Mocha.Tests/Consumers/snapshots/ConsumerBehaviorTests.Describe_Should_ReturnConsumerDescription_When_EventHandlerRegistered.snap | Updates snapshot to include Source: null. |
| src/Mocha/test/Mocha.Sagas.Tests/SagaInitializationTests.cs | Adds tests for saga Describe() source and saga-consumer source fallback. |
| src/Mocha/test/Mocha.Mediator.Tests/MediatorDescriptionTests.cs | Adds a test for mediator handler descriptions returning configured Source. |
| src/Mocha/test/Mocha.Mediator.Tests/snapshots/MediatorDescriptionTests.Describe_Should_ReturnMediatorDescription_When_HandlersRegistered.snap | Updates snapshot to include Source: null per handler. |
| src/Mocha/src/Mocha/Sagas/SagaEventListener.cs | Adds consumer description source fallback to saga source. |
| src/Mocha/src/Mocha/Sagas/Saga.cs | Adds saga description Source population from saga configuration. |
| src/Mocha/src/Mocha/MessageTypes/MessageType.cs | Adds message type description Source population. |
| src/Mocha/src/Mocha/Descriptions/SagaDescription.cs | Extends SagaDescription with Source. |
| src/Mocha/src/Mocha/Descriptions/MessageTypeDescription.cs | Extends MessageTypeDescription with Source. |
| src/Mocha/src/Mocha/Descriptions/ConsumerDescription.cs | Extends ConsumerDescription with Source. |
| src/Mocha/src/Mocha/Consumers/Implementations/BatchConsumer.cs | Adds Source to batch consumer description output. |
| src/Mocha/src/Mocha/Consumers/Consumer.cs | Adds Source to base consumer description output. |
| src/Mocha/src/Mocha.Mediator/Descriptions/MediatorHandlerDescription.cs | Extends MediatorHandlerDescription with Source. |
| src/Mocha/src/Mocha.Mediator/DependencyInjection/MediatorBuilder.cs | Populates mediator handler description Source from handler config. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Jul 13, 2026
This was referenced Jul 20, 2026
chore(deps): Bump HotChocolate.Subscriptions.InMemory from 15.1.14 to 16.5.1
Kuestenlogik/Bowire#506
Merged
This was referenced Aug 1, 2026
This was referenced Sep 1, 2026
Closed
This was referenced Sep 15, 2026
Closed
[nuget][SUI_Matcher]- Bump the sui-package-updates group with 20 updates
DFE-Digital/SUI_Matcher#405
Closed
This was referenced Sep 22, 2026
Closed
Closed
[nuget][SUI_Matcher]- Bump the sui-package-updates group with 20 updates
DFE-Digital/SUI_Matcher#410
Merged
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.