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

feat(microservices): implement preRequest message/event handler #8455

Closed
wants to merge 3 commits into from

Conversation

Ayzrian
Copy link
Contributor

@Ayzrian Ayzrian commented Oct 27, 2021

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?

Issue Number: #1627

What is the new behavior?

Added preRequest handler for such cases.

Does this PR introduce a breaking change?

  • Yes
  • [z] No

Other information

I am not really sure at the moment how I could test it and where I should write documentation for that, I wonder if someone could point me to the right direction?

@coveralls
Copy link

coveralls commented Oct 27, 2021

Pull Request Test Coverage Report for Build 3a1d49a7-0da4-4b79-8b2e-2e474bd6ab79

  • 3 of 9 (33.33%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.09%) to 94.083%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/microservices/listeners-controller.ts 3 9 33.33%
Totals Coverage Status
Change from base Build 0609ff1a-8205-4d48-96a6-2ced9594ef56: -0.09%
Covered Lines: 5661
Relevant Lines: 6017

💛 - Coveralls

@@ -29,4 +29,11 @@ export class NestApplicationContextOptions {
* @default true
*/
autoFlushLogs?: boolean;

/**
* @desc A token for a Class, that will be called per each message received
Copy link
Member

@micalevisk micalevisk Apr 12, 2022

Choose a reason for hiding this comment

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

Suggested change
* @desc A token for a Class, that will be called per each message received
* A token for a Class, that will be called per each message received

to keep consistent with the codebase

@xuzaixian
Copy link
Contributor

i wonder why this pr is closed?

@kamilmysliwiec
Copy link
Member

@xuzaixian This implementation has several downsides and doesn't provide functionalities & capabilities that are described in the original issue #1627

@nestjs nestjs locked and limited conversation to collaborators May 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants