You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "mappjzc (via GitHub)" <gi...@apache.org> on 2023/06/14 06:58:16 UTC
[GitHub] [incubator-devlake] mappjzc commented on a diff in pull request #5468: fix: fix jira remote api
mappjzc commented on code in PR #5468:
URL: https://github.com/apache/incubator-devlake/pull/5468#discussion_r1229104155
##########
backend/plugins/jira/api/remote.go:
##########
@@ -76,3 +83,8 @@ func initialQuery(queryData *api.RemoteQueryData) url.Values {
query.Set("startAt", fmt.Sprintf("%v", (queryData.Page-1)*queryData.PerPage))
return query
}
+
+func analyzingQuery(maxResults int, startAt int, queryData *api.RemoteQueryData) {
+ queryData.PerPage = maxResults
+ queryData.Page = startAt/maxResults + 1
Review Comment:
I am not sure. I think it can not happen.
--
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: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org