-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[HTTP] Expose versioned router #153858
Merged
+397
−141
Merged
[HTTP] Expose versioned router #153858
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
cfd23a7
moved ApiVersion type to common http package
jloleysens 5a41847
runtime check for version number
jloleysens 52b25b9
rename shared version header constant, added test for passing through…
jloleysens ffa9f66
move route validator to own package so that it can be shared
jloleysens ba1a3a1
ran yarn kbn bootstrap
jloleysens 9d7506d
import route validator from new package
jloleysens 2db39e1
remove dependence on core internal router
jloleysens 8af51c5
pointless change to tsconfig.json
jloleysens f937521
remove dependence on core internal router
jloleysens 6f01b5c
fix mock response factory
jloleysens 25d6249
added versioned router mocks
jloleysens 983596b
ran yarn kbn bootstrap
jloleysens ce98092
added versioned router mock
jloleysens b8c694e
merge imports from same package
jloleysens 1364c7a
expose the versioned router on the IRouter interface
jloleysens b98044b
added an example and removed auto return type inference
jloleysens 02f330d
fix output validation by actually passing in the response :facepalm: …
jloleysens 7b88ded
just use the const
jloleysens f67e2d5
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine a27e49f
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine 3ad27c0
remove circular dep
jloleysens d9d05d5
added IRouterWithVersion to address type woes
jloleysens e75ed38
Merge branch 'main' into expose-versioned-router
jloleysens ab53f28
make default for checking responses false and update tests
jloleysens 9665928
make body, param, query nullable
jloleysens 37cef77
added some integration tests for the versioned router
jloleysens e0538cf
mock out badRequest
jloleysens 435b26f
Merge branch 'main' into expose-versioned-router
jloleysens 047dfce
Merge branch 'main' into expose-versioned-router
jloleysens 1fff686
do better than any
jloleysens a3fd786
remove inline class def
jloleysens 5635219
factor out route version validation logic
jloleysens e6e8eed
added validation function
jloleysens 03ab1b9
added test and fixed logic
jloleysens 9a3e7c7
added integration test case for missing version header
jloleysens 42ed016
fix typo
jloleysens 6a67877
Merge branch 'main' into expose-versioned-router
jloleysens fa60493
move versioned router mock
jloleysens f2a532b
update exports and use the versioned router mock
jloleysens 3ddc635
move versioned router implementation
jloleysens 3489693
remove the validator package
jloleysens ca0c431
update a few import paths and ts config references
jloleysens 3ea8c48
remove ts project reference
jloleysens 41df80c
go back to using actual CoreKibanaRequest!
jloleysens 154821a
ran yarn kbn bootstrap
jloleysens 40fd5e1
remove 3 unnecessary code owners entries
jloleysens 3d51eec
remove unnecessary default
jloleysens 5388234
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine e723e06
change the version missing response
jloleysens df0211a
Merge branch 'main' into expose-versioned-router
jloleysens 2c5c840
Merge branch 'main' into expose-versioned-router
jloleysens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the implementation for exposing the versioned router
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on recent discussions around architectural complexity specifically related to core's packages footprint, perhaps we should move the versioned router into the main
core-http-router-server-internal
package.