fix project Id issues
This commit is contained in:
parent
dd5a424022
commit
d7cdaa5565
1 changed files with 2 additions and 5 deletions
|
@ -489,7 +489,7 @@ class TimeSeries extends Calculator
|
||||||
$query .= "WHERE \"time\" > '{$start}' ";
|
$query .= "WHERE \"time\" > '{$start}' ";
|
||||||
$query .= "AND \"time\" < '{$end}' ";
|
$query .= "AND \"time\" < '{$end}' ";
|
||||||
$query .= "AND \"metric_type\"='counter' {$filters} ";
|
$query .= "AND \"metric_type\"='counter' {$filters} ";
|
||||||
$query .= "GROUP BY time({$period['key']}), \"projectId\", \"projectInternalId\" {$groupBy} ";
|
$query .= "GROUP BY time({$period['key']}), \"projectId\" {$groupBy} ";
|
||||||
$query .= "FILL(null)";
|
$query .= "FILL(null)";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -511,12 +511,9 @@ class TimeSeries extends Calculator
|
||||||
}
|
}
|
||||||
|
|
||||||
$value = (!empty($point['value'])) ? $point['value'] : 0;
|
$value = (!empty($point['value'])) ? $point['value'] : 0;
|
||||||
if (empty($point['projectInternalId'] ?? null)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->createOrUpdateMetric(
|
$this->createOrUpdateMetric(
|
||||||
$point['projectInternalId'],
|
$point['projectId'],
|
||||||
$point['time'],
|
$point['time'],
|
||||||
$period['key'],
|
$period['key'],
|
||||||
$metricUpdated,
|
$metricUpdated,
|
||||||
|
|
Loading…
Reference in a new issue