ContextSetup
| [ContextSetup](./kibana-plugin-server.contextsetup.md) |
| [elasticsearch](./kibana-plugin-server.coresetup.elasticsearch.md) | ElasticsearchServiceSetup
| [ElasticsearchServiceSetup](./kibana-plugin-server.elasticsearchservicesetup.md) |
| [http](./kibana-plugin-server.coresetup.http.md) | HttpServiceSetup
| [HttpServiceSetup](./kibana-plugin-server.httpservicesetup.md) |
+| [savedObjects](./kibana-plugin-server.coresetup.savedobjects.md) | SavedObjectsServiceSetup
| [SavedObjectsServiceSetup](./kibana-plugin-server.savedobjectsservicesetup.md) |
| [uiSettings](./kibana-plugin-server.coresetup.uisettings.md) | UiSettingsServiceSetup
| [UiSettingsServiceSetup](./kibana-plugin-server.uisettingsservicesetup.md) |
diff --git a/docs/development/core/server/kibana-plugin-server.coresetup.savedobjects.md b/docs/development/core/server/kibana-plugin-server.coresetup.savedobjects.md
new file mode 100644
index 00000000000000..96acc1ffce1944
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.coresetup.savedobjects.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [CoreSetup](./kibana-plugin-server.coresetup.md) > [savedObjects](./kibana-plugin-server.coresetup.savedobjects.md)
+
+## CoreSetup.savedObjects property
+
+[SavedObjectsServiceSetup](./kibana-plugin-server.savedobjectsservicesetup.md)
+
+Signature:
+
+```typescript
+savedObjects: SavedObjectsServiceSetup;
+```
diff --git a/docs/development/core/server/kibana-plugin-server.corestart.md b/docs/development/core/server/kibana-plugin-server.corestart.md
index da80ae8be93afc..a675c45a298201 100644
--- a/docs/development/core/server/kibana-plugin-server.corestart.md
+++ b/docs/development/core/server/kibana-plugin-server.corestart.md
@@ -11,3 +11,10 @@ Context passed to the plugins `start` method.
```typescript
export interface CoreStart
```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [savedObjects](./kibana-plugin-server.corestart.savedobjects.md) | SavedObjectsServiceStart
| [SavedObjectsServiceStart](./kibana-plugin-server.savedobjectsservicestart.md) |
+
diff --git a/docs/development/core/server/kibana-plugin-server.corestart.savedobjects.md b/docs/development/core/server/kibana-plugin-server.corestart.savedobjects.md
new file mode 100644
index 00000000000000..531b04e9eed07a
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.corestart.savedobjects.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [CoreStart](./kibana-plugin-server.corestart.md) > [savedObjects](./kibana-plugin-server.corestart.savedobjects.md)
+
+## CoreStart.savedObjects property
+
+[SavedObjectsServiceStart](./kibana-plugin-server.savedobjectsservicestart.md)
+
+Signature:
+
+```typescript
+savedObjects: SavedObjectsServiceStart;
+```
diff --git a/docs/development/core/server/kibana-plugin-server.isavedobjectsrepository.md b/docs/development/core/server/kibana-plugin-server.isavedobjectsrepository.md
new file mode 100644
index 00000000000000..7863d1b0ca49dd
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.isavedobjectsrepository.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [ISavedObjectsRepository](./kibana-plugin-server.isavedobjectsrepository.md)
+
+## ISavedObjectsRepository type
+
+See [SavedObjectsRepository](./kibana-plugin-server.savedobjectsrepository.md)
+
+Signature:
+
+```typescript
+export declare type ISavedObjectsRepository = PickClusterClient
but exposes additional callAsCurrentUser
method that doesn't use credentials of the Kibana internal user (as callAsInternalUser
does) to request Elasticsearch API, but rather passes HTTP headers extracted from the current user request to the API.See [ScopedClusterClient](./kibana-plugin-server.scopedclusterclient.md). |
## Enumerations
@@ -96,6 +97,7 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [SavedObjectsClientProviderOptions](./kibana-plugin-server.savedobjectsclientprovideroptions.md) | Options to control the creation of the Saved Objects Client. |
| [SavedObjectsClientWrapperOptions](./kibana-plugin-server.savedobjectsclientwrapperoptions.md) | Options passed to each SavedObjectsClientWrapperFactory to aid in creating the wrapper instance. |
| [SavedObjectsCreateOptions](./kibana-plugin-server.savedobjectscreateoptions.md) | |
+| [SavedObjectsDeleteByNamespaceOptions](./kibana-plugin-server.savedobjectsdeletebynamespaceoptions.md) | |
| [SavedObjectsDeleteOptions](./kibana-plugin-server.savedobjectsdeleteoptions.md) | |
| [SavedObjectsExportOptions](./kibana-plugin-server.savedobjectsexportoptions.md) | Options controlling the export operation. |
| [SavedObjectsExportResultDetails](./kibana-plugin-server.savedobjectsexportresultdetails.md) | Structure of the export result details entry |
@@ -109,12 +111,16 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [SavedObjectsImportRetry](./kibana-plugin-server.savedobjectsimportretry.md) | Describes a retry operation for importing a saved object. |
| [SavedObjectsImportUnknownError](./kibana-plugin-server.savedobjectsimportunknownerror.md) | Represents a failure to import due to an unknown reason. |
| [SavedObjectsImportUnsupportedTypeError](./kibana-plugin-server.savedobjectsimportunsupportedtypeerror.md) | Represents a failure to import due to having an unsupported saved object type. |
+| [SavedObjectsIncrementCounterOptions](./kibana-plugin-server.savedobjectsincrementcounteroptions.md) | |
| [SavedObjectsMigrationLogger](./kibana-plugin-server.savedobjectsmigrationlogger.md) | |
| [SavedObjectsMigrationVersion](./kibana-plugin-server.savedobjectsmigrationversion.md) | Information about the migrations that have been applied to this SavedObject. When Kibana starts up, KibanaMigrator detects outdated documents and migrates them based on this value. For each migration that has been applied, the plugin's name is used as a key and the latest migration version as the value. |
| [SavedObjectsRawDoc](./kibana-plugin-server.savedobjectsrawdoc.md) | A raw document as represented directly in the saved object index. |
| [SavedObjectsResolveImportErrorsOptions](./kibana-plugin-server.savedobjectsresolveimporterrorsoptions.md) | Options to control the "resolve import" operation. |
+| [SavedObjectsServiceSetup](./kibana-plugin-server.savedobjectsservicesetup.md) | Saved Objects is Kibana's data persisentence mechanism allowing plugins to use Elasticsearch for storing and querying state. The SavedObjectsServiceSetup API exposes methods for creating and registering Saved Object client wrappers. |
+| [SavedObjectsServiceStart](./kibana-plugin-server.savedobjectsservicestart.md) | Saved Objects is Kibana's data persisentence mechanism allowing plugins to use Elasticsearch for storing and querying state. The SavedObjectsServiceStart API provides a scoped Saved Objects client for interacting with Saved Objects. |
| [SavedObjectsUpdateOptions](./kibana-plugin-server.savedobjectsupdateoptions.md) | |
| [SavedObjectsUpdateResponse](./kibana-plugin-server.savedobjectsupdateresponse.md) | |
+| [SessionCookieValidationResult](./kibana-plugin-server.sessioncookievalidationresult.md) | Return type from a function to validate cookie contents. |
| [SessionStorage](./kibana-plugin-server.sessionstorage.md) | Provides an interface to store and retrieve data across requests. |
| [SessionStorageCookieOptions](./kibana-plugin-server.sessionstoragecookieoptions.md) | Configuration used to create HTTP session storage based on top of cookie mechanism. |
| [SessionStorageFactory](./kibana-plugin-server.sessionstoragefactory.md) | SessionStorage factory to bind one to an incoming request |
@@ -148,6 +154,7 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [IClusterClient](./kibana-plugin-server.iclusterclient.md) | Represents an Elasticsearch cluster API client and allows to call API on behalf of the internal Kibana user and the actual user that is derived from the request headers (via asScoped(...)
).See [ClusterClient](./kibana-plugin-server.clusterclient.md). |
| [IContextProvider](./kibana-plugin-server.icontextprovider.md) | A function that returns a context value for a specific key of given context type. |
| [IsAuthenticated](./kibana-plugin-server.isauthenticated.md) | Return authentication status for a request. |
+| [ISavedObjectsRepository](./kibana-plugin-server.isavedobjectsrepository.md) | See [SavedObjectsRepository](./kibana-plugin-server.savedobjectsrepository.md) |
| [IScopedClusterClient](./kibana-plugin-server.iscopedclusterclient.md) | Serves the same purpose as "normal" ClusterClient
but exposes additional callAsCurrentUser
method that doesn't use credentials of the Kibana internal user (as callAsInternalUser
does) to request Elasticsearch API, but rather passes HTTP headers extracted from the current user request to the API.See [ScopedClusterClient](./kibana-plugin-server.scopedclusterclient.md). |
| [KibanaResponseFactory](./kibana-plugin-server.kibanaresponsefactory.md) | Creates an object containing request response payload, HTTP headers, error details, and other data transmitted to the client. |
| [KnownHeaders](./kibana-plugin-server.knownheaders.md) | Set of well-known HTTP headers. |
@@ -174,6 +181,7 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [SavedObjectAttribute](./kibana-plugin-server.savedobjectattribute.md) | Type definition for a Saved Object attribute value |
| [SavedObjectAttributeSingle](./kibana-plugin-server.savedobjectattributesingle.md) | Don't use this type, it's simply a helper type for [SavedObjectAttribute](./kibana-plugin-server.savedobjectattribute.md) |
| [SavedObjectsClientContract](./kibana-plugin-server.savedobjectsclientcontract.md) | Saved Objects is Kibana's data persisentence mechanism allowing plugins to use Elasticsearch for storing plugin state.\#\# SavedObjectsClient errorsSince the SavedObjectsClient has its hands in everything we are a little paranoid about the way we present errors back to to application code. Ideally, all errors will be either:1. Caused by bad implementation (ie. undefined is not a function) and as such unpredictable 2. An error that has been classified and decorated appropriately by the decorators in [SavedObjectsErrorHelpers](./kibana-plugin-server.savedobjectserrorhelpers.md)Type 1 errors are inevitable, but since all expected/handle-able errors should be Type 2 the isXYZError()
helpers exposed at SavedObjectsErrorHelpers
should be used to understand and manage error responses from the SavedObjectsClient
.Type 2 errors are decorated versions of the source error, so if the elasticsearch client threw an error it will be decorated based on its type. That means that rather than looking for error.body.error.type
or doing substring checks on error.body.error.reason
, just use the helpers to understand the meaning of the error:\`\`\`js if (SavedObjectsErrorHelpers.isNotFoundError(error)) { // handle 404 }if (SavedObjectsErrorHelpers.isNotAuthorizedError(error)) { // 401 handling should be automatic, but in case you wanted to know }// always rethrow the error unless you handle it throw error; \`\`\`\#\#\# 404s from missing indexFrom the perspective of application code and APIs the SavedObjectsClient is a black box that persists objects. One of the internal details that users have no control over is that we use an elasticsearch index for persistance and that index might be missing.At the time of writing we are in the process of transitioning away from the operating assumption that the SavedObjects index is always available. Part of this transition is handling errors resulting from an index missing. These used to trigger a 500 error in most cases, and in others cause 404s with different error messages.From my (Spencer) perspective, a 404 from the SavedObjectsApi is a 404; The object the request/call was targeting could not be found. This is why \#14141 takes special care to ensure that 404 errors are generic and don't distinguish between index missing or document missing.\#\#\# 503s from missing indexUnlike all other methods, create requests are supposed to succeed even when the Kibana index does not exist because it will be automatically created by elasticsearch. When that is not the case it is because Elasticsearch's action.auto_create_index
setting prevents it from being created automatically so we throw a special 503 with the intention of informing the user that their Elasticsearch settings need to be updated.See [SavedObjectsClient](./kibana-plugin-server.savedobjectsclient.md) See [SavedObjectsErrorHelpers](./kibana-plugin-server.savedobjectserrorhelpers.md) |
+| [SavedObjectsClientFactory](./kibana-plugin-server.savedobjectsclientfactory.md) | Describes the factory used to create instances of the Saved Objects Client. |
| [SavedObjectsClientWrapperFactory](./kibana-plugin-server.savedobjectsclientwrapperfactory.md) | Describes the factory used to create instances of Saved Objects Client Wrappers. |
| [UiSettingsType](./kibana-plugin-server.uisettingstype.md) | UI element type to represent the settings. |
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsclient._constructor_.md b/docs/development/core/server/kibana-plugin-server.savedobjectsclient._constructor_.md
deleted file mode 100644
index 0bcca3ec57b546..00000000000000
--- a/docs/development/core/server/kibana-plugin-server.savedobjectsclient._constructor_.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsClient](./kibana-plugin-server.savedobjectsclient.md) > [(constructor)](./kibana-plugin-server.savedobjectsclient._constructor_.md)
-
-## SavedObjectsClient.(constructor)
-
-Constructs a new instance of the `SavedObjectsClient` class
-
-Signature:
-
-```typescript
-constructor(repository: SavedObjectsRepository);
-```
-
-## Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| repository | SavedObjectsRepository
| |
-
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsclient.md b/docs/development/core/server/kibana-plugin-server.savedobjectsclient.md
index cc00934a1e1fd5..17d29bb912c834 100644
--- a/docs/development/core/server/kibana-plugin-server.savedobjectsclient.md
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsclient.md
@@ -4,19 +4,12 @@
## SavedObjectsClient class
-
Signature:
```typescript
export declare class SavedObjectsClient
```
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(repository)](./kibana-plugin-server.savedobjectsclient._constructor_.md) | | Constructs a new instance of the SavedObjectsClient
class |
-
## Properties
| Property | Modifiers | Type | Description |
@@ -37,3 +30,7 @@ export declare class SavedObjectsClient
| [get(type, id, options)](./kibana-plugin-server.savedobjectsclient.get.md) | | Retrieves a single object |
| [update(type, id, attributes, options)](./kibana-plugin-server.savedobjectsclient.update.md) | | Updates an SavedObject |
+## Remarks
+
+The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `SavedObjectsClient` class.
+
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsclientfactory.md b/docs/development/core/server/kibana-plugin-server.savedobjectsclientfactory.md
new file mode 100644
index 00000000000000..9e307597206800
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsclientfactory.md
@@ -0,0 +1,15 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsClientFactory](./kibana-plugin-server.savedobjectsclientfactory.md)
+
+## SavedObjectsClientFactory type
+
+Describes the factory used to create instances of the Saved Objects Client.
+
+Signature:
+
+```typescript
+export declare type SavedObjectsClientFactoryMutatingOperationRefreshSetting
| The Elasticsearch Refresh setting for this operation |
+
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsdeletebynamespaceoptions.refresh.md b/docs/development/core/server/kibana-plugin-server.savedobjectsdeletebynamespaceoptions.refresh.md
new file mode 100644
index 00000000000000..2332520ac388fc
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsdeletebynamespaceoptions.refresh.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsDeleteByNamespaceOptions](./kibana-plugin-server.savedobjectsdeletebynamespaceoptions.md) > [refresh](./kibana-plugin-server.savedobjectsdeletebynamespaceoptions.refresh.md)
+
+## SavedObjectsDeleteByNamespaceOptions.refresh property
+
+The Elasticsearch Refresh setting for this operation
+
+Signature:
+
+```typescript
+refresh?: MutatingOperationRefreshSetting;
+```
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsincrementcounteroptions.md b/docs/development/core/server/kibana-plugin-server.savedobjectsincrementcounteroptions.md
new file mode 100644
index 00000000000000..38ee40157888f5
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsincrementcounteroptions.md
@@ -0,0 +1,20 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsIncrementCounterOptions](./kibana-plugin-server.savedobjectsincrementcounteroptions.md)
+
+## SavedObjectsIncrementCounterOptions interface
+
+
+Signature:
+
+```typescript
+export interface SavedObjectsIncrementCounterOptions extends SavedObjectsBaseOptions
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [migrationVersion](./kibana-plugin-server.savedobjectsincrementcounteroptions.migrationversion.md) | SavedObjectsMigrationVersion
| |
+| [refresh](./kibana-plugin-server.savedobjectsincrementcounteroptions.refresh.md) | MutatingOperationRefreshSetting
| The Elasticsearch Refresh setting for this operation |
+
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsincrementcounteroptions.migrationversion.md b/docs/development/core/server/kibana-plugin-server.savedobjectsincrementcounteroptions.migrationversion.md
new file mode 100644
index 00000000000000..3b80dea4fecde6
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsincrementcounteroptions.migrationversion.md
@@ -0,0 +1,11 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsIncrementCounterOptions](./kibana-plugin-server.savedobjectsincrementcounteroptions.md) > [migrationVersion](./kibana-plugin-server.savedobjectsincrementcounteroptions.migrationversion.md)
+
+## SavedObjectsIncrementCounterOptions.migrationVersion property
+
+Signature:
+
+```typescript
+migrationVersion?: SavedObjectsMigrationVersion;
+```
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsincrementcounteroptions.refresh.md b/docs/development/core/server/kibana-plugin-server.savedobjectsincrementcounteroptions.refresh.md
new file mode 100644
index 00000000000000..acd8d6f0916f9f
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsincrementcounteroptions.refresh.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsIncrementCounterOptions](./kibana-plugin-server.savedobjectsincrementcounteroptions.md) > [refresh](./kibana-plugin-server.savedobjectsincrementcounteroptions.refresh.md)
+
+## SavedObjectsIncrementCounterOptions.refresh property
+
+The Elasticsearch Refresh setting for this operation
+
+Signature:
+
+```typescript
+refresh?: MutatingOperationRefreshSetting;
+```
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.bulkcreate.md b/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.bulkcreate.md
new file mode 100644
index 00000000000000..003bc6ac72466d
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.bulkcreate.md
@@ -0,0 +1,27 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsRepository](./kibana-plugin-server.savedobjectsrepository.md) > [bulkCreate](./kibana-plugin-server.savedobjectsrepository.bulkcreate.md)
+
+## SavedObjectsRepository.bulkCreate() method
+
+Creates multiple documents at once
+
+Signature:
+
+```typescript
+bulkCreateArray<SavedObjectsBulkCreateObject<T>>
| |
+| options | SavedObjectsCreateOptions
| |
+
+Returns:
+
+`PromiseSavedObjectsBulkGetObject[]
| |
+| options | SavedObjectsBaseOptions
| |
+
+Returns:
+
+`PromiseArray<SavedObjectsBulkUpdateObject<T>>
| |
+| options | SavedObjectsBulkUpdateOptions
| |
+
+Returns:
+
+`Promisestring
| |
+| attributes | T
| |
+| options | SavedObjectsCreateOptions
| |
+
+Returns:
+
+`Promisestring
| |
+| id | string
| |
+| options | SavedObjectsDeleteOptions
| |
+
+Returns:
+
+`Promise<{}>`
+
+{promise}
+
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.deletebynamespace.md b/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.deletebynamespace.md
new file mode 100644
index 00000000000000..ab6eb30e664f19
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.deletebynamespace.md
@@ -0,0 +1,27 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsRepository](./kibana-plugin-server.savedobjectsrepository.md) > [deleteByNamespace](./kibana-plugin-server.savedobjectsrepository.deletebynamespace.md)
+
+## SavedObjectsRepository.deleteByNamespace() method
+
+Deletes all objects from the provided namespace.
+
+Signature:
+
+```typescript
+deleteByNamespace(namespace: string, options?: SavedObjectsDeleteByNamespaceOptions): Promisestring
| |
+| options | SavedObjectsDeleteByNamespaceOptions
| |
+
+Returns:
+
+`PromiseSavedObjectsFindOptions
| |
+
+Returns:
+
+`Promisestring
| |
+| id | string
| |
+| options | SavedObjectsBaseOptions
| |
+
+Returns:
+
+`Promisestring
| |
+| id | string
| |
+| counterFieldName | string
| |
+| options | SavedObjectsIncrementCounterOptions
| |
+
+Returns:
+
+`Promise<{
+ id: string;
+ type: string;
+ updated_at: string;
+ references: any;
+ version: string;
+ attributes: any;
+ }>`
+
+{promise}
+
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.md b/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.md
new file mode 100644
index 00000000000000..019363776590cd
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.md
@@ -0,0 +1,31 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsRepository](./kibana-plugin-server.savedobjectsrepository.md)
+
+## SavedObjectsRepository class
+
+Signature:
+
+```typescript
+export declare class SavedObjectsRepository
+```
+
+## Methods
+
+| Method | Modifiers | Description |
+| --- | --- | --- |
+| [bulkCreate(objects, options)](./kibana-plugin-server.savedobjectsrepository.bulkcreate.md) | | Creates multiple documents at once |
+| [bulkGet(objects, options)](./kibana-plugin-server.savedobjectsrepository.bulkget.md) | | Returns an array of objects by id |
+| [bulkUpdate(objects, options)](./kibana-plugin-server.savedobjectsrepository.bulkupdate.md) | | Updates multiple objects in bulk |
+| [create(type, attributes, options)](./kibana-plugin-server.savedobjectsrepository.create.md) | | Persists an object |
+| [delete(type, id, options)](./kibana-plugin-server.savedobjectsrepository.delete.md) | | Deletes an object |
+| [deleteByNamespace(namespace, options)](./kibana-plugin-server.savedobjectsrepository.deletebynamespace.md) | | Deletes all objects from the provided namespace. |
+| [find({ search, defaultSearchOperator, searchFields, hasReference, page, perPage, sortField, sortOrder, fields, namespace, type, filter, })](./kibana-plugin-server.savedobjectsrepository.find.md) | | |
+| [get(type, id, options)](./kibana-plugin-server.savedobjectsrepository.get.md) | | Gets a single object |
+| [incrementCounter(type, id, counterFieldName, options)](./kibana-plugin-server.savedobjectsrepository.incrementcounter.md) | | Increases a counter field by one. Creates the document if one doesn't exist for the given id. |
+| [update(type, id, attributes, options)](./kibana-plugin-server.savedobjectsrepository.update.md) | | Updates an object |
+
+## Remarks
+
+The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `SavedObjectsRepository` class.
+
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.update.md b/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.update.md
new file mode 100644
index 00000000000000..15890ab9211aa8
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsrepository.update.md
@@ -0,0 +1,29 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsRepository](./kibana-plugin-server.savedobjectsrepository.md) > [update](./kibana-plugin-server.savedobjectsrepository.update.md)
+
+## SavedObjectsRepository.update() method
+
+Updates an object
+
+Signature:
+
+```typescript
+updatestring
| |
+| id | string
| |
+| attributes | Partial<T>
| |
+| options | SavedObjectsUpdateOptions
| |
+
+Returns:
+
+`Promise(priority: number, id: string, factory: SavedObjectsClientWrapperFactory<KibanaRequest>) => void
| Add a client wrapper with the given priority. |
+| [createInternalRepository](./kibana-plugin-server.savedobjectsservicesetup.createinternalrepository.md) | (extraTypes?: string[]) => ISavedObjectsRepository
| Creates a [Saved Objects repository](./kibana-plugin-server.isavedobjectsrepository.md) that uses the internal Kibana user for authenticating with Elasticsearch. |
+| [createScopedRepository](./kibana-plugin-server.savedobjectsservicesetup.createscopedrepository.md) | (req: KibanaRequest, extraTypes?: string[]) => ISavedObjectsRepository
| Creates a [Saved Objects repository](./kibana-plugin-server.isavedobjectsrepository.md) that uses the credentials from the passed in request to authenticate with Elasticsearch. |
+| [setClientFactory](./kibana-plugin-server.savedobjectsservicesetup.setclientfactory.md) | (customClientFactory: SavedObjectsClientFactory<KibanaRequest>) => void
| Set a default factory for creating Saved Objects clients. Only one client factory can be set, subsequent calls to this method will fail. |
+
+## Remarks
+
+Note: The Saved Object setup API's should only be used for creating and registering client wrappers. Constructing a Saved Objects client or repository for use within your own plugin won't have any of the registered wrappers applied and is considered an anti-pattern. Use the Saved Objects client from the [SavedObjectsServiceStart\#getScopedClient](./kibana-plugin-server.savedobjectsservicestart.md) method or the [route handler context](./kibana-plugin-server.requesthandlercontext.md) instead.
+
+When plugins access the Saved Objects client, a new client is created using the factory provided to `setClientFactory` and wrapped by all wrappers registered through `addClientWrapper`. To create a factory or wrapper, plugins will have to construct a Saved Objects client. First create a repository by calling `scopedRepository` or `internalRepository` and then use this repository as the argument to the [SavedObjectsClient](./kibana-plugin-server.savedobjectsclient.md) constructor.
+
+## Example
+
+import {SavedObjectsClient, CoreSetup} from 'src/core/server';
+
+export class Plugin() { setup: (core: CoreSetup) => { core.savedObjects.setClientFactory(({request: KibanaRequest}) => { return new SavedObjectsClient(core.savedObjects.scopedRepository(request)); }) } }
+
diff --git a/docs/development/core/server/kibana-plugin-server.savedobjectsservicesetup.setclientfactory.md b/docs/development/core/server/kibana-plugin-server.savedobjectsservicesetup.setclientfactory.md
new file mode 100644
index 00000000000000..544e0b9d5fa736
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.savedobjectsservicesetup.setclientfactory.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsServiceSetup](./kibana-plugin-server.savedobjectsservicesetup.md) > [setClientFactory](./kibana-plugin-server.savedobjectsservicesetup.setclientfactory.md)
+
+## SavedObjectsServiceSetup.setClientFactory property
+
+Set a default factory for creating Saved Objects clients. Only one client factory can be set, subsequent calls to this method will fail.
+
+Signature:
+
+```typescript
+setClientFactory: (customClientFactory: SavedObjectsClientFactory(req: KibanaRequest, options?: SavedObjectsClientProviderOptions) => SavedObjectsClientContract
| Creates a [Saved Objects client](./kibana-plugin-server.savedobjectsclientcontract.md) that uses the credentials from the passed in request to authenticate with Elasticsearch. If other plugins have registered Saved Objects client wrappers, these will be applied to extend the functionality of the client.A client that is already scoped to the incoming request is also exposed from the route handler context see [RequestHandlerContext](./kibana-plugin-server.requesthandlercontext.md). |
+
diff --git a/docs/development/core/server/kibana-plugin-server.sessioncookievalidationresult.isvalid.md b/docs/development/core/server/kibana-plugin-server.sessioncookievalidationresult.isvalid.md
new file mode 100644
index 00000000000000..6e5f6acca2eb90
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.sessioncookievalidationresult.isvalid.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SessionCookieValidationResult](./kibana-plugin-server.sessioncookievalidationresult.md) > [isValid](./kibana-plugin-server.sessioncookievalidationresult.isvalid.md)
+
+## SessionCookieValidationResult.isValid property
+
+Whether the cookie is valid or not.
+
+Signature:
+
+```typescript
+isValid: boolean;
+```
diff --git a/docs/development/core/server/kibana-plugin-server.sessioncookievalidationresult.md b/docs/development/core/server/kibana-plugin-server.sessioncookievalidationresult.md
new file mode 100644
index 00000000000000..6d32c4cca3dd6a
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.sessioncookievalidationresult.md
@@ -0,0 +1,21 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SessionCookieValidationResult](./kibana-plugin-server.sessioncookievalidationresult.md)
+
+## SessionCookieValidationResult interface
+
+Return type from a function to validate cookie contents.
+
+Signature:
+
+```typescript
+export interface SessionCookieValidationResult
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [isValid](./kibana-plugin-server.sessioncookievalidationresult.isvalid.md) | boolean
| Whether the cookie is valid or not. |
+| [path](./kibana-plugin-server.sessioncookievalidationresult.path.md) | string
| The "Path" attribute of the cookie; if the cookie is invalid, this is used to clear it. |
+
diff --git a/docs/development/core/server/kibana-plugin-server.sessioncookievalidationresult.path.md b/docs/development/core/server/kibana-plugin-server.sessioncookievalidationresult.path.md
new file mode 100644
index 00000000000000..8ca6d452213aac
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-server.sessioncookievalidationresult.path.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SessionCookieValidationResult](./kibana-plugin-server.sessioncookievalidationresult.md) > [path](./kibana-plugin-server.sessioncookievalidationresult.path.md)
+
+## SessionCookieValidationResult.path property
+
+The "Path" attribute of the cookie; if the cookie is invalid, this is used to clear it.
+
+Signature:
+
+```typescript
+path?: string;
+```
diff --git a/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.encryptionkey.md b/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.encryptionkey.md
index 167ab03d7567f5..ef65735e7bdbab 100644
--- a/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.encryptionkey.md
+++ b/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.encryptionkey.md
@@ -4,7 +4,7 @@
## SessionStorageCookieOptions.encryptionKey property
-A key used to encrypt a cookie value. Should be at least 32 characters long.
+A key used to encrypt a cookie's value. Should be at least 32 characters long.
Signature:
diff --git a/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.md b/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.md
index de412818142f25..778dc27a190d91 100644
--- a/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.md
+++ b/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.md
@@ -16,8 +16,8 @@ export interface SessionStorageCookieOptionsstring
| A key used to encrypt a cookie value. Should be at least 32 characters long. |
+| [encryptionKey](./kibana-plugin-server.sessionstoragecookieoptions.encryptionkey.md) | string
| A key used to encrypt a cookie's value. Should be at least 32 characters long. |
| [isSecure](./kibana-plugin-server.sessionstoragecookieoptions.issecure.md) | boolean
| Flag indicating whether the cookie should be sent only via a secure connection. |
| [name](./kibana-plugin-server.sessionstoragecookieoptions.name.md) | string
| Name of the session cookie. |
-| [validate](./kibana-plugin-server.sessionstoragecookieoptions.validate.md) | (sessionValue: T) => boolean | Promise<boolean>
| Function called to validate a cookie content. |
+| [validate](./kibana-plugin-server.sessionstoragecookieoptions.validate.md) | (sessionValue: T | T[]) => SessionCookieValidationResult
| Function called to validate a cookie's decrypted value. |
diff --git a/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.validate.md b/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.validate.md
index f3cbfc0d84e18e..effa4b6bbc077c 100644
--- a/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.validate.md
+++ b/docs/development/core/server/kibana-plugin-server.sessionstoragecookieoptions.validate.md
@@ -4,10 +4,10 @@
## SessionStorageCookieOptions.validate property
-Function called to validate a cookie content.
+Function called to validate a cookie's decrypted value.
Signature:
```typescript
-validate: (sessionValue: T) => boolean | Promise- {i18n.translate('xpack.monitoring.elasticsearch.nodes.metricbeatMigration.detectedNodeDescription', { - defaultMessage: `The following nodes are not monitored. Click 'Monitor with Metricbeat' below to start monitoring.`, - })} + {i18n.translate( + 'xpack.monitoring.elasticsearch.nodes.metricbeatMigration.detectedNodeDescription', + { + defaultMessage: `The following nodes are not monitored. Click 'Monitor with Metricbeat' below to start monitoring.`, + } + )}
- {i18n.translate('xpack.monitoring.elasticsearch.nodes.metricbeatMigration.disableInternalCollectionDescription', { - defaultMessage: `Disable self monitoring to finish the migration.` - })} + {i18n.translate( + 'xpack.monitoring.elasticsearch.nodes.metricbeatMigration.disableInternalCollectionDescription', + { + defaultMessage: `Disable self monitoring to finish the migration.`, + } + )}
Status: - - - + Green
{
it('should handle incomplete shardStats data', () => {
const clusterState = {
nodes: {
- fooNode: {}
- }
+ fooNode: {},
+ },
};
const shardStats = {
nodes: {
- fooNode: {}
- }
+ fooNode: {},
+ },
};
const resolver = 'fooNode';
@@ -62,7 +62,7 @@ describe('Elasticsearch Node Summary get_node_summary handleResponse', () => {
totalSpace: undefined,
usedHeap: undefined,
nodeTypeLabel: 'Node',
- nodeTypeClass: 'fa-server',
+ nodeTypeClass: 'storage',
node_ids: [],
status: 'Online',
isOnline: true,
@@ -72,17 +72,17 @@ describe('Elasticsearch Node Summary get_node_summary handleResponse', () => {
it('should handle incomplete shardStats data, master node', () => {
const clusterState = {
nodes: {
- 'fooNode-Uuid': {}
+ 'fooNode-Uuid': {},
},
- master_node: 'fooNode-Uuid'
+ master_node: 'fooNode-Uuid',
};
const shardStats = {
nodes: {
'fooNode-Uuid': {
shardCount: 22,
- indexCount: 11
- }
- }
+ indexCount: 11,
+ },
+ },
};
const resolver = 'fooNode-Uuid';
@@ -101,28 +101,28 @@ describe('Elasticsearch Node Summary get_node_summary handleResponse', () => {
node_stats: {
indices: {
docs: {
- count: 11000
+ count: 11000,
},
store: {
- size_in_bytes: 35000
- }
+ size_in_bytes: 35000,
+ },
},
fs: {
total: {
available_in_bytes: 8700,
- total_in_bytes: 10000
- }
+ total_in_bytes: 10000,
+ },
},
jvm: {
mem: {
- heap_used_percent: 33
- }
- }
- }
- }
- }
- ]
- }
+ heap_used_percent: 33,
+ },
+ },
+ },
+ },
+ },
+ ],
+ },
};
const result = handleFn(response);
@@ -140,10 +140,8 @@ describe('Elasticsearch Node Summary get_node_summary handleResponse', () => {
totalSpace: 10000,
usedHeap: 33,
nodeTypeLabel: 'Master Node',
- nodeTypeClass: 'fa-star',
- node_ids: [
- 'fooNode-Uuid'
- ],
+ nodeTypeClass: 'starFilled',
+ node_ids: ['fooNode-Uuid'],
status: 'Online',
isOnline: true,
});
diff --git a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/__tests__/get_node_type_class_label.js b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/__tests__/get_node_type_class_label.js
index 4c21391a9ae624..2dc30a57db3d9e 100644
--- a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/__tests__/get_node_type_class_label.js
+++ b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/__tests__/get_node_type_class_label.js
@@ -11,12 +11,12 @@ describe('Node Type and Label', () => {
describe('when master node', () => {
it('type is indicated by boolean flag', () => {
const node = {
- master: true
+ master: true,
};
const { nodeType, nodeTypeLabel, nodeTypeClass } = getNodeTypeClassLabel(node);
expect(nodeType).to.be('master');
expect(nodeTypeLabel).to.be('Master Node');
- expect(nodeTypeClass).to.be('fa-star');
+ expect(nodeTypeClass).to.be('starFilled');
});
it('type is indicated by string', () => {
const node = {};
@@ -24,7 +24,7 @@ describe('Node Type and Label', () => {
const { nodeType, nodeTypeLabel, nodeTypeClass } = getNodeTypeClassLabel(node, type);
expect(nodeType).to.be('master');
expect(nodeTypeLabel).to.be('Master Node');
- expect(nodeTypeClass).to.be('fa-star');
+ expect(nodeTypeClass).to.be('starFilled');
});
});
it('when type is generic node', () => {
@@ -33,6 +33,6 @@ describe('Node Type and Label', () => {
const { nodeType, nodeTypeLabel, nodeTypeClass } = getNodeTypeClassLabel(node, type);
expect(nodeType).to.be('node');
expect(nodeTypeLabel).to.be('Node');
- expect(nodeTypeClass).to.be('fa-server');
+ expect(nodeTypeClass).to.be('storage');
});
});
diff --git a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/get_nodes/__test__/__snapshots__/handle_response.test.js.snap b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/get_nodes/__test__/__snapshots__/handle_response.test.js.snap
index ba72d697388c6f..db74cc5e330a16 100644
--- a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/get_nodes/__test__/__snapshots__/handle_response.test.js.snap
+++ b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/get_nodes/__test__/__snapshots__/handle_response.test.js.snap
@@ -5,7 +5,7 @@ Array [
Object {
"isOnline": false,
"name": "hello01",
- "nodeTypeClass": "fa-server",
+ "nodeTypeClass": "storage",
"nodeTypeLabel": "Node",
"resolver": "_x_V2YzPQU-a9KRRBxUxZQ",
"shardCount": 6,
@@ -15,7 +15,7 @@ Array [
Object {
"isOnline": false,
"name": "hello02",
- "nodeTypeClass": "fa-server",
+ "nodeTypeClass": "storage",
"nodeTypeLabel": "Node",
"resolver": "DAiX7fFjS3Wii7g2HYKrOg",
"shardCount": 6,
@@ -32,7 +32,7 @@ Array [
Object {
"isOnline": true,
"name": "hello01",
- "nodeTypeClass": "fa-star",
+ "nodeTypeClass": "starFilled",
"nodeTypeLabel": "Master Node",
"node_cgroup_quota": Object {
"metric": Object {
@@ -160,7 +160,7 @@ Array [
Object {
"isOnline": true,
"name": "hello02",
- "nodeTypeClass": "fa-server",
+ "nodeTypeClass": "storage",
"nodeTypeLabel": "Node",
"node_cgroup_quota": undefined,
"node_cgroup_throttled": Object {
@@ -274,7 +274,7 @@ Array [
Object {
"isOnline": true,
"name": "hello01",
- "nodeTypeClass": "fa-star",
+ "nodeTypeClass": "starFilled",
"nodeTypeLabel": "Master Node",
"node_cgroup_quota": null,
"node_cgroup_throttled": null,
@@ -290,7 +290,7 @@ Array [
Object {
"isOnline": true,
"name": "hello02",
- "nodeTypeClass": "fa-server",
+ "nodeTypeClass": "storage",
"nodeTypeLabel": "Node",
"node_cgroup_quota": null,
"node_cgroup_throttled": null,
@@ -311,7 +311,7 @@ Array [
Object {
"isOnline": true,
"name": "hello01",
- "nodeTypeClass": "fa-star",
+ "nodeTypeClass": "starFilled",
"nodeTypeLabel": "Master Node",
"node_cgroup_quota": Object {
"metric": Object {
@@ -439,7 +439,7 @@ Array [
Object {
"isOnline": true,
"name": "hello02",
- "nodeTypeClass": "fa-server",
+ "nodeTypeClass": "storage",
"nodeTypeLabel": "Node",
"node_cgroup_quota": undefined,
"node_cgroup_throttled": Object {
diff --git a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/get_nodes/__test__/__snapshots__/map_nodes_info.test.js.snap b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/get_nodes/__test__/__snapshots__/map_nodes_info.test.js.snap
index 9f75dd1f1ee0fd..7eb22b00637459 100644
--- a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/get_nodes/__test__/__snapshots__/map_nodes_info.test.js.snap
+++ b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/get_nodes/__test__/__snapshots__/map_nodes_info.test.js.snap
@@ -5,7 +5,7 @@ Object {
"ENVgDIKRSdCVJo-YqY4kUQ": Object {
"isOnline": true,
"name": "node01",
- "nodeTypeClass": "fa-star",
+ "nodeTypeClass": "starFilled",
"nodeTypeLabel": "Master Node",
"shardCount": 57,
"transport_address": "127.0.0.1:9300",
@@ -14,7 +14,7 @@ Object {
"t9J9jvHpQ2yDw9c1LJ0tHA": Object {
"isOnline": false,
"name": "node02",
- "nodeTypeClass": "fa-server",
+ "nodeTypeClass": "storage",
"nodeTypeLabel": "Node",
"shardCount": 0,
"transport_address": "127.0.0.1:9301",
diff --git a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/lookups.js b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/lookups.js
index f8d97acf792c36..23b4021ee7c0c5 100644
--- a/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/lookups.js
+++ b/x-pack/legacy/plugins/monitoring/server/lib/elasticsearch/nodes/lookups.js
@@ -12,25 +12,31 @@
import { i18n } from '@kbn/i18n';
export const nodeTypeClass = {
- invalid: 'fa-exclamation-triangle',
- node: 'fa-server',
- master: 'fa-star',
- master_only: 'fa-star-o',
- data: 'fa-database',
- client: 'fa-binoculars'
+ invalid: 'alert',
+ node: 'storage',
+ master: 'starFilled',
+ master_only: 'starEmpty',
+ data: 'database',
+ client: 'glasses',
};
export const nodeTypeLabel = {
invalid: i18n.translate('xpack.monitoring.es.nodeType.invalidNodeLabel', {
- defaultMessage: 'Invalid Node' }),
+ defaultMessage: 'Invalid Node',
+ }),
node: i18n.translate('xpack.monitoring.es.nodeType.nodeLabel', {
- defaultMessage: 'Node' }),
+ defaultMessage: 'Node',
+ }),
master: i18n.translate('xpack.monitoring.es.nodeType.masterNodeLabel', {
- defaultMessage: 'Master Node' }),
+ defaultMessage: 'Master Node',
+ }),
master_only: i18n.translate('xpack.monitoring.es.nodeType.masterOnlyNodeLabel', {
- defaultMessage: 'Master Only Node' }),
+ defaultMessage: 'Master Only Node',
+ }),
data: i18n.translate('xpack.monitoring.es.nodeType.dataOnlyNodeLabel', {
- defaultMessage: 'Data Only Node' }),
+ defaultMessage: 'Data Only Node',
+ }),
client: i18n.translate('xpack.monitoring.es.nodeType.clientNodeLabel', {
- defaultMessage: 'Client Node' })
+ defaultMessage: 'Client Node',
+ }),
};
diff --git a/x-pack/legacy/plugins/reporting/export_types/common/layouts/preserve_layout.css b/x-pack/legacy/plugins/reporting/export_types/common/layouts/preserve_layout.css
index 9e8415a1ff18c1..ab88e4780936ea 100644
--- a/x-pack/legacy/plugins/reporting/export_types/common/layouts/preserve_layout.css
+++ b/x-pack/legacy/plugins/reporting/export_types/common/layouts/preserve_layout.css
@@ -92,11 +92,6 @@ visualize-app .visEditor__canvas {
display: none;
}
-/* slightly increate legend text size for readability */
-.visualize visualize-legend .visLegend__valueTitle {
- font-size: 1.2em;
-}
-
/* Ensure the min-height of the small breakpoint isn't used */
.vis-editor visualization {
min-height: 0 !important;
diff --git a/x-pack/legacy/plugins/reporting/export_types/common/layouts/print.css b/x-pack/legacy/plugins/reporting/export_types/common/layouts/print.css
index 30c253f36840af..8aca042144b3b4 100644
--- a/x-pack/legacy/plugins/reporting/export_types/common/layouts/print.css
+++ b/x-pack/legacy/plugins/reporting/export_types/common/layouts/print.css
@@ -91,11 +91,6 @@ visualize-app .visEditor__canvas {
display: none;
}
-/* slightly increate legend text size for readability */
-.visualize visualize-legend .visLegend__valueTitle {
- font-size: 1.2em;
-}
-
/* Ensure the min-height of the small breakpoint isn't used */
.vis-editor visualization {
min-height: 0 !important;
diff --git a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_clone.test.js b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_clone.test.js
index 29d2d00163ad8c..204bab5c497be2 100644
--- a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_clone.test.js
+++ b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_clone.test.js
@@ -8,7 +8,6 @@ import { setupEnvironment, pageHelpers, nextTick } from './helpers';
import { JOB_TO_CLONE, JOB_CLONE_INDEX_PATTERN_CHECK } from './helpers/constants';
jest.mock('ui/new_platform');
-jest.mock('ui/index_patterns');
jest.mock('lodash/function/debounce', () => fn => fn);
diff --git a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_date_histogram.test.js b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_date_histogram.test.js
index 59814474396feb..b7b555d986597e 100644
--- a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_date_histogram.test.js
+++ b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_date_histogram.test.js
@@ -9,7 +9,6 @@ import moment from 'moment-timezone';
import { setupEnvironment, pageHelpers } from './helpers';
jest.mock('ui/new_platform');
-jest.mock('ui/index_patterns');
jest.mock('lodash/function/debounce', () => fn => fn);
diff --git a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_histogram.test.js b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_histogram.test.js
index 09417fa8ed3072..dbbd7501b15181 100644
--- a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_histogram.test.js
+++ b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_histogram.test.js
@@ -7,7 +7,6 @@
import { setupEnvironment, pageHelpers } from './helpers';
jest.mock('ui/new_platform');
-jest.mock('ui/index_patterns');
jest.mock('lodash/function/debounce', () => fn => fn);
diff --git a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_logistics.test.js b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_logistics.test.js
index 99a0aa09351520..a853ef36e01cde 100644
--- a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_logistics.test.js
+++ b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_logistics.test.js
@@ -9,7 +9,6 @@ import { INDEX_PATTERN_ILLEGAL_CHARACTERS_VISIBLE } from '../../../../../../src/
import { setupEnvironment, pageHelpers } from './helpers';
jest.mock('ui/new_platform');
-jest.mock('ui/index_patterns');
jest.mock('lodash/function/debounce', () => fn => fn);
diff --git a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_metrics.test.js b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_metrics.test.js
index 2f26d2a7475de3..d2f63983a3e369 100644
--- a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_metrics.test.js
+++ b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_metrics.test.js
@@ -7,7 +7,6 @@
import { setupEnvironment, pageHelpers } from './helpers';
jest.mock('ui/new_platform');
-jest.mock('ui/index_patterns');
jest.mock('lodash/function/debounce', () => fn => fn);
diff --git a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_review.test.js b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_review.test.js
index 8ca736e62be7f1..c89d37f4e0ac3e 100644
--- a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_review.test.js
+++ b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_review.test.js
@@ -9,7 +9,6 @@ import { first } from 'lodash';
import { JOBS } from './helpers/constants';
jest.mock('ui/new_platform');
-jest.mock('ui/index_patterns');
jest.mock('lodash/function/debounce', () => fn => fn);
diff --git a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_terms.test.js b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_terms.test.js
index 78e8d9ec0c53a5..c27b9d0e4ef0fe 100644
--- a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_terms.test.js
+++ b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_create_terms.test.js
@@ -7,7 +7,6 @@
import { setupEnvironment, pageHelpers } from './helpers';
jest.mock('ui/new_platform');
-jest.mock('ui/index_patterns');
jest.mock('lodash/function/debounce', () => fn => fn);
diff --git a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_list.test.js b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_list.test.js
index 05272bf2226123..db7dddad4e3c13 100644
--- a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_list.test.js
+++ b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_list.test.js
@@ -9,7 +9,6 @@ import { setupEnvironment, pageHelpers, nextTick } from './helpers';
import { JOBS } from './helpers/constants';
jest.mock('ui/new_platform');
-jest.mock('ui/index_patterns');
jest.mock('../../public/crud_app/services', () => {
const services = require.requireActual('../../public/crud_app/services');
diff --git a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_list_clone.test.js b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_list_clone.test.js
index ce62f6c67ae033..6feabe7f772eef 100644
--- a/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_list_clone.test.js
+++ b/x-pack/legacy/plugins/rollup/__jest__/client_integration/job_list_clone.test.js
@@ -10,7 +10,6 @@ import { getRouter } from '../../public/crud_app/services/routing';
import { CRUD_APP_BASE_PATH } from '../../public/crud_app/constants';
jest.mock('ui/new_platform');
-jest.mock('ui/index_patterns');
jest.mock('lodash/function/debounce', () => fn => fn);
diff --git a/x-pack/legacy/plugins/siem/cypress/integration/lib/drag_n_drop/helpers.ts b/x-pack/legacy/plugins/siem/cypress/integration/lib/drag_n_drop/helpers.ts
index e42a01f4ad8c12..39a61401c15b3c 100644
--- a/x-pack/legacy/plugins/siem/cypress/integration/lib/drag_n_drop/helpers.ts
+++ b/x-pack/legacy/plugins/siem/cypress/integration/lib/drag_n_drop/helpers.ts
@@ -23,19 +23,23 @@ export const drag = (subject: JQuery