Skip to content

Commit

Permalink
naming, switch from series to measures and description in log message
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmroz-allegro committed Feb 14, 2023
1 parent 052cb3d commit a59554d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/routes/query/routes/visualization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function timeVariables(essence: Essence, timekeeper: Timekeeper): Record<string,

if (essence.hasComparison()) {
const previousTimeFilter = essence.previousTimeFilter(timekeeper);
variables.shiftedTimeStart = start(previousTimeFilter);
variables.shiftedStartTime = start(previousTimeFilter);
}

return variables;
Expand All @@ -64,13 +64,13 @@ function timeVariables(essence: Essence, timekeeper: Timekeeper): Record<string,
function logQueryInfo(essence: Essence, timekeeper: Timekeeper, logger: Logger) {
const nonTimeFilters = essence.filter.removeClause(essence.getTimeDimension().name);

logger.log("visualization query", {
logger.log(`Visualization query ${essence.description(timekeeper)}`, {
...timeVariables(essence, timekeeper),
dataCube: essence.dataCube.name,
visualization: essence.visualization.name,
filters: nonTimeFilters.clauses.map(clause => clause.reference).toArray(),
splits: essence.splits.splits.map(split => split.reference).toArray(),
series: essence.series.series.map(series => series.reference).toArray()
measures: essence.series.series.flatMap(series => series.measures()).toSet().toArray()
});
}

Expand Down

0 comments on commit a59554d

Please sign in to comment.