Skip to content

Commit

Permalink
fix(productViewOpenShiftContainer): ent-3607 config date range (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Apr 26, 2021
1 parent d61e933 commit 005ca08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ exports[`ProductViewOpenShiftContainer Component should render a non-connected c
productLabel="OpenShift Metric"
query={
Object {
"beginning": "2019-06-20T00:00:00.000Z",
"ending": "2019-07-20T23:59:59.999Z",
"beginning": "2019-07-01T00:00:00.000Z",
"ending": "2019-07-31T23:59:59.999Z",
"granularity": "daily",
}
}
Expand Down
6 changes: 2 additions & 4 deletions src/components/productView/productViewOpenShiftContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,8 @@ ProductViewOpenShiftContainer.defaultProps = {
query: {},
graphTallyQuery: {
[RHSM_API_QUERY_TYPES.GRANULARITY]: GRANULARITY_TYPES.DAILY,
[RHSM_API_QUERY_TYPES.START_DATE]: dateHelpers
.getRangedDateTime(GRANULARITY_TYPES.DAILY)
.startDate.toISOString(),
[RHSM_API_QUERY_TYPES.END_DATE]: dateHelpers.getRangedDateTime(GRANULARITY_TYPES.DAILY).endDate.toISOString()
[RHSM_API_QUERY_TYPES.START_DATE]: dateHelpers.getRangedMonthDateTime('current').value.startDate.toISOString(),
[RHSM_API_QUERY_TYPES.END_DATE]: dateHelpers.getRangedMonthDateTime('current').value.endDate.toISOString()
},
inventoryHostsQuery: {
[RHSM_API_QUERY_TYPES.SORT]: RHSM_API_QUERY_SORT_TYPES.LAST_SEEN,
Expand Down

0 comments on commit 005ca08

Please sign in to comment.