React.ReactNode
| Content of the button (in lieu of children
) |
+| [href](./kibana-plugin-core-public.chromehelpextensionmenucustomlink.href.md) | string
| URL of the link |
+| [linkType](./kibana-plugin-core-public.chromehelpextensionmenucustomlink.linktype.md) | 'custom'
| Extend EuiButtonEmpty to provide extra functionality |
+
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.href.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.href.md
new file mode 100644
index 00000000000000..b6714c39a4699a
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.href.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuDiscussLink](./kibana-plugin-core-public.chromehelpextensionmenudiscusslink.md) > [href](./kibana-plugin-core-public.chromehelpextensionmenudiscusslink.href.md)
+
+## ChromeHelpExtensionMenuDiscussLink.href property
+
+URL to discuss page. i.e. `https://discuss.elastic.co/c/${appName}`
+
+Signature:
+
+```typescript
+href: string;
+```
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.linktype.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.linktype.md
new file mode 100644
index 00000000000000..0141677b26a40e
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.linktype.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuDiscussLink](./kibana-plugin-core-public.chromehelpextensionmenudiscusslink.md) > [linkType](./kibana-plugin-core-public.chromehelpextensionmenudiscusslink.linktype.md)
+
+## ChromeHelpExtensionMenuDiscussLink.linkType property
+
+Creates a generic give feedback link with comment icon
+
+Signature:
+
+```typescript
+linkType: 'discuss';
+```
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.md
index 63d0596bd98476..a73f6daad28c23 100644
--- a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.md
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudiscusslink.md
@@ -2,14 +2,19 @@
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuDiscussLink](./kibana-plugin-core-public.chromehelpextensionmenudiscusslink.md)
-## ChromeHelpExtensionMenuDiscussLink type
+## ChromeHelpExtensionMenuDiscussLink interface
Signature:
```typescript
-export declare type ChromeHelpExtensionMenuDiscussLink = EuiButtonEmptyProps & {
- linkType: 'discuss';
- href: string;
-};
+export interface ChromeHelpExtensionMenuDiscussLink extends ChromeHelpExtensionLinkBase
```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [href](./kibana-plugin-core-public.chromehelpextensionmenudiscusslink.href.md) | string
| URL to discuss page. i.e. https://discuss.elastic.co/c/${appName}
|
+| [linkType](./kibana-plugin-core-public.chromehelpextensionmenudiscusslink.linktype.md) | 'discuss'
| Creates a generic give feedback link with comment icon |
+
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.href.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.href.md
new file mode 100644
index 00000000000000..9897bc6fcd2f7b
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.href.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuDocumentationLink](./kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.md) > [href](./kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.href.md)
+
+## ChromeHelpExtensionMenuDocumentationLink.href property
+
+URL to documentation page. i.e. `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/${appName}.html`,
+
+Signature:
+
+```typescript
+href: string;
+```
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.linktype.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.linktype.md
new file mode 100644
index 00000000000000..b75a70f9518b32
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.linktype.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuDocumentationLink](./kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.md) > [linkType](./kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.linktype.md)
+
+## ChromeHelpExtensionMenuDocumentationLink.linkType property
+
+Creates a deep-link to app-specific documentation
+
+Signature:
+
+```typescript
+linkType: 'documentation';
+```
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.md
index c7c1c4153edf89..fab49d06d47748 100644
--- a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.md
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.md
@@ -2,14 +2,19 @@
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuDocumentationLink](./kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.md)
-## ChromeHelpExtensionMenuDocumentationLink type
+## ChromeHelpExtensionMenuDocumentationLink interface
Signature:
```typescript
-export declare type ChromeHelpExtensionMenuDocumentationLink = EuiButtonEmptyProps & {
- linkType: 'documentation';
- href: string;
-};
+export interface ChromeHelpExtensionMenuDocumentationLink extends ChromeHelpExtensionLinkBase
```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [href](./kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.href.md) | string
| URL to documentation page. i.e. ${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/${appName}.html
, |
+| [linkType](./kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.linktype.md) | 'documentation'
| Creates a deep-link to app-specific documentation |
+
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.labels.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.labels.md
new file mode 100644
index 00000000000000..1976215e7243cb
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.labels.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuGitHubLink](./kibana-plugin-core-public.chromehelpextensionmenugithublink.md) > [labels](./kibana-plugin-core-public.chromehelpextensionmenugithublink.labels.md)
+
+## ChromeHelpExtensionMenuGitHubLink.labels property
+
+Include at least one app-specific label to be applied to the new github issue
+
+Signature:
+
+```typescript
+labels: string[];
+```
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.linktype.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.linktype.md
new file mode 100644
index 00000000000000..b3df27213e5b71
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.linktype.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuGitHubLink](./kibana-plugin-core-public.chromehelpextensionmenugithublink.md) > [linkType](./kibana-plugin-core-public.chromehelpextensionmenugithublink.linktype.md)
+
+## ChromeHelpExtensionMenuGitHubLink.linkType property
+
+Creates a link to a new github issue in the Kibana repo
+
+Signature:
+
+```typescript
+linkType: 'github';
+```
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.md
index 5cb3a79086e118..ca9ceecffa6f13 100644
--- a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.md
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.md
@@ -2,15 +2,20 @@
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuGitHubLink](./kibana-plugin-core-public.chromehelpextensionmenugithublink.md)
-## ChromeHelpExtensionMenuGitHubLink type
+## ChromeHelpExtensionMenuGitHubLink interface
Signature:
```typescript
-export declare type ChromeHelpExtensionMenuGitHubLink = EuiButtonEmptyProps & {
- linkType: 'github';
- labels: string[];
- title?: string;
-};
+export interface ChromeHelpExtensionMenuGitHubLink extends ChromeHelpExtensionLinkBase
```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [labels](./kibana-plugin-core-public.chromehelpextensionmenugithublink.labels.md) | string[]
| Include at least one app-specific label to be applied to the new github issue |
+| [linkType](./kibana-plugin-core-public.chromehelpextensionmenugithublink.linktype.md) | 'github'
| Creates a link to a new github issue in the Kibana repo |
+| [title](./kibana-plugin-core-public.chromehelpextensionmenugithublink.title.md) | string
| Provides initial text for the title of the issue |
+
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.title.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.title.md
new file mode 100644
index 00000000000000..af6091f9e72527
--- /dev/null
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenugithublink.title.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ChromeHelpExtensionMenuGitHubLink](./kibana-plugin-core-public.chromehelpextensionmenugithublink.md) > [title](./kibana-plugin-core-public.chromehelpextensionmenugithublink.title.md)
+
+## ChromeHelpExtensionMenuGitHubLink.title property
+
+Provides initial text for the title of the issue
+
+Signature:
+
+```typescript
+title?: string;
+```
diff --git a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenulink.md b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenulink.md
index 7a219d5bfd2f86..cb7d795e3eb8e4 100644
--- a/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenulink.md
+++ b/docs/development/core/public/kibana-plugin-core-public.chromehelpextensionmenulink.md
@@ -8,5 +8,5 @@
Signature:
```typescript
-export declare type ChromeHelpExtensionMenuLink = ExclusiveUnionboolean
| Indicates if this policy allows or denies access to the described destination. |
-| [host](./kibana-plugin-core-public.iexternalurlpolicy.host.md) | string
| Optional host describing the external destination. May be combined with protocol
. Required if protocol
is not defined. |
-| [protocol](./kibana-plugin-core-public.iexternalurlpolicy.protocol.md) | string
| Optional protocol describing the external destination. May be combined with host
. Required if host
is not defined. |
+| [host](./kibana-plugin-core-public.iexternalurlpolicy.host.md) | string
| Optional host describing the external destination. May be combined with protocol
. |
+| [protocol](./kibana-plugin-core-public.iexternalurlpolicy.protocol.md) | string
| Optional protocol describing the external destination. May be combined with host
. |
diff --git a/docs/development/core/public/kibana-plugin-core-public.iexternalurlpolicy.protocol.md b/docs/development/core/public/kibana-plugin-core-public.iexternalurlpolicy.protocol.md
index 67b9b439a54f60..ac73412b6e1437 100644
--- a/docs/development/core/public/kibana-plugin-core-public.iexternalurlpolicy.protocol.md
+++ b/docs/development/core/public/kibana-plugin-core-public.iexternalurlpolicy.protocol.md
@@ -4,7 +4,7 @@
## IExternalUrlPolicy.protocol property
-Optional protocol describing the external destination. May be combined with `host`. Required if `host` is not defined.
+Optional protocol describing the external destination. May be combined with `host`.
Signature:
diff --git a/docs/development/core/public/kibana-plugin-core-public.md b/docs/development/core/public/kibana-plugin-core-public.md
index a3df5d30137dfc..da19377054499b 100644
--- a/docs/development/core/public/kibana-plugin-core-public.md
+++ b/docs/development/core/public/kibana-plugin-core-public.md
@@ -44,6 +44,10 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [ChromeBrand](./kibana-plugin-core-public.chromebrand.md) | |
| [ChromeDocTitle](./kibana-plugin-core-public.chromedoctitle.md) | APIs for accessing and updating the document title. |
| [ChromeHelpExtension](./kibana-plugin-core-public.chromehelpextension.md) | |
+| [ChromeHelpExtensionMenuCustomLink](./kibana-plugin-core-public.chromehelpextensionmenucustomlink.md) | |
+| [ChromeHelpExtensionMenuDiscussLink](./kibana-plugin-core-public.chromehelpextensionmenudiscusslink.md) | |
+| [ChromeHelpExtensionMenuDocumentationLink](./kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.md) | |
+| [ChromeHelpExtensionMenuGitHubLink](./kibana-plugin-core-public.chromehelpextensionmenugithublink.md) | |
| [ChromeNavControl](./kibana-plugin-core-public.chromenavcontrol.md) | |
| [ChromeNavControls](./kibana-plugin-core-public.chromenavcontrols.md) | [APIs](./kibana-plugin-core-public.chromenavcontrols.md) for registering new controls to be displayed in the navigation bar. |
| [ChromeNavLink](./kibana-plugin-core-public.chromenavlink.md) | |
@@ -145,10 +149,7 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [AppUpdatableFields](./kibana-plugin-core-public.appupdatablefields.md) | Defines the list of fields that can be updated via an [AppUpdater](./kibana-plugin-core-public.appupdater.md). |
| [AppUpdater](./kibana-plugin-core-public.appupdater.md) | Updater for applications. see [ApplicationSetup](./kibana-plugin-core-public.applicationsetup.md) |
| [ChromeBreadcrumb](./kibana-plugin-core-public.chromebreadcrumb.md) | |
-| [ChromeHelpExtensionMenuCustomLink](./kibana-plugin-core-public.chromehelpextensionmenucustomlink.md) | |
-| [ChromeHelpExtensionMenuDiscussLink](./kibana-plugin-core-public.chromehelpextensionmenudiscusslink.md) | |
-| [ChromeHelpExtensionMenuDocumentationLink](./kibana-plugin-core-public.chromehelpextensionmenudocumentationlink.md) | |
-| [ChromeHelpExtensionMenuGitHubLink](./kibana-plugin-core-public.chromehelpextensionmenugithublink.md) | |
+| [ChromeHelpExtensionLinkBase](./kibana-plugin-core-public.chromehelpextensionlinkbase.md) | |
| [ChromeHelpExtensionMenuLink](./kibana-plugin-core-public.chromehelpextensionmenulink.md) | |
| [ChromeNavLinkUpdateableFields](./kibana-plugin-core-public.chromenavlinkupdateablefields.md) | |
| [FatalErrorsStart](./kibana-plugin-core-public.fatalerrorsstart.md) | FatalErrors stop the Kibana Public Core and displays a fatal error screen with details about the Kibana build and the error. |
diff --git a/docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddable.getupdated_.md b/docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddable.getupdated_.md
index 474962e614aa7d..5201444e69867e 100644
--- a/docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddable.getupdated_.md
+++ b/docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddable.getupdated_.md
@@ -4,7 +4,7 @@
## Embeddable.getUpdated$() method
-Merges input$ and output$ streams and denounces emit till next macro-task Could be useful to batch reactions to input$ and output$ updates that happen separately but synchronously In case corresponding state change triggered `reload` this stream is guarantied to emit later which allows to skip any state handling in case `reload` already handled it
+Merges input$ and output$ streams and debounces emit till next macro-task. Could be useful to batch reactions to input$ and output$ updates that happen separately but synchronously. In case corresponding state change triggered `reload` this stream is guarantied to emit later, which allows to skip any state handling in case `reload` already handled it.
Signature:
diff --git a/docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddable.md b/docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddable.md
index 4541afec29fa52..fe64bcf7c1177b 100644
--- a/docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddable.md
+++ b/docs/development/plugins/embeddable/public/kibana-plugin-plugins-embeddable-public.embeddable.md
@@ -44,7 +44,7 @@ export declare abstract class Embeddablereload
already handled it |
+| [getUpdated$()](./kibana-plugin-plugins-embeddable-public.embeddable.getupdated_.md) | | Merges input$ and output$ streams and debounces emit till next macro-task. Could be useful to batch reactions to input$ and output$ updates that happen separately but synchronously. In case corresponding state change triggered reload
this stream is guarantied to emit later, which allows to skip any state handling in case reload
already handled it. |
| [onFatalError(e)](./kibana-plugin-plugins-embeddable-public.embeddable.onfatalerror.md) | | |
| [reload()](./kibana-plugin-plugins-embeddable-public.embeddable.reload.md) | | Reload will be called when there is a request to refresh the data or view, even if the input data did not change.In case if input data did change and reload is requested input$ and output$ would still emit before reload
is calledThe order would be as follows: input$ output$ reload() \-\-\-- updated$ |
| [render(el)](./kibana-plugin-plugins-embeddable-public.embeddable.render.md) | | |
diff --git a/packages/kbn-es-archiver/src/lib/__tests__/stats.ts b/packages/kbn-es-archiver/src/lib/stats.test.ts
similarity index 84%
rename from packages/kbn-es-archiver/src/lib/__tests__/stats.ts
rename to packages/kbn-es-archiver/src/lib/stats.test.ts
index 0ab7d161feb6e1..13f04451ff7e50 100644
--- a/packages/kbn-es-archiver/src/lib/__tests__/stats.ts
+++ b/packages/kbn-es-archiver/src/lib/stats.test.ts
@@ -19,10 +19,9 @@
import { uniq } from 'lodash';
import sinon from 'sinon';
-import expect from '@kbn/expect';
import { ToolingLog } from '@kbn/dev-utils';
-import { createStats } from '../';
+import { createStats } from './stats';
function createBufferedLog(): ToolingLog & { buffer: string } {
const log: ToolingLog = new ToolingLog({
@@ -40,12 +39,12 @@ function assertDeepClones(a: any, b: any) {
try {
(function recurse(one, two) {
if (typeof one !== 'object' || typeof two !== 'object') {
- expect(one).to.be(two);
+ expect(one).toBe(two);
return;
}
- expect(one).to.eql(two);
- expect(one).to.not.be(two);
+ expect(one).toEqual(two);
+ expect(one).not.toBe(two);
const keys = uniq(Object.keys(one).concat(Object.keys(two)));
keys.forEach((k) => {
path.push(k);
@@ -68,14 +67,14 @@ describe('esArchiver: Stats', () => {
const stats = createStats('name', new ToolingLog());
stats.skippedIndex('index-name');
const indexStats = stats.toJSON()['index-name'];
- expect(indexStats).to.have.property('skipped', true);
+ expect(indexStats).toHaveProperty('skipped', true);
});
it('logs that the index was skipped', async () => {
const log = createBufferedLog();
const stats = createStats('name', log);
stats.skippedIndex('index-name');
- expect(log.buffer).to.contain('Skipped');
+ expect(log.buffer).toContain('Skipped');
});
});
@@ -84,13 +83,13 @@ describe('esArchiver: Stats', () => {
const stats = createStats('name', new ToolingLog());
stats.deletedIndex('index-name');
const indexStats = stats.toJSON()['index-name'];
- expect(indexStats).to.have.property('deleted', true);
+ expect(indexStats).toHaveProperty('deleted', true);
});
it('logs that the index was deleted', async () => {
const log = createBufferedLog();
const stats = createStats('name', log);
stats.deletedIndex('index-name');
- expect(log.buffer).to.contain('Deleted');
+ expect(log.buffer).toContain('Deleted');
});
});
@@ -99,13 +98,13 @@ describe('esArchiver: Stats', () => {
const stats = createStats('name', new ToolingLog());
stats.createdIndex('index-name');
const indexStats = stats.toJSON()['index-name'];
- expect(indexStats).to.have.property('created', true);
+ expect(indexStats).toHaveProperty('created', true);
});
it('logs that the index was created', async () => {
const log = createBufferedLog();
const stats = createStats('name', log);
stats.createdIndex('index-name');
- expect(log.buffer).to.contain('Created');
+ expect(log.buffer).toContain('Created');
});
describe('with metadata', () => {
it('debug-logs each key from the metadata', async () => {
@@ -114,8 +113,8 @@ describe('esArchiver: Stats', () => {
stats.createdIndex('index-name', {
foo: 'bar',
});
- expect(log.buffer).to.contain('debg');
- expect(log.buffer).to.contain('foo "bar"');
+ expect(log.buffer).toContain('debg');
+ expect(log.buffer).toContain('foo "bar"');
});
});
describe('without metadata', () => {
@@ -123,7 +122,7 @@ describe('esArchiver: Stats', () => {
const log = createBufferedLog();
const stats = createStats('name', log);
stats.createdIndex('index-name');
- expect(log.buffer).to.not.contain('debg');
+ expect(log.buffer).not.toContain('debg');
});
});
});
@@ -133,13 +132,13 @@ describe('esArchiver: Stats', () => {
const stats = createStats('name', new ToolingLog());
stats.archivedIndex('index-name');
const indexStats = stats.toJSON()['index-name'];
- expect(indexStats).to.have.property('archived', true);
+ expect(indexStats).toHaveProperty('archived', true);
});
it('logs that the index was archived', async () => {
const log = createBufferedLog();
const stats = createStats('name', log);
stats.archivedIndex('index-name');
- expect(log.buffer).to.contain('Archived');
+ expect(log.buffer).toContain('Archived');
});
describe('with metadata', () => {
it('debug-logs each key from the metadata', async () => {
@@ -148,8 +147,8 @@ describe('esArchiver: Stats', () => {
stats.archivedIndex('index-name', {
foo: 'bar',
});
- expect(log.buffer).to.contain('debg');
- expect(log.buffer).to.contain('foo "bar"');
+ expect(log.buffer).toContain('debg');
+ expect(log.buffer).toContain('foo "bar"');
});
});
describe('without metadata', () => {
@@ -157,7 +156,7 @@ describe('esArchiver: Stats', () => {
const log = createBufferedLog();
const stats = createStats('name', log);
stats.archivedIndex('index-name');
- expect(log.buffer).to.not.contain('debg');
+ expect(log.buffer).not.toContain('debg');
});
});
});
@@ -166,10 +165,10 @@ describe('esArchiver: Stats', () => {
it('increases the docs.indexed count for the index', () => {
const stats = createStats('name', new ToolingLog());
stats.indexedDoc('index-name');
- expect(stats.toJSON()['index-name'].docs.indexed).to.be(1);
+ expect(stats.toJSON()['index-name'].docs.indexed).toBe(1);
stats.indexedDoc('index-name');
stats.indexedDoc('index-name');
- expect(stats.toJSON()['index-name'].docs.indexed).to.be(3);
+ expect(stats.toJSON()['index-name'].docs.indexed).toBe(3);
});
});
@@ -177,10 +176,10 @@ describe('esArchiver: Stats', () => {
it('increases the docs.archived count for the index', () => {
const stats = createStats('name', new ToolingLog());
stats.archivedDoc('index-name');
- expect(stats.toJSON()['index-name'].docs.archived).to.be(1);
+ expect(stats.toJSON()['index-name'].docs.archived).toBe(1);
stats.archivedDoc('index-name');
stats.archivedDoc('index-name');
- expect(stats.toJSON()['index-name'].docs.archived).to.be(3);
+ expect(stats.toJSON()['index-name'].docs.archived).toBe(3);
});
});
@@ -189,7 +188,7 @@ describe('esArchiver: Stats', () => {
const stats = createStats('name', new ToolingLog());
stats.archivedIndex('index1');
stats.archivedIndex('index2');
- expect(Object.keys(stats.toJSON())).to.eql(['index1', 'index2']);
+ expect(Object.keys(stats.toJSON())).toEqual(['index1', 'index2']);
});
it('returns a deep clone of the stats', () => {
const stats = createStats('name', new ToolingLog());
diff --git a/packages/kbn-eslint-plugin-eslint/jest.config.js b/packages/kbn-eslint-plugin-eslint/jest.config.js
new file mode 100644
index 00000000000000..f2dbf1268f1c86
--- /dev/null
+++ b/packages/kbn-eslint-plugin-eslint/jest.config.js
@@ -0,0 +1,24 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you under
+ * the Apache License, Version 2.0 (the "License"); you may
+ * not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+module.exports = {
+ preset: '@kbn/test',
+ rootDir: '../..',
+ roots: ['- {i18n.translate('dashboard.panel.libraryNotification.toolTip', { - defaultMessage: - 'Editing this panel might affect other dashboards. To change to this panel only, unlink it from the library.', - })} -
+{dashboardLibraryNotification.getTooltip()}
-
-
+
+
{error.message ?? `${error}`}
+); + +const ShardFailureErrorMessage: React.FC<{ error: ShardFailureSearchStrategyError }> = ({ + error, +}) => ( +{flyoutItem.id}
: '',
+ logEntryId: logEntryId ? {logEntryId}
: '',
}}
/>
- {flyoutItem ? (
+ {logEntry ? (
<>
{flyoutItem.index}
,
+ indexName: {logEntry.index}
,
}}
/>
{content}
+ ) : isOverflow == null || isOverflow === true ? ( +