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(admin,router,hermes,grpc-sdk,core): middleware patch support #614

Merged
merged 8 commits into from
May 8, 2023

Conversation

ChrisPdgn
Copy link
Contributor

This PR introduces the feature of patching the middleware array of a grpc route. This applies for admin and app routes. Middleware order can be changed freely, but removal is allowed only to the module that registered the middleware.

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other (please describe)

Does this PR introduce a breaking change?

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the main branch
  • When resolving a specific issue, it's referenced in the PR's description (e.g. fix #xxx, where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature

modules/router/src/Router.ts Outdated Show resolved Hide resolved
modules/router/src/Router.ts Outdated Show resolved Hide resolved
modules/router/src/Router.ts Show resolved Hide resolved
modules/router/src/admin/index.ts Show resolved Hide resolved
modules/router/src/admin/index.ts Show resolved Hide resolved
modules/router/src/admin/router.ts Show resolved Hide resolved
@ChrisPdgn ChrisPdgn requested a review from kon14 May 5, 2023 10:20
Copy link
Contributor

@kon14 kon14 left a comment

Choose a reason for hiding this comment

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

Just a couple leftovers.

libraries/hermes/src/Router.ts Outdated Show resolved Hide resolved
libraries/hermes/src/index.ts Outdated Show resolved Hide resolved
@ChrisPdgn ChrisPdgn requested a review from kon14 May 8, 2023 08:40
@kkopanidis kkopanidis merged commit 8d19469 into main May 8, 2023
2 checks passed
@kkopanidis kkopanidis deleted the middleware-merge branch May 8, 2023 09:17
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.

None yet

3 participants