-
Notifications
You must be signed in to change notification settings - Fork 120
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: reverse http handler calling order #1227
Merged
Merged
Conversation
This file contains 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
0utplay
added
v: 4.X
This pull should be included in the 4.0 release
in: driver
An issue/pull request releated to the driver module code
t: fix
A pull request introducing a fix for a bug.
in: module
An issue/pull request releated to one of the internal modules
labels
May 14, 2023
Test Results 47 files ±0 47 suites ±0 1m 11s ⏱️ -5s Results for commit c176679. ± Comparison against base commit 05236d2. This pull request removes 12 and adds 12 tests. Note that renamed tests count towards both.
|
derklaro
approved these changes
May 16, 2023
derklaro
pushed a commit
that referenced
this pull request
May 16, 2023
#1228) ### Motivation The bridge rest handler has routes that can collide in some situations. To prevent that we have to set a higher priority on the literal only routes. ### Modification Set a high priority on literal only routes to prevent collisions. ### Result No collisions on bridge rest routes. ##### Other context Waits for #1227 Fixes #1226
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: driver
An issue/pull request releated to the driver module code
in: module
An issue/pull request releated to one of the internal modules
t: fix
A pull request introducing a fix for a bug.
v: 4.X
This pull should be included in the 4.0 release
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.
Motivation
The priority is documented as
Handlers with a high priority will get called before handlers with a low priority.
But the current implementation does not follow that documentation therefore we need to reverse the comparator to achieve a correct call chain.Modification
Reversed the sorting comperator and inverted the priority in the test cases and the in the node rest handler to ensure that no behavior changes.
Result
The call chain is as documented