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

[incubator-devlake] branch main updated: fix(zentao): use zentaoExecution as boardIdGen (#3788)

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

warren 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 cb5e87e0d fix(zentao): use zentaoExecution as boardIdGen (#3788)
cb5e87e0d is described below

commit cb5e87e0d120b046337c893f1f9c00eff4dbc814
Author: Luna <48...@users.noreply.github.com>
AuthorDate: Wed Nov 23 16:05:25 2022 +0800

    fix(zentao): use zentaoExecution as boardIdGen (#3788)
    
    * fix(zentao): use zentaoExecution as boardIdGen
    
    * fix(zentao): update e2e
    
    Co-authored-by: Warren Chen <yi...@merico.dev>
---
 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 dbbf76bbd..9364a4165 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:ZentaoProduct:1:3,zentao:ZentaoTask:1:1
-zentao:ZentaoProduct:1:3,zentao:ZentaoTask:1:2
-zentao:ZentaoProduct:1:3,zentao:ZentaoTask:1:3
+zentao:ZentaoExecution:1:3,zentao:ZentaoTask:1:1
+zentao:ZentaoExecution:1:3,zentao:ZentaoTask:1:2
+zentao:ZentaoExecution:1:3,zentao:ZentaoTask:1:3
diff --git a/plugins/zentao/tasks/task_convertor.go b/plugins/zentao/tasks/task_convertor.go
index cccedaa16..fb6bddf2e 100644
--- a/plugins/zentao/tasks/task_convertor.go
+++ b/plugins/zentao/tasks/task_convertor.go
@@ -44,7 +44,7 @@ func ConvertTask(taskCtx core.SubTaskContext) errors.Error {
 	data := taskCtx.GetData().(*ZentaoTaskData)
 	db := taskCtx.GetDal()
 	storyIdGen := didgen.NewDomainIdGenerator(&models.ZentaoStory{})
-	boardIdGen := didgen.NewDomainIdGenerator(&models.ZentaoProduct{})
+	boardIdGen := didgen.NewDomainIdGenerator(&models.ZentaoExecution{})
 	taskIdGen := didgen.NewDomainIdGenerator(&models.ZentaoTask{})
 	cursor, err := db.Cursor(
 		dal.From(&models.ZentaoTask{}),