Skip to content

[7.9] [Ingest Manager] Ensure at least default Error handling on all routes (#77975)#78088

Merged
jfsiii merged 3 commits intoelastic:7.9from
jfsiii:backport/7.9/pr-77975
Sep 22, 2020
Merged

[7.9] [Ingest Manager] Ensure at least default Error handling on all routes (#77975)#78088
jfsiii merged 3 commits intoelastic:7.9from
jfsiii:backport/7.9/pr-77975

Conversation

@jfsiii
Copy link
Copy Markdown
Contributor

@jfsiii jfsiii commented Sep 21, 2020

Backports the following commits to 7.9:

…#77975)

* res.customError -> defaultIngestErrorHandler

* Missed a variable rename in prior commit

* copying an invalid policy will 404; not 500

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/ingest_manager/server/routes/agent/acks_handlers.ts
#	x-pack/plugins/ingest_manager/server/routes/agent/handlers.ts
#	x-pack/plugins/ingest_manager/server/routes/agent_policy/handlers.ts
#	x-pack/plugins/ingest_manager/server/routes/package_policy/handlers.ts
#	x-pack/plugins/ingest_manager/server/routes/settings/index.ts
#	x-pack/test/ingest_manager_api_integration/apis/agent_policy/agent_policy.ts
@jfsiii jfsiii added the backport This PR is a backport of another PR label Sep 21, 2020
@jfsiii
Copy link
Copy Markdown
Contributor Author

jfsiii commented Sep 21, 2020

More came in here than expected. I'll look more closely soon and fix

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jfsiii jfsiii merged commit 0455c2d into elastic:7.9 Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants