feat: Support multiple queries per request (#11880)

* refactor: add queriesData fields for multiple queries

* feat: support multi queries request

* lint: fix lint

* lint: fix lint

* lint: fix lint

* fix: fix CR notes

* fix: fix CR notes

* fix: fix CR notes

* fix: fix error case for multi queries

* feat: change queryResponse to queriesResponse

* fix: revert webpack

* test: fix tests

* chore: lint

* chore: adjust asyncEvent to multiple results

* fix: lint

* fix: eslint

* fix: another eslint rule

Co-authored-by: Amit Miran <47772523+amitmiran137@users.noreply.github.com>
Co-authored-by: amitmiran137 <amit.miran@nielsen.com>
This commit is contained in:
simchaNielsen
2020-12-18 19:15:27 +02:00
committed by GitHub
parent 4ae21bf30b
commit 49ec13c68c
17 changed files with 127 additions and 105 deletions

View File

@@ -130,8 +130,10 @@ export class ExploreChartHeader extends React.PureComponent {
chartUpdateEndTime,
chartUpdateStartTime,
latestQueryFormData,
queryResponse,
queriesResponse,
} = this.props.chart;
// TODO: when will get appropriate design for multi queries use all results and not first only
const queryResponse = queriesResponse?.[0];
const chartFinished = ['failed', 'rendered', 'success'].includes(
this.props.chart.chartStatus,
);