Upgrade Hapi in legacy platform to v17#21707
Merged
joshdover merged 123 commits intoelastic:masterfrom Oct 25, 2018
Merged
Conversation
tylersmalley
reviewed
Aug 6, 2018
src/cli/serve/serve.js
Outdated
Member
There was a problem hiding this comment.
Oh yeah, this is all coming back to me. We need to get off our fork at bevacqua/even-better@4342ed5
Contributor
Author
There was a problem hiding this comment.
Yep, I got some good details from Court on this. Going to go with getting everything working and then re-implement the things that depend on good with either a new version or something else.
0b69ffe to
2c37a8f
Compare
b828db2 to
4bff36c
Compare
Contributor
💔 Build Failed |
Contributor
💔 Build Failed |
Contributor
💔 Build Failed |
Contributor
💔 Build Failed |
Contributor
💚 Build Succeeded |
This was referenced Oct 25, 2018
sorenlouv
reviewed
Oct 30, 2018
| console.error(err.stack); | ||
| // @ts-ignore | ||
| reply(Boom.wrap(err, err.statusCode || 400)); | ||
| Boom.boomify(err, { statusCode: err.statusCode || 400 }); |
Contributor
There was a problem hiding this comment.
@joshdover Minor thing: this should be returned or thrown. We've created an issue for it here: #24844
We'll fix the APM instances (if there are more) but just a heads up if this is also the case for other plugins.
14 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #13802
Fixes #21140
Summary of changes
replycallbackserver.authcallsfailActionhandler that returns errors similar to Hapi v14Risks
As with any major upgrade, this PR has risks for breakage across the entire application. While I have made sure to pay attention to all these areas, it's possible I've missed things. Areas we may want to focus on in QA:
Potential Areas for Improvement
failActionhandler. This means that any tests that don't set up their test server with this handler will not have the same validation responses as the real environment does. It would be a nice improvement if we had a single test server fixture that we used everywhere.Release notes
release-note: The Hapi framework has been upgraded from v14.2.0 to v17.5.3. There are a number of breaking changes affecting plugins that register custom backend routes. The
replycallback interface for supplying responses has been replaced with an async/await interface and a response toolkit. More details in the Hapi upgrade guideDev Docs
Upgraded Hapi framework for plugin backend endpoints
The Hapi framework has been upgraded from v14.2.0 to v17.5.3. There are a number of breaking changes affecting plugins that register custom bacekend routes. This does not affect plugins that do not have backend routes.
The
replycallback interface for supplying responses has been replaced with an async/await interface and a "response toolkit". Example:Before 6.5
After 6.5
More details can be found in the Hapi upgrade guide.