File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps, DetailsHeade
131
131
const { currentDateRangeType } = this . state ;
132
132
133
133
const showContent = report && ! providersError && providers ?. meta ?. count > 0 ;
134
- const showCostDistribution = groupBy === 'project' && report ?. meta ?. distributed_overhead === true ;
134
+ const showCostDistribution = costDistribution === ComputedReportItemValueType . distributed ; // Always show -- see https://issues.redhat.com/browse/COST-5870
135
135
136
136
let cost : string | React . ReactNode = < EmptyValueState /> ;
137
137
let supplementaryCost : string | React . ReactNode = < EmptyValueState /> ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import React from 'react';
16
16
import type { WrappedComponentProps } from 'react-intl' ;
17
17
import { injectIntl } from 'react-intl' ;
18
18
import { connect } from 'react-redux' ;
19
+ import { ComputedReportItemValueType } from 'routes/components/charts/common' ;
19
20
import { CostDistribution } from 'routes/components/costDistribution' ;
20
21
import { CostType } from 'routes/components/costType' ;
21
22
import { Currency } from 'routes/components/currency' ;
@@ -280,7 +281,6 @@ class ExplorerHeaderBase extends React.Component<ExplorerHeaderProps, ExplorerHe
280
281
perspective,
281
282
providersFetchStatus,
282
283
query,
283
- report,
284
284
startDate,
285
285
} = this . props ;
286
286
@@ -299,7 +299,7 @@ class ExplorerHeaderBase extends React.Component<ExplorerHeaderProps, ExplorerHe
299
299
const resourcePathsType = getResourcePathsType ( perspective ) ;
300
300
const tagPathsType = getTagReportPathsType ( perspective ) ;
301
301
302
- const showCostDistribution = costDistribution && report ?. meta ?. distributed_overhead === true ;
302
+ const showCostDistribution = costDistribution === ComputedReportItemValueType . distributed ; // Always show -- see https://issues.redhat.com/browse/COST-5870
303
303
304
304
return (
305
305
< header style = { styles . header } >
Original file line number Diff line number Diff line change @@ -135,8 +135,7 @@ class ExplorerTableBase extends React.Component<ExplorerTableProps, ExplorerTabl
135
135
136
136
const isGroupByProject = groupBy === 'project' ;
137
137
const showPlatformCosts = perspective === PerspectiveType . ocp && isGroupByProject ;
138
- const showCostDistribution =
139
- costDistribution === ComputedReportItemValueType . distributed && report ?. meta ?. distributed_overhead === true ;
138
+ const showCostDistribution = costDistribution === ComputedReportItemValueType . distributed ; // Always show -- see https://issues.redhat.com/browse/COST-5870
140
139
141
140
const computedItems = getUnsortedComputedReportItems < any , any > ( {
142
141
report,
You can’t perform that action at this time.
0 commit comments