You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2024/01/09 03:04:29 UTC
(incubator-devlake) branch fix#6612 updated: fix: mysql busy buffer, fails to fully parse all all pull request metrics
This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch fix#6612
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/fix#6612 by this push:
new 90601e18c fix: mysql busy buffer, fails to fully parse all all pull request metrics
90601e18c is described below
commit 90601e18c6fbf7eb3ab1532e7e83b71256e0dd05
Author: abeizn <zi...@merico.dev>
AuthorDate: Tue Jan 9 11:04:18 2024 +0800
fix: mysql busy buffer, fails to fully parse all all pull request metrics
---
backend/plugins/dora/tasks/change_lead_time_calculator.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/plugins/dora/tasks/change_lead_time_calculator.go b/backend/plugins/dora/tasks/change_lead_time_calculator.go
index 5ebd51e85..f36303b8c 100644
--- a/backend/plugins/dora/tasks/change_lead_time_calculator.go
+++ b/backend/plugins/dora/tasks/change_lead_time_calculator.go
@@ -49,7 +49,7 @@ func CalculateChangeLeadTime(taskCtx plugin.SubTaskContext) errors.Error {
// Get pull requests by repo project_name
cursor, err := db.Cursor(
- dal.Select("pr.*"),
+ dal.Select("pr.id, pr.pull_request_key, pr.author_id, pr.merge_commit_sha, pr.created_date, pr.merged_date"),
dal.From("pull_requests pr"),
dal.Join(`LEFT JOIN project_mapping pm ON (pm.row_id = pr.base_repo_id)`),
dal.Where("pr.merged_date IS NOT NULL AND pm.project_name = ? AND pm.table = 'repos'", data.Options.ProjectName),