Skip to content

Commit ca29717

Browse files
authored
Fix the issue where the ReportTree component remains in a loading state when the result exceeds MAX_QUERY_SIZE
The MAX_QUERY_SIZE constant is defined in the report_server.thrift file as const i64 MAX_QUERY_SIZE = 500. After being compiled into a JavaScript package, Thrift i64 constants are not of type number in JavaScript and therefore cannot be used directly.
1 parent 327070d commit ca29717

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/server/vue-cli/src/components/Report/ReportTree/ReportTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default {
147147
// in the given file.
148148
ccService.getClient().getRunResults(runIds, limit, offset, sortType,
149149
reportFilter, cmpData, getDetails, handleThriftError(reports => {
150-
if (reports.length === MAX_QUERY_SIZE) {
150+
if (reports.length === MAX_QUERY_SIZE.toNumber()) {
151151
const currentReport =
152152
reports.find(r => r.reportId.equals(this.report.reportId));
153153
if (!currentReport) {

0 commit comments

Comments
 (0)