[Ingest Manager] Create default Error handler. Use on /setup & EPM routes#74409
Merged
jfsiii merged 5 commits intoelastic:masterfrom Sep 4, 2020
jfsiii:ingest-default-error-handler
Merged
[Ingest Manager] Create default Error handler. Use on /setup & EPM routes#74409jfsiii merged 5 commits intoelastic:masterfrom jfsiii:ingest-default-error-handler
jfsiii merged 5 commits intoelastic:masterfrom
jfsiii:ingest-default-error-handler
Conversation
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
|
merge conflict between base and head |
Contributor
|
Pinging @elastic/ingest-management (Team:Ingest Management) |
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
Author
|
@elasticmachine merge upstream |
2 similar comments
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
Author
|
@elasticmachine merge upstream |
1 task
skh
reviewed
Sep 3, 2020
skh
reviewed
Sep 3, 2020
jfsiii
commented
Sep 3, 2020
jfsiii
commented
Sep 3, 2020
Contributor
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
skh
approved these changes
Sep 4, 2020
This was referenced Sep 4, 2020
Merged
Contributor
|
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. |
jfsiii
pushed a commit
that referenced
this pull request
Sep 8, 2020
…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>
dgieselaar
pushed a commit
to dgieselaar/kibana
that referenced
this pull request
Sep 9, 2020
…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. |
6 tasks
This was referenced Oct 1, 2020
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.
Summary
defaultIngestErrorHandlerThis adds an
IngestErrorHandlertype/function. It has same output as aRequestHandlerand its inputs are the 3RequestHandlerinputs +error.It maps an
ErrorandResponseFactoryto anIKibanaResponse. Now the handlers look roughly like:I've started with
defaultIngestErrorHandlerand we can add different Error handlers when/if needed.Checklist
POST /setupcase didn't regress, but I'm not sure what additional tests we want.I'll addtests to confirmdefaultIngestErrorHandlerbehaves as advertised