any
| |
+| [name](./kibana-plugin-public.ihttpfetcherror.name.md) | string
| |
| [req](./kibana-plugin-public.ihttpfetcherror.req.md) | Request
| |
| [request](./kibana-plugin-public.ihttpfetcherror.request.md) | Request
| |
| [res](./kibana-plugin-public.ihttpfetcherror.res.md) | Response
| |
diff --git a/docs/infrastructure/images/infra-sysmon.png b/docs/infrastructure/images/infra-sysmon.png
index 5b82d8c9b4e19..dd653bb046f45 100644
Binary files a/docs/infrastructure/images/infra-sysmon.png and b/docs/infrastructure/images/infra-sysmon.png differ
diff --git a/docs/infrastructure/images/infra-view-metrics.png b/docs/infrastructure/images/infra-view-metrics.png
index 9ad862ec6515d..6001f18d283fe 100644
Binary files a/docs/infrastructure/images/infra-view-metrics.png and b/docs/infrastructure/images/infra-view-metrics.png differ
diff --git a/docs/infrastructure/images/metrics-add-data.png b/docs/infrastructure/images/metrics-add-data.png
index d9640e0d9f5da..f96c30f0e1848 100644
Binary files a/docs/infrastructure/images/metrics-add-data.png and b/docs/infrastructure/images/metrics-add-data.png differ
diff --git a/docs/infrastructure/images/metrics-explorer-screen.png b/docs/infrastructure/images/metrics-explorer-screen.png
index 7ccf8891678af..6d56491f7d485 100644
Binary files a/docs/infrastructure/images/metrics-explorer-screen.png and b/docs/infrastructure/images/metrics-explorer-screen.png differ
diff --git a/docs/logs/images/log-rate-anomalies.png b/docs/logs/images/log-rate-anomalies.png
index ac9ff7c9a5235..74ce8d682e1cc 100644
Binary files a/docs/logs/images/log-rate-anomalies.png and b/docs/logs/images/log-rate-anomalies.png differ
diff --git a/docs/logs/images/log-rate-entries.png b/docs/logs/images/log-rate-entries.png
index f8a3acc9883e0..efa693a2ac529 100644
Binary files a/docs/logs/images/log-rate-entries.png and b/docs/logs/images/log-rate-entries.png differ
diff --git a/docs/logs/images/log-time-filter.png b/docs/logs/images/log-time-filter.png
index 863e488e6c6c0..ffba6f972aeb7 100644
Binary files a/docs/logs/images/log-time-filter.png and b/docs/logs/images/log-time-filter.png differ
diff --git a/docs/logs/images/logs-add-data.png b/docs/logs/images/logs-add-data.png
index 2c4a65590aa1b..176c71466aa38 100644
Binary files a/docs/logs/images/logs-add-data.png and b/docs/logs/images/logs-add-data.png differ
diff --git a/docs/logs/images/logs-console.png b/docs/logs/images/logs-console.png
index 5feb3d9608974..8e94c31c6862a 100644
Binary files a/docs/logs/images/logs-console.png and b/docs/logs/images/logs-console.png differ
diff --git a/docs/logs/using.asciidoc b/docs/logs/using.asciidoc
index f191f7d746cf8..d84a9260521c7 100644
--- a/docs/logs/using.asciidoc
+++ b/docs/logs/using.asciidoc
@@ -8,7 +8,6 @@ You can also view related application traces or uptime information where availab
[role="screenshot"]
image::logs/images/logs-console.png[Logs Console in Kibana]
-// ++ Update this
[float]
[[logs-search]]
diff --git a/docs/management/advanced-options.asciidoc b/docs/management/advanced-options.asciidoc
index 9caa3900fccfd..ec626677d0902 100644
--- a/docs/management/advanced-options.asciidoc
+++ b/docs/management/advanced-options.asciidoc
@@ -8,6 +8,7 @@ for displayed decimal values.
. Go to *Management > {kib} > Advanced Settings*.
. Scroll or search for the setting you want to modify.
. Enter a new value for the setting.
+. Click *Save changes*.
[float]
@@ -34,7 +35,7 @@ removes it from {kib} permanently.
[float]
[[kibana-general-settings]]
-=== General settings
+==== General
[horizontal]
`csv:quoteValues`:: Set this property to `true` to quote exported values.
@@ -109,7 +110,7 @@ cluster alert notifications from Monitoring.
[float]
[[kibana-accessibility-settings]]
-=== Accessibility settings
+==== Accessibility
[horizontal]
`accessibility:disableAnimations`:: Turns off all unnecessary animations in the
@@ -117,14 +118,14 @@ cluster alert notifications from Monitoring.
[float]
[[kibana-dashboard-settings]]
-=== Dashboard settings
+==== Dashboard
[horizontal]
`xpackDashboardMode:roles`:: The roles that belong to <= Readonly<{ [K in keyof P]: TypeO export type ObjectTypeOptions
= TypeOptions< { [K in keyof P]: TypeOf
} > & { + /** Should uknown keys not be defined in the schema be allowed. Defaults to `false` */ allowUnknowns?: boolean; }; export class ObjectType
extends Type = {}) {
+ constructor(props: P, { allowUnknowns = false, ...typeOptions }: ObjectTypeOptions = {}) {
const schemaKeys = {} as Record
+
+
200
@@ -101,12 +97,8 @@ Array [
+
+
status:200
@@ -125,12 +117,8 @@ Array [
+
+
status:[400 TO 499]
@@ -149,12 +137,8 @@ Array [
+
+
status:[400 TO 499] AND extension:PHP
@@ -173,12 +157,8 @@ Array [
+
+
status:[400 TO 499] AND (extension:php OR extension:html)
@@ -291,15 +271,9 @@ Array [
-
-
+
+
@@ -320,15 +294,9 @@ Array [
-
{"reason":"Awful error"}
-
+
+
diff --git a/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/histogram.tsx b/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/histogram.tsx
index 77bbab97d95c7..8db3c77ba0f47 100644
--- a/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/histogram.tsx
+++ b/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/histogram.tsx
@@ -41,7 +41,7 @@ import {
} from '@elastic/charts';
import { i18n } from '@kbn/i18n';
-import { EuiChartThemeType } from '@elastic/eui/src/themes/charts/themes';
+import { EuiChartThemeType } from '@elastic/eui/dist/eui_charts_theme';
import { Subscription } from 'rxjs';
import { getServices, timezoneProvider } from '../../../kibana_services';
diff --git a/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/no_results.test.js b/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/no_results.test.js
index 7de792c612993..98a4a926a282e 100644
--- a/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/no_results.test.js
+++ b/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/no_results.test.js
@@ -36,6 +36,31 @@ jest.mock('../../../kibana_services', () => {
};
});
+// Mocking to prevent errors with React portal.
+// Temporary until https://github.com/elastic/kibana/pull/55877 provides other alternatives.
+jest.mock('@elastic/eui/lib/components/code/code_block', () => {
+ const React = require.requireActual('react');
+ return {
+ EuiCodeBlock: ({ children }) => (
+
{"reason":"Bad error"}
+
+ {children}
+ {children}
+
+ ),
+ };
+});
+
beforeEach(() => {
jest.clearAllMocks();
});
diff --git a/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js b/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js
index 39a9ca6641fd1..bf5049cd976a3 100644
--- a/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js
+++ b/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js
@@ -60,7 +60,6 @@ import {
ensureDefaultIndexPattern,
registerTimefilterWithGlobalStateFactory,
} from '../../kibana_services';
-import { Vis } from '../../../../../visualizations/public';
const {
core,
@@ -71,6 +70,7 @@ const {
timefilter,
toastNotifications,
uiSettings,
+ visualizations,
} = getServices();
import { getRootBreadcrumbs, getSavedSearchBreadcrumbs } from '../helpers/breadcrumbs';
@@ -990,7 +990,10 @@ function discoverController(
},
};
- $scope.vis = new Vis($scope.searchSource.getField('index'), visSavedObject.visState);
+ $scope.vis = new visualizations.Vis(
+ $scope.searchSource.getField('index'),
+ visSavedObject.visState
+ );
visSavedObject.vis = $scope.vis;
$scope.searchSource.onRequestStart((searchSource, options) => {
diff --git a/src/legacy/core_plugins/kibana/public/discover/plugin.ts b/src/legacy/core_plugins/kibana/public/discover/plugin.ts
index a495b56d5e9ea..565382313e369 100644
--- a/src/legacy/core_plugins/kibana/public/discover/plugin.ts
+++ b/src/legacy/core_plugins/kibana/public/discover/plugin.ts
@@ -36,6 +36,10 @@ import { DocViewInput, DocViewInputFn } from './np_ready/doc_views/doc_views_typ
import { DocViewTable } from './np_ready/components/table/table';
import { JsonCodeBlock } from './np_ready/components/json_code_block/json_code_block';
import { HomePublicPluginSetup } from '../../../../../plugins/home/public';
+import {
+ VisualizationsStart,
+ VisualizationsSetup,
+} from '../../../visualizations/public/np_ready/public';
/**
* These are the interfaces with your public contracts. You should export these
@@ -51,6 +55,7 @@ export interface DiscoverSetupPlugins {
embeddable: IEmbeddableSetup;
kibanaLegacy: KibanaLegacySetup;
home: HomePublicPluginSetup;
+ visualizations: VisualizationsSetup;
}
export interface DiscoverStartPlugins {
uiActions: UiActionsStart;
@@ -60,6 +65,7 @@ export interface DiscoverStartPlugins {
data: DataPublicPluginStart;
share: SharePluginStart;
inspector: any;
+ visualizations: VisualizationsStart;
}
const innerAngularName = 'app/discover';
const embeddableAngularName = 'app/discoverEmbeddable';
diff --git a/src/legacy/core_plugins/kibana/public/home/index.ts b/src/legacy/core_plugins/kibana/public/home/index.ts
index 768e1a96de935..74b6da33c6542 100644
--- a/src/legacy/core_plugins/kibana/public/home/index.ts
+++ b/src/legacy/core_plugins/kibana/public/home/index.ts
@@ -17,17 +17,13 @@
* under the License.
*/
+import { PluginInitializerContext } from 'kibana/public';
import { npSetup, npStart } from 'ui/new_platform';
import { HomePlugin } from './plugin';
-(async () => {
- const instance = new HomePlugin();
- instance.setup(npSetup.core, {
- ...npSetup.plugins,
- __LEGACY: {
- metadata: npStart.core.injectedMetadata.getLegacyMetadata(),
- },
- });
+const instance = new HomePlugin({
+ env: npSetup.plugins.kibanaLegacy.env,
+} as PluginInitializerContext);
+instance.setup(npSetup.core, npSetup.plugins);
- instance.start(npStart.core, npStart.plugins);
-})();
+instance.start(npStart.core, npStart.plugins);
diff --git a/src/legacy/core_plugins/kibana/public/home/kibana_services.ts b/src/legacy/core_plugins/kibana/public/home/kibana_services.ts
index 57696d874cc40..6cb1531be6b5b 100644
--- a/src/legacy/core_plugins/kibana/public/home/kibana_services.ts
+++ b/src/legacy/core_plugins/kibana/public/home/kibana_services.ts
@@ -21,12 +21,10 @@ import {
ChromeStart,
DocLinksStart,
HttpStart,
- LegacyNavLink,
NotificationsSetup,
OverlayStart,
SavedObjectsClientContract,
IUiSettingsClient,
- UiSettingsState,
} from 'kibana/public';
import { UiStatsMetricType } from '@kbn/analytics';
import { TelemetryPluginStart } from '../../../../../plugins/telemetry/public';
@@ -39,19 +37,7 @@ import { KibanaLegacySetup } from '../../../../../plugins/kibana_legacy/public';
export interface HomeKibanaServices {
indexPatternService: any;
- metadata: {
- app: unknown;
- bundleId: string;
- nav: LegacyNavLink[];
- version: string;
- branch: string;
- buildNum: number;
- buildSha: string;
- basePath: string;
- serverName: string;
- devMode: boolean;
- uiSettings: { defaults: UiSettingsState; user?: UiSettingsState | undefined };
- };
+ kibanaVersion: string;
getInjected: (name: string, defaultValue?: any) => unknown;
chrome: ChromeStart;
uiSettings: IUiSettingsClient;
diff --git a/src/legacy/core_plugins/kibana/public/home/np_ready/components/__snapshots__/sample_data_view_data_button.test.js.snap b/src/legacy/core_plugins/kibana/public/home/np_ready/components/__snapshots__/sample_data_view_data_button.test.js.snap
index e08d802406fff..661d1d33a5283 100644
--- a/src/legacy/core_plugins/kibana/public/home/np_ready/components/__snapshots__/sample_data_view_data_button.test.js.snap
+++ b/src/legacy/core_plugins/kibana/public/home/np_ready/components/__snapshots__/sample_data_view_data_button.test.js.snap
@@ -14,6 +14,7 @@ exports[`should render popover when appLinks is not empty 1`] = `
}
closePopover={[Function]}
+ data-test-subj="launchSampleDataSetecommerce"
display="inlineBlock"
hasArrow={true}
id="sampleDataLinksecommerce"
diff --git a/src/legacy/core_plugins/kibana/public/home/np_ready/components/sample_data_view_data_button.js b/src/legacy/core_plugins/kibana/public/home/np_ready/components/sample_data_view_data_button.js
index e6f5c07c94f9f..cb43c18a8e78b 100644
--- a/src/legacy/core_plugins/kibana/public/home/np_ready/components/sample_data_view_data_button.js
+++ b/src/legacy/core_plugins/kibana/public/home/np_ready/components/sample_data_view_data_button.js
@@ -112,6 +112,7 @@ export class SampleDataViewDataButton extends React.Component {
closePopover={this.closePopover}
panelPaddingSize="none"
anchorPosition="downCenter"
+ data-test-subj={`launchSampleDataSet${this.props.id}`}
>