Skip to content

Commit

Permalink
Merge branch 'main' into legend-actions-aria
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula authored Feb 21, 2023
2 parents e5aa9ff + 38f26e7 commit 6a5aefc
Show file tree
Hide file tree
Showing 62 changed files with 1,955 additions and 1,193 deletions.
2 changes: 1 addition & 1 deletion fleet_packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[
{
"name": "apm",
"version": "8.8.0-preview-1675842740",
"version": "8.8.0-preview-1676887316",
"forceAlignStackVersion": true
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@
"@types/redux-logger": "^3.0.8",
"@types/resolve": "^1.20.1",
"@types/seedrandom": ">=2.0.0 <4.0.0",
"@types/selenium-webdriver": "^4.1.10",
"@types/selenium-webdriver": "^4.1.11",
"@types/semver": "^7",
"@types/set-value": "^2.0.0",
"@types/sharp": "^0.30.4",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/kbn-doc-links/src/get_doc_links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
createAlerts: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/create-alerts.html`,
syntheticsCommandReference: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetics-configuration.html#synthetics-configuration-playwright-options`,
syntheticsProjectMonitors: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetic-run-tests.html#synthetic-monitor-choose-project`,
syntheticsMigrateFromIntegration: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetics-migrate-from-integration.html`,
},
alerting: {
guide: `${KIBANA_DOCS}create-and-manage-rules.html`,
Expand Down
1 change: 1 addition & 0 deletions packages/kbn-doc-links/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ export interface DocLinks {
createAlerts: string;
syntheticsCommandReference: string;
syntheticsProjectMonitors: string;
syntheticsMigrateFromIntegration: string;
}>;
readonly alerting: Readonly<{
guide: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-ecs/generated/ecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export interface EcsEcs {
* ECS version this event conforms to. `ecs.version` is a required field and must exist in all events.
* When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
*/
version: '8.6.0';
version: '8.6.1';
}
43 changes: 28 additions & 15 deletions packages/kbn-ecs/generated/ecs_flat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13765,14 +13765,27 @@ export const EcsFlat = {
short: 'Date/time indicator was last reported.',
type: 'date',
},
'threat.enrichments.indicator.marking.tlp.version': {
'threat.enrichments.indicator.marking.tlp': {
dashed_name: 'threat-enrichments-indicator-marking-tlp',
description: 'Traffic Light Protocol sharing markings.',
example: 'CLEAR',
expected_values: ['WHITE', 'CLEAR', 'GREEN', 'AMBER', 'AMBER+STRICT', 'RED'],
flat_name: 'threat.enrichments.indicator.marking.tlp',
ignore_above: 1024,
level: 'extended',
name: 'enrichments.indicator.marking.tlp',
normalize: [],
short: 'Indicator TLP marking',
type: 'keyword',
},
'threat.enrichments.indicator.marking.tlp_version': {
dashed_name: 'threat-enrichments-indicator-marking-tlp-version',
description: 'Traffic Light Protocol version.',
example: 2,
flat_name: 'threat.enrichments.indicator.marking.tlp.version',
flat_name: 'threat.enrichments.indicator.marking.tlp_version',
ignore_above: 1024,
level: 'extended',
name: 'enrichments.indicator.marking.tlp.version',
name: 'enrichments.indicator.marking.tlp_version',
normalize: [],
short: 'Indicator TLP version',
type: 'keyword',
Expand Down Expand Up @@ -16202,6 +16215,18 @@ export const EcsFlat = {
short: 'Indicator TLP marking',
type: 'keyword',
},
'threat.indicator.marking.tlp_version': {
dashed_name: 'threat-indicator-marking-tlp-version',
description: 'Traffic Light Protocol version.',
example: 2,
flat_name: 'threat.indicator.marking.tlp_version',
ignore_above: 1024,
level: 'extended',
name: 'indicator.marking.tlp_version',
normalize: [],
short: 'Indicator TLP version',
type: 'keyword',
},
'threat.indicator.modified_at': {
dashed_name: 'threat-indicator-modified-at',
description:
Expand Down Expand Up @@ -17129,18 +17154,6 @@ export const EcsFlat = {
short: 'Threat subtechnique URL reference.',
type: 'keyword',
},
'threat.threat.indicator.marking.tlp.version': {
dashed_name: 'threat-threat-indicator-marking-tlp-version',
description: 'Traffic Light Protocol version.',
example: 2,
flat_name: 'threat.threat.indicator.marking.tlp.version',
ignore_above: 1024,
level: 'extended',
name: 'threat.indicator.marking.tlp.version',
normalize: [],
short: 'Indicator TLP version',
type: 'keyword',
},
'tls.cipher': {
dashed_name: 'tls-cipher',
description: 'String indicating the cipher used during the current connection.',
Expand Down
43 changes: 28 additions & 15 deletions packages/kbn-ecs/generated/ecs_nested.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15969,14 +15969,27 @@ export const EcsNested = {
short: 'Date/time indicator was last reported.',
type: 'date',
},
'threat.enrichments.indicator.marking.tlp.version': {
'threat.enrichments.indicator.marking.tlp': {
dashed_name: 'threat-enrichments-indicator-marking-tlp',
description: 'Traffic Light Protocol sharing markings.',
example: 'CLEAR',
expected_values: ['WHITE', 'CLEAR', 'GREEN', 'AMBER', 'AMBER+STRICT', 'RED'],
flat_name: 'threat.enrichments.indicator.marking.tlp',
ignore_above: 1024,
level: 'extended',
name: 'enrichments.indicator.marking.tlp',
normalize: [],
short: 'Indicator TLP marking',
type: 'keyword',
},
'threat.enrichments.indicator.marking.tlp_version': {
dashed_name: 'threat-enrichments-indicator-marking-tlp-version',
description: 'Traffic Light Protocol version.',
example: 2,
flat_name: 'threat.enrichments.indicator.marking.tlp.version',
flat_name: 'threat.enrichments.indicator.marking.tlp_version',
ignore_above: 1024,
level: 'extended',
name: 'enrichments.indicator.marking.tlp.version',
name: 'enrichments.indicator.marking.tlp_version',
normalize: [],
short: 'Indicator TLP version',
type: 'keyword',
Expand Down Expand Up @@ -18414,6 +18427,18 @@ export const EcsNested = {
short: 'Indicator TLP marking',
type: 'keyword',
},
'threat.indicator.marking.tlp_version': {
dashed_name: 'threat-indicator-marking-tlp-version',
description: 'Traffic Light Protocol version.',
example: 2,
flat_name: 'threat.indicator.marking.tlp_version',
ignore_above: 1024,
level: 'extended',
name: 'indicator.marking.tlp_version',
normalize: [],
short: 'Indicator TLP version',
type: 'keyword',
},
'threat.indicator.modified_at': {
dashed_name: 'threat-indicator-modified-at',
description:
Expand Down Expand Up @@ -19344,18 +19369,6 @@ export const EcsNested = {
short: 'Threat subtechnique URL reference.',
type: 'keyword',
},
'threat.threat.indicator.marking.tlp.version': {
dashed_name: 'threat-threat-indicator-marking-tlp-version',
description: 'Traffic Light Protocol version.',
example: 2,
flat_name: 'threat.threat.indicator.marking.tlp.version',
ignore_above: 1024,
level: 'extended',
name: 'threat.indicator.marking.tlp.version',
normalize: [],
short: 'Indicator TLP version',
type: 'keyword',
},
},
group: 2,
name: 'threat',
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-ecs/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import { EcsVlan } from './vlan';
import { EcsVulnerability } from './vulnerability';
import { EcsX509 } from './x509';

export const EcsVersion = '8.6.0' as const;
export const EcsVersion = '8.6.1' as const;

/**
* Exporting raw schema files for easy programmatic use
Expand Down
17 changes: 4 additions & 13 deletions packages/kbn-ecs/generated/threat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,10 @@ export interface EcsThreat {
* Traffic Light Protocol sharing markings.
*/
tlp?: string;
/**
* Traffic Light Protocol version.
*/
tlp_version?: string;
};

/**
Expand Down Expand Up @@ -875,17 +879,4 @@ export interface EcsThreat {
reference?: string[];
};
};

threat?: {
indicator?: {
marking?: {
tlp?: {
/**
* Traffic Light Protocol version.
*/
version?: string;
};
};
};
};
}
37 changes: 20 additions & 17 deletions x-pack/plugins/apm/public/components/routing/app_root/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import { ApmErrorBoundary } from '../apm_error_boundary';
import { apmRouter } from '../apm_route_config';
import { RedirectDependenciesToDependenciesInventory } from './redirect_dependencies_to_dependencies_inventory';
import { TrackPageview } from '../track_pageview';
import { UpdateExecutionContextOnRouteChange } from './update_execution_context_on_route_change';

const storage = new Storage(localStorage);

Expand Down Expand Up @@ -73,24 +74,26 @@ export function ApmAppRoot({
<RedirectWithDefaultDateRange>
<RedirectWithOffset>
<TrackPageview>
<BreadcrumbsContextProvider>
<UrlParamsProvider>
<LicenseProvider>
<AnomalyDetectionJobsContextProvider>
<InspectorContextProvider>
<ApmThemeProvider>
<MountApmHeaderActionMenu />
<UpdateExecutionContextOnRouteChange>
<BreadcrumbsContextProvider>
<UrlParamsProvider>
<LicenseProvider>
<AnomalyDetectionJobsContextProvider>
<InspectorContextProvider>
<ApmThemeProvider>
<MountApmHeaderActionMenu />

<Route
component={ScrollToTopOnPathChange}
/>
<RouteRenderer />
</ApmThemeProvider>
</InspectorContextProvider>
</AnomalyDetectionJobsContextProvider>
</LicenseProvider>
</UrlParamsProvider>
</BreadcrumbsContextProvider>
<Route
component={ScrollToTopOnPathChange}
/>
<RouteRenderer />
</ApmThemeProvider>
</InspectorContextProvider>
</AnomalyDetectionJobsContextProvider>
</LicenseProvider>
</UrlParamsProvider>
</BreadcrumbsContextProvider>
</UpdateExecutionContextOnRouteChange>
</TrackPageview>
</RedirectWithOffset>
</RedirectWithDefaultDateRange>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { useExecutionContext } from '@kbn/kibana-react-plugin/public';
import { useMatchRoutes } from '@kbn/typed-react-router-config';
import { last } from 'lodash';
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';

export function UpdateExecutionContextOnRouteChange({
children,
}: {
children: React.ReactElement;
}) {
const { core } = useApmPluginContext();
const lastMatch = last(useMatchRoutes());

useExecutionContext(core.executionContext, {
type: 'application',
name: 'apm',
page: lastMatch?.match?.path,
});

return children;
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const ConnectorConfigurationConfig: React.FC = ({ children }) => {
displayList.length > 0 && (
<EuiFlexGroup direction="column">
<EuiFlexItem>
<EuiDescriptionList listItems={displayList} />
<EuiDescriptionList listItems={displayList} className="eui-textBreakWord" />
</EuiFlexItem>
<EuiFlexItem>
<EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ export const SelectConnector: React.FC = () => {
<EuiSpacer size="s" />
<EuiFlexGroup direction="row">
{NATIVE_CONNECTORS.map((nativeConnector) => (
<EuiFlexItem>
<EuiFlexItem key={nativeConnector.name}>
<ConnectorCheckable
{...nativeConnector}
name={nativeConnector.name}
serviceType={nativeConnector.serviceType}
onChange={() => setSelectedConnector(nativeConnector)}
documentationUrl={nativeConnector.docsUrl}
checked={nativeConnector === selectedNativeConnector}
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/infra/docs/state_machines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ implementation patterns:

- [Patterns for designing XState state machines](./xstate_machine_patterns.md)
- [Patterns for using XState with React](./xstate_react_patterns.md)
- [Patterns for working with URLs and URL precedence](./xstate_url_patterns_and_precedence.md)
Loading

0 comments on commit 6a5aefc

Please sign in to comment.