Skip to content

Commit a035f16

Browse files
author
diosmosis
committed
Change force_format_processed_metrics query param to format_metrics in remaining places.
1 parent 4883a33 commit a035f16

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

core/API/DataTableManipulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ protected function callApiAndReturnDataTable($apiModule, $method, $request)
173173
$request['serialize'] = 0;
174174
$request['expanded'] = 0;
175175
$request['format'] = 'original';
176-
$request['force_format_processed_metrics'] = 0;
176+
$request['format_metrics'] = 0;
177177

178178
// don't want to run recursive filters on the subtables as they are loaded,
179179
// otherwise the result will be empty in places (or everywhere). instead we

core/API/DataTablePostProcessor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ public function __construct($apiModule, $apiMethod, $request)
8080
*/
8181
public function process(DataTableInterface $dataTable)
8282
{
83-
// TODO: when calculating metrics before hand, only calculate for needed metrics, not all.
83+
// TODO: when calculating metrics before hand, only calculate for needed metrics, not all. NOTE:
84+
// this is non-trivial since it will require, eg, to make sure processed metrics aren't added
85+
// after pivotBy is handled.
8486
$dataTable = $this->applyPivotByFilter($dataTable);
8587
$dataTable = $this->applyFlattener($dataTable);
8688
$dataTable = $this->applyTotalsCalculator($dataTable);

plugins/Overlay/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function renderSidebar()
7272
. '&period=' . urlencode($period)
7373
. '&label=' . urlencode($label)
7474
. '&format=original'
75-
. '&force_format_processed_metrics=1'
75+
. '&format_metrics=1'
7676
);
7777
$dataTable = $request->process();
7878

0 commit comments

Comments
 (0)