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:10:10 UTC
[incubator-devlake] branch release-v0.14 updated: fix(zentao): use zentaoExecution as boardIdGen (#3788) (#3790)
This is an automated email from the ASF dual-hosted git repository.
warren pushed a commit to branch release-v0.14
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v0.14 by this push:
new 39789bc9b fix(zentao): use zentaoExecution as boardIdGen (#3788) (#3790)
39789bc9b is described below
commit 39789bc9b7104afacde7211eabc15ec68fd219ab
Author: Warren Chen <yi...@merico.dev>
AuthorDate: Wed Nov 23 16:10:05 2022 +0800
fix(zentao): use zentaoExecution as boardIdGen (#3788) (#3790)
* fix(zentao): use zentaoExecution as boardIdGen
* fix(zentao): update e2e
Co-authored-by: Warren Chen <yi...@merico.dev>
Co-authored-by: Luna <48...@users.noreply.github.com>
---
plugins/zentao/e2e/snapshot_tables/board_issues_task.csv | 3 +++
plugins/zentao/tasks/task_convertor.go | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/plugins/zentao/e2e/snapshot_tables/board_issues_task.csv b/plugins/zentao/e2e/snapshot_tables/board_issues_task.csv
index 5500305c8..9364a4165 100644
--- a/plugins/zentao/e2e/snapshot_tables/board_issues_task.csv
+++ b/plugins/zentao/e2e/snapshot_tables/board_issues_task.csv
@@ -1 +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
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{}),