-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into model-text
- Loading branch information
Showing
252 changed files
with
5,331 additions
and
1,971 deletions.
There are no files selected for viewing
This file contains 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
11 changes: 11 additions & 0 deletions
11
...ins/data/public/kibana-plugin-plugins-data-public.action_global_apply_filter.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [ACTION\_GLOBAL\_APPLY\_FILTER](./kibana-plugin-plugins-data-public.action_global_apply_filter.md) | ||
|
||
## ACTION\_GLOBAL\_APPLY\_FILTER variable | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
ACTION_GLOBAL_APPLY_FILTER = "ACTION_GLOBAL_APPLY_FILTER" | ||
``` |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { HttpFetchOptions } from 'kibana/public'; | ||
|
||
export type FetchOptions = Omit<HttpFetchOptions, 'body'> & { | ||
pathname: string; | ||
isCachable?: boolean; | ||
method?: string; | ||
body?: any; | ||
}; |
74 changes: 74 additions & 0 deletions
74
x-pack/plugins/apm/public/application/application.test.tsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { act } from '@testing-library/react'; | ||
import { createMemoryHistory } from 'history'; | ||
import { Observable } from 'rxjs'; | ||
import { AppMountParameters, CoreStart, HttpSetup } from 'src/core/public'; | ||
import { mockApmPluginContextValue } from '../context/ApmPluginContext/MockApmPluginContext'; | ||
import { ApmPluginSetupDeps } from '../plugin'; | ||
import { createCallApmApi } from '../services/rest/createCallApmApi'; | ||
import { renderApp } from './'; | ||
import { disableConsoleWarning } from '../utils/testHelpers'; | ||
|
||
describe('renderApp', () => { | ||
let mockConsole: jest.SpyInstance; | ||
|
||
beforeAll(() => { | ||
// The RUM agent logs an unnecessary message here. There's a couple open | ||
// issues need to be fixed to get the ability to turn off all of the logging: | ||
// | ||
// * https://github.com/elastic/apm-agent-rum-js/issues/799 | ||
// * https://github.com/elastic/apm-agent-rum-js/issues/861 | ||
// | ||
// for now, override `console.warn` to filter those messages out. | ||
mockConsole = disableConsoleWarning('[Elastic APM]'); | ||
}); | ||
|
||
afterAll(() => { | ||
mockConsole.mockRestore(); | ||
}); | ||
|
||
it('renders the app', () => { | ||
const { core, config } = mockApmPluginContextValue; | ||
const plugins = { | ||
licensing: { license$: new Observable() }, | ||
triggers_actions_ui: { actionTypeRegistry: {}, alertTypeRegistry: {} }, | ||
usageCollection: { reportUiStats: () => {} }, | ||
}; | ||
const params = { | ||
element: document.createElement('div'), | ||
history: createMemoryHistory(), | ||
}; | ||
jest.spyOn(window, 'scrollTo').mockReturnValueOnce(undefined); | ||
createCallApmApi((core.http as unknown) as HttpSetup); | ||
|
||
jest | ||
.spyOn(window.console, 'warn') | ||
.mockImplementationOnce((message: string) => { | ||
if (message.startsWith('[Elastic APM')) { | ||
return; | ||
} else { | ||
console.warn(message); // eslint-disable-line no-console | ||
} | ||
}); | ||
|
||
let unmount: () => void; | ||
|
||
act(() => { | ||
unmount = renderApp( | ||
(core as unknown) as CoreStart, | ||
(plugins as unknown) as ApmPluginSetupDeps, | ||
(params as unknown) as AppMountParameters, | ||
config | ||
); | ||
}); | ||
|
||
expect(() => { | ||
unmount(); | ||
}).not.toThrowError(); | ||
}); | ||
}); |
Oops, something went wrong.