likyh commented on code in PR #4320:
URL:
https://github.com/apache/incubator-devlake/pull/4320#discussion_r1095704244
##########
backend/helpers/pluginhelper/api/api_collector.go:
##########
@@ -208,13 +212,43 @@ func (collector *ApiCollector) exec(input interface{}) {
}
if collector.args.PageSize <= 0 {
collector.fetchAsync(reqData, nil)
+ } else if collector.args.PageInOrder {
+ collector.fetchPagesInOrder(reqData)
} else if collector.args.GetTotalPages != nil {
collector.fetchPagesDetermined(reqData)
} else {
collector.fetchPagesUndetermined(reqData)
}
}
+// fetchPagesInOrder fetches data of all pages in order to build query by prev
response
+func (collector *ApiCollector) fetchPagesInOrder(reqData *RequestData) {
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]