{!isOrganization && (
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_result_detail_card.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_result_detail_card.tsx
index eef508b2e618f..8b0a72ac23e39 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_result_detail_card.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_result_detail_card.tsx
@@ -62,7 +62,7 @@ export const ExampleResultDetailCard: React.FC = () => {
{detailFields.length > 0 ? (
detailFields.map(({ fieldName, label }, index) => {
- const value = result[fieldName] as string;
+ const value = result[fieldName];
const dateValue = getAsLocalDateTimeString(value);
return (
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_search_result_group.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_search_result_group.tsx
index 549faf1676a54..3ca5b619c0366 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_search_result_group.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_search_result_group.tsx
@@ -117,7 +117,7 @@ export const ExampleSearchResultGroup: React.FC = () => {
data-test-subj="MediaTypeField"
>
- {mimeType(result[mediaTypeField] as string)}
+ {mimeType(result[mediaTypeField])}
)}
@@ -135,8 +135,7 @@ export const ExampleSearchResultGroup: React.FC = () => {
by {result[updatedByField]}
)}
- {getAsLocalDateTimeString(result.last_updated as string) ||
- result.last_updated}
+ {getAsLocalDateTimeString(result.last_updated) || result.last_updated}
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_standout_result.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_standout_result.tsx
index 46b8de6789467..b3ba4c6d50973 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_standout_result.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/example_standout_result.tsx
@@ -109,7 +109,7 @@ export const ExampleStandoutResult: React.FC = () => {
data-test-subj="MediaTypeField"
>
- {mimeType(result[mediaTypeField] as string)}
+ {mimeType(result[mediaTypeField])}
)}
@@ -127,7 +127,7 @@ export const ExampleStandoutResult: React.FC = () => {
by {result[updatedByField]}
)}
- {getAsLocalDateTimeString(result.last_updated as string) || result.last_updated}
+ {getAsLocalDateTimeString(result.last_updated) || result.last_updated}
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/subtitle_field.test.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/subtitle_field.test.tsx
index 76c28ae3d4060..7506c499dff31 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/subtitle_field.test.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/subtitle_field.test.tsx
@@ -5,6 +5,8 @@
* 2.0.
*/
+import { exampleResult } from '../../../../__mocks__/content_sources.mock';
+
import React from 'react';
import { shallow } from 'enzyme';
@@ -12,7 +14,11 @@ import { shallow } from 'enzyme';
import { SubtitleField } from './subtitle_field';
describe('SubtitleField', () => {
- const result = { foo: 'bar' };
+ const result = {
+ ...exampleResult.exampleDocuments[0],
+ foo: 'bar',
+ };
+
it('renders', () => {
const props = {
result,
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/title_field.test.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/title_field.test.tsx
index 2ed4aa0b0fad1..e5681bc7e8619 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/title_field.test.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/display_settings/title_field.test.tsx
@@ -5,6 +5,8 @@
* 2.0.
*/
+import { exampleResult } from '../../../../__mocks__/content_sources.mock';
+
import React from 'react';
import { shallow } from 'enzyme';
@@ -12,7 +14,10 @@ import { shallow } from 'enzyme';
import { TitleField } from './title_field';
describe('TitleField', () => {
- const result = { foo: 'bar' };
+ const result = {
+ ...exampleResult.exampleDocuments[0],
+ foo: 'bar',
+ };
it('renders', () => {
const props = {
result,
@@ -26,7 +31,10 @@ describe('TitleField', () => {
it('handles title when array', () => {
const props = {
- result: { foo: ['baz', 'bar'] },
+ result: {
+ ...exampleResult.exampleDocuments[0],
+ foo: ['baz', 'bar'],
+ },
titleField: 'foo',
titleFieldHover: false,
};
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/source_content.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/source_content.tsx
index a0e3c28f20eb0..a97cc85cb822a 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/source_content.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/source_content.tsx
@@ -137,7 +137,7 @@ export const SourceContent: React.FC = () => {
)}
{urlFieldIsLinkable && (
-
+
)}
diff --git a/x-pack/plugins/ml/public/application/management/jobs_list/components/insufficient_license_page.tsx b/x-pack/plugins/ml/public/application/management/jobs_list/components/insufficient_license_page.tsx
index 6d0c3639d939c..7fcac0ad6992a 100644
--- a/x-pack/plugins/ml/public/application/management/jobs_list/components/insufficient_license_page.tsx
+++ b/x-pack/plugins/ml/public/application/management/jobs_list/components/insufficient_license_page.tsx
@@ -30,7 +30,7 @@ export const InsufficientLicensePage: FC = ({ basePath }) => (
}
@@ -38,13 +38,13 @@ export const InsufficientLicensePage: FC = ({ basePath }) => (
),
diff --git a/x-pack/plugins/security_solution/common/cti/constants.ts b/x-pack/plugins/security_solution/common/cti/constants.ts
index 631a13df1ecb1..7b22e9036f566 100644
--- a/x-pack/plugins/security_solution/common/cti/constants.ts
+++ b/x-pack/plugins/security_solution/common/cti/constants.ts
@@ -65,9 +65,9 @@ export const CTI_DEFAULT_SOURCES = [
'Abuse Malware',
'AlienVault OTX',
'Anomali',
- 'Anomali ThreatStream',
'Malware Bazaar',
'MISP',
+ 'Recorded Future',
];
export const DEFAULT_CTI_SOURCE_INDEX = ['filebeat-*'];
diff --git a/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx b/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx
index b34f6e657d39a..51ce06762ddf9 100644
--- a/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx
+++ b/x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx
@@ -159,10 +159,10 @@ export const ThreatIntelPanelView: React.FC = ({
alignItems="center"
justifyContent="flexEnd"
>
-
+
{count}
-
+
{path ? (
{linkCopy}
diff --git a/x-pack/plugins/security_solution/public/overview/containers/overview_cti_links/index.tsx b/x-pack/plugins/security_solution/public/overview/containers/overview_cti_links/index.tsx
index b7f919dc97013..8839aff7dc33d 100644
--- a/x-pack/plugins/security_solution/public/overview/containers/overview_cti_links/index.tsx
+++ b/x-pack/plugins/security_solution/public/overview/containers/overview_cti_links/index.tsx
@@ -74,8 +74,8 @@ export const useCtiDashboardLinks = (
})
)
);
- const items = DashboardsSO.savedObjects?.reduce(
- (acc: CtiListItem[], dashboardSO, i) => {
+ const items = DashboardsSO.savedObjects
+ ?.reduce((acc: CtiListItem[], dashboardSO, i) => {
const item = createLinkFromDashboardSO(
dashboardSO,
eventCountsByDataset,
@@ -87,9 +87,8 @@ export const useCtiDashboardLinks = (
acc.push(item);
}
return acc;
- },
- []
- );
+ }, [])
+ .sort((a, b) => (a.title > b.title ? 1 : -1));
setListItems(items);
} else {
handleDisabledPlugin();