Revert "Panel: omit query API call when the panel is a row (#75847)" (#78475)

pull/77375/head^2
Juan Cabanas 2 years ago committed by GitHub
parent b843221730
commit cbb607b36f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      public/app/features/dashboard/state/PanelModel.test.ts
  2. 4
      public/app/features/dashboard/state/PanelModel.ts

@ -590,15 +590,6 @@ describe('PanelModel', () => {
expect(model.getQueryRunner).toBeCalled();
});
it('when called then it should not call all pending queries if the panel is a row', () => {
model.getQueryRunner = jest.fn().mockReturnValue({
run: jest.fn(),
});
model.type = 'row';
model.runAllPanelQueries({});
expect(model.getQueryRunner).not.toBeCalled();
});
});
});
});

@ -362,10 +362,6 @@ export class PanelModel implements DataConfigSource, IPanelModel {
}
runAllPanelQueries({ dashboardUID, dashboardTimezone, timeData, width }: RunPanelQueryOptions) {
if (this.type === 'row') {
return;
}
this.getQueryRunner().run({
datasource: this.datasource,
queries: this.targets,

Loading…
Cancel
Save