Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enterprise Search] Remove last updated stat card from Index Detail: Overview in Content app #136666

Merged
merged 2 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const GenerateApiKeyPanel: React.FC = () => {
)}
<EuiFlexGroup>
<EuiFlexItem>
<EuiPanel>
<EuiPanel hasBorder>
<EuiFlexGroup direction="column">
<EuiFlexItem>
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ export const SearchIndexOverview: React.FC = () => {
}
/>
)}
{isApi && <GenerateApiKeyPanel />}
{isApi && (
<>
<EuiSpacer />
<GenerateApiKeyPanel />
</>
)}
{isCrawler && (
<>
<EuiSpacer />
<CrawlRequestsPanel />
<CrawlDetailsFlyout />
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import { EuiFlexGroup, EuiFlexItem, EuiPanel, EuiStat, EuiStatProps } from '@ela

import { i18n } from '@kbn/i18n';

import { CustomFormattedTimestamp } from '../../../shared/custom_formatted_timestamp/custom_formatted_timestamp';

import { OverviewLogic } from './overview.logic';

interface TotalStatsProps {
Expand All @@ -26,9 +24,6 @@ interface TotalStatsProps {
export const TotalStats: React.FC<TotalStatsProps> = ({ ingestionType, additionalItems = [] }) => {
const { indexData, isSuccess } = useValues(OverviewLogic);
const documentCount = indexData?.total.docs.count ?? 0;
const lastUpdated = (
<CustomFormattedTimestamp timestamp={Date.now() - 1000 * 60 * 12 /* TODO: Implement this */} />
);
const isLoading = !isSuccess;
const stats: EuiStatProps[] = [
{
Expand All @@ -51,16 +46,6 @@ export const TotalStats: React.FC<TotalStatsProps> = ({ ingestionType, additiona
isLoading,
title: documentCount,
},
{
description: i18n.translate(
'xpack.enterpriseSearch.content.searchIndex.totalStats.lastUpdatedCardLabel',
{
defaultMessage: 'Last updated',
}
),
isLoading,
title: lastUpdated,
},
...additionalItems,
];

Expand Down