Skip to content
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

fix(microservices): include discarded rmq client options #14059

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

v-sum
Copy link

@v-sum v-sum commented Oct 8, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Configuration properties were being discarded upon rmqClient creation.
All other properties, beside 'connectionOptions', from the this.options.socketOptions object ( of type AmqpConnectionManagerSocketOptions ) were being discarded on the creation of the AmqpConnectionManager client
See:
https://github.com/nestjs/nest/blob/master/packages/microservices/external/rmq-url.interface.ts#L47 https://github.com/jwalton/node-amqp-connection-manager/blob/v4.1.14/src/AmqpConnectionManager.ts#L46

Issue Number: #5788 (comment)

What is the new behavior?

The other properties from the socketOptions key will now be included ( if present ) when the rmqClient is created

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

all other properties, beside 'connectionOptions', from the socketOptions object ( of type AmqpConnectionManagerSocketOptions )
were being discarded on the creation of the AmqpConnectionManager client
https://github.com/nestjs/nest/blob/master/packages/microservices/external/rmq-url.interface.ts#L47
https://github.com/jwalton/node-amqp-connection-manager/blob/v4.1.14/src/AmqpConnectionManager.ts#L46

nestjs#5788 (comment)
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5b2ae6c7-8738-41b7-8f07-24005283a5d9

Details

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.213%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/microservices/client/client-rmq.ts 0 1 0.0%
Totals Coverage Status
Change from base Build 607f026c-38fd-456a-8156-82c04b58e80e: 0.0%
Covered Lines: 6750
Relevant Lines: 7320

💛 - Coveralls

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.

2 participants