Skip to content

Commit

Permalink
Merge pull request #3071 from dlabrecq/bugs2
Browse files Browse the repository at this point in the history
Adjusted query params for for "All projects" modal
  • Loading branch information
dlabrecq authored Apr 11, 2023
2 parents e0c8e04 + 2280fe6 commit fba77a1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ const mapStateToProps = createMapStateToProps<SummaryModalContentOwnProps, Summa
...(queryFromRoute &&
queryFromRoute.filter &&
queryFromRoute.filter.account && { [`${logicalAndPrefix}account`]: queryFromRoute.filter.account }),
...(groupBy && { [groupBy]: groupByValue }), // group bys must appear in filter to show costs by regions, accounts, etc
// Omit filters associated with the current group_by -- see https://issues.redhat.com/browse/COST-1131 and https://issues.redhat.com/browse/COST-3642
...(groupBy && groupByValue !== '*' && { [groupBy]: undefined }),
// Related to https://issues.redhat.com/browse/COST-1131 and https://issues.redhat.com/browse/COST-3642
...(groupBy && groupByValue !== '*' && { [groupBy]: groupByValue }), // group bys must appear in filter to show costs by region, account, etc
// Workaround for https://issues.redhat.com/browse/COST-1189
...(queryState &&
queryState.filter_by &&
Expand Down

0 comments on commit fba77a1

Please sign in to comment.