Return import errors for saved objects referencing a missing index pattern or search (#33005) (#33277)

* cherry-pick fd2bc9b

* Return errors when objects are missing references

* Fix import tslint

* Fix failing jest tests

* Fix x-pack integration tests

* Rename ensureReferencesExist to validateReferences

* Fix test naming to use validateReferences

* Update resolve_import_errors API to reflect new type attribute

* Validate references for search type as well

* Clarify comment

* Apply PR feedback

* Modify saved object bulkGet to be able to filter fields

* Apply PR feedback
This commit is contained in:
Mike Côté 2019-03-14 21:28:14 -04:00 committed by GitHub
parent c1e28581d4
commit 17f2f23f11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 854 additions and 43 deletions

View file

@ -23,6 +23,9 @@ contains the following properties:
`id` (required)::
(string) ID of object to retrieve
`fields` (optional)::
(array) The fields to return in the object's response
==== Response body
The response body will have a top level `saved_objects` property that contains