Skip to content

Commit

Permalink
Set time keys to undefined if no time series (#2711)
Browse files Browse the repository at this point in the history
* Set time keys to undefined if no time series

* Measure container will never have timeseries
  • Loading branch information
djbarnwal authored Jun 28, 2023
1 parent f00c2fe commit be49cb1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@
metricViewName,
{
measureNames: selectedMeasureNames,
timeStart: timeStart,
timeEnd: timeEnd,
filter: $dashboardStore?.filters,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
{
dimensionName: dimensionName,
measureNames: selectedMeasureNames,
timeStart: timeStart,
timeEnd: timeEnd,
timeStart: hasTimeSeries ? timeStart : undefined,
timeEnd: hasTimeSeries ? timeEnd : undefined,
filter: filterSet,
limit: "250",
offset: "0",
Expand Down Expand Up @@ -208,8 +208,8 @@
metricViewName,
{
measureNames: selectedMeasureNames,
timeStart: timeStart,
timeEnd: timeEnd,
timeStart: hasTimeSeries ? timeStart : undefined,
timeEnd: hasTimeSeries ? timeEnd : undefined,
},
{
query: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@
{
dimensionName: dimensionName,
measureNames: [measure.name],
timeStart: timeStart,
timeEnd: timeEnd,
timeStart: hasTimeSeries ? timeStart : undefined,
timeEnd: hasTimeSeries ? timeEnd : undefined,
filter: filterForDimension,
limit: "250",
offset: "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
metricViewName,
{
measureNames: selectedMeasureNames,
timeStart: timeStart,
timeEnd: timeEnd,
timeStart: hasTimeSeries ? timeStart : undefined,
timeEnd: hasTimeSeries ? timeEnd : undefined,
filter: $dashboardStore?.filters,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
{
limit: $limit,
filter: $dashboardStore.filters,
timeStart: timeStart,
timeEnd: timeEnd,
timeStart: hasTimeSeries ? timeStart : undefined,
timeEnd: hasTimeSeries ? timeEnd : undefined,
},
{
query: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
expression: "count(*)",
},
],
timeStart: timeStart,
timeEnd: timeEnd,
timeStart: hasTimeSeries ? timeStart : undefined,
timeEnd: hasTimeSeries ? timeEnd : undefined,
filter: $dashboardStore?.filters,
},
{
Expand Down

2 comments on commit be49cb1

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://ui.rilldata.com as production
🚀 Deployed on https://649c90b658bbb419f9b3a029--rill-ui.netlify.app

Please sign in to comment.