Skip to content

Fixes DefaultMapper & SNS/SQS Publish#3488

Merged
iancooper merged 3 commits into
BrighterCommand:masterfrom
lillo42:fixes.error.default.mapper
Jan 20, 2025
Merged

Fixes DefaultMapper & SNS/SQS Publish#3488
iancooper merged 3 commits into
BrighterCommand:masterfrom
lillo42:fixes.error.default.mapper

Conversation

@lillo42

@lillo42 lillo42 commented Jan 20, 2025

Copy link
Copy Markdown
Contributor

Fixes #3486:

  • the DefaultMapper resolver
  • SNS/SQS publish when CorrelationID is not provided
  • The AWS Sample wasn't working

@lillo42 lillo42 marked this pull request as ready for review January 20, 2025 15:24

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Health Quality Gates: OK

Change in average Code Health of affected files: -0.01 (9.68 -> 9.67)

View detailed results in CodeScene

Comment on lines +103 to +108

if (!string.IsNullOrEmpty(message.Header.CorrelationId))
{
messageAttributes.Add(HeaderNames.CorrelationId,
new MessageAttributeValue { StringValue = message.Header.CorrelationId, DataType = "String" });
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ Getting worse: Complex Method
SendAsync increases in cyclomatic complexity from 9 to 10, threshold = 9

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Health Quality Gates: OK

Change in average Code Health of affected files: -0.01 (9.68 -> 9.67)

View detailed results in CodeScene

Comment thread src/Paramore.Brighter/MessageMapperRegistry.cs

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.00 (9.67 -> 9.67)

View detailed results in CodeScene

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Error when using the Default Mapper to publish a message

2 participants