Skip to content

Commit

Permalink
Merge pull request #2196 from afreen23/bug-fix-infotips
Browse files Browse the repository at this point in the history
Bug fix for infotips in Persistent and Object service dashboards
  • Loading branch information
openshift-merge-robot authored Jul 31, 2019
2 parents c0f8934 + 2b6c8ff commit 5f2a1af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { GreenCheckCircleIcon, RedExclamationCircleIcon } from '@console/shared'
import { DashboardCard } from '@console/internal/components/dashboard/dashboard-card/card';
import { DashboardCardBody } from '@console/internal/components/dashboard/dashboard-card/card-body';
import { DashboardCardHeader } from '@console/internal/components/dashboard/dashboard-card/card-header';
import { DashboardCardHelp } from '@console/internal/components/dashboard/dashboard-card';
import { DashboardCardTitle } from '@console/internal/components/dashboard/dashboard-card/card-title';
import {
withDashboardResources,
DashboardItemProps,
withDashboardResources,
} from '@console/internal/components/dashboards-page/with-dashboard-resources';
import { DATA_RESILIENCY_QUERIES } from '../../../../constants/queries';

Expand Down Expand Up @@ -71,6 +72,8 @@ const DataResiliency: React.FC<DashboardItemProps> = ({
'result',
]);

const infoText =
'Data Resiliency presents status of data replication and rebalancing operations.';
const totalPg = getCapacityStats(totalPGRaw);
const cleanAndActivePg = getCapacityStats(cleanAndActivePGRaw);

Expand All @@ -82,6 +85,7 @@ const DataResiliency: React.FC<DashboardItemProps> = ({
<DashboardCard className="ceph-data-resiliency__dashboard-card">
<DashboardCardHeader>
<DashboardCardTitle>Data Resiliency</DashboardCardTitle>
<DashboardCardHelp>{infoText}</DashboardCardHelp>
</DashboardCardHeader>
<DashboardCardBody
className="ceph-data-resiliency__dashboard-body"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const SavingsItem: React.FC<SavingsItemProps> = React.memo(
({ savings, logicalSize, isLoading }) => {
let text = <span className="text-secondary">Unavailable</span>;
const infoText =
'Efficiency ratio refers to the deduplication and compression process effectiveness.';
'Savings shows the uncompressed and non-deduped data that would have been stored without those techniques';

if (isLoading) {
text = <LoadingInline />;
Expand Down

0 comments on commit 5f2a1af

Please sign in to comment.