You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zh...@apache.org on 2022/11/23 11:46:14 UTC

[incubator-devlake] branch main updated: fix(zentao): update for board issues (#3795)

This is an automated email from the ASF dual-hosted git repository.

zhangliang2022 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 76fe0fa92 fix(zentao): update for board issues (#3795)
76fe0fa92 is described below

commit 76fe0fa92ada9bbdef7f48735e420de1f915ff64
Author: Warren Chen <yi...@merico.dev>
AuthorDate: Wed Nov 23 19:45:47 2022 +0800

    fix(zentao): update for board issues (#3795)
---
 plugins/zentao/e2e/snapshot_tables/board_issues_task.csv | 6 +++---
 plugins/zentao/tasks/task_convertor.go                   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/zentao/e2e/snapshot_tables/board_issues_task.csv b/plugins/zentao/e2e/snapshot_tables/board_issues_task.csv
index 9364a4165..68458d5e5 100644
--- a/plugins/zentao/e2e/snapshot_tables/board_issues_task.csv
+++ b/plugins/zentao/e2e/snapshot_tables/board_issues_task.csv
@@ -1,4 +1,4 @@
 board_id,issue_id
-zentao:ZentaoExecution:1:3,zentao:ZentaoTask:1:1
-zentao:ZentaoExecution:1:3,zentao:ZentaoTask:1:2
-zentao:ZentaoExecution:1:3,zentao:ZentaoTask:1:3
+zentao:ZentaoExecution:1:1,zentao:ZentaoTask:1:1
+zentao:ZentaoExecution:1:1,zentao:ZentaoTask:1:2
+zentao:ZentaoExecution:1:1,zentao:ZentaoTask:1:3
diff --git a/plugins/zentao/tasks/task_convertor.go b/plugins/zentao/tasks/task_convertor.go
index fb6bddf2e..077fb43ac 100644
--- a/plugins/zentao/tasks/task_convertor.go
+++ b/plugins/zentao/tasks/task_convertor.go
@@ -102,7 +102,7 @@ func ConvertTask(taskCtx core.SubTaskContext) errors.Error {
 				domainEntity.LeadTimeMinutes = int64(toolEntity.ClosedDate.ToNullableTime().Sub(toolEntity.OpenedDate.ToTime()).Minutes())
 			}
 			domainBoardIssue := &ticket.BoardIssue{
-				BoardId: boardIdGen.Generate(data.Options.ConnectionId, data.Options.ProductId),
+				BoardId: boardIdGen.Generate(data.Options.ConnectionId, data.Options.ExecutionId),
 				IssueId: domainEntity.Id,
 			}
 			results := make([]interface{}, 0)