Skip to content

Commit

Permalink
send query_performance
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane committed Oct 3, 2024
1 parent 1097f98 commit 722db42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/packages/operators/src/operators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ export class ExecutionContext {
public get groupSlice(): any {
return this._currentContext.groupSlice;
}

public get queryPerformance(): boolean {
return Boolean(this._currentContext.queryPerformance);
}

getCurrentPanelId(): string | null {
return this.params.panel_id || this.currentPanel?.id || null;
}
Expand Down Expand Up @@ -711,6 +711,7 @@ export async function executeOperatorWithContext(
view: currentContext.view,
view_name: currentContext.viewName,
group_slice: currentContext.groupSlice,
query_performance: currentContext.queryPerformance,
}
);
result = serverResult.result;
Expand Down
1 change: 1 addition & 0 deletions app/packages/operators/src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ const useExecutionContext = (operatorName, hooks = {}) => {
viewName,
currentSample,
groupSlice,
queryPerformance,
]);

return ctx;
Expand Down

0 comments on commit 722db42

Please sign in to comment.