-
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
[Ingest Manager] Create default Error handler. Use on /setup & EPM routes #74409
Conversation
@elasticmachine merge upstream |
merge conflict between base and head |
0c4d44a
to
cefb62c
Compare
Pinging @elastic/ingest-management (Team:Ingest Management) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
1019605
to
d7ad578
Compare
0ca52aa
to
b94cd78
Compare
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
…utes (#74409) (#76770) * Add default Error handler. Try on /*setup & /epm/* * Add return type. Rename interface * Export error handler type & add comments * use default error handler in installPackageHandler * (re)-add comment # Conflicts: # x-pack/plugins/ingest_manager/server/routes/epm/handlers.ts Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…utes (elastic#74409) (elastic#76770) * Add default Error handler. Try on /*setup & /epm/* * Add return type. Rename interface * Export error handler type & add comments * use default error handler in installPackageHandler * (re)-add comment # Conflicts: # x-pack/plugins/ingest_manager/server/routes/epm/handlers.ts Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Hi @jfsiii We have gone through the ticket and observed it required DEV_Validation to test the ticket . Please let us know if anything is missing from our end. |
Summary
defaultIngestErrorHandler
This adds an
IngestErrorHandler
type/function. It has same output as aRequestHandler
and its inputs are the 3RequestHandler
inputs +error
.It maps an
Error
andResponseFactory
to anIKibanaResponse
. Now the handlers look roughly like:I've started with
defaultIngestErrorHandler
and we can add different Error handlers when/if needed.Checklist
POST /setup
case didn't regress, but I'm not sure what additional tests we want.I'll addtests to confirmdefaultIngestErrorHandler
behaves as advertised