This is an automated email from the ASF dual-hosted git repository.
mappjzc 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 2cd48e33a fix: zentao issue commit repeat collector (#5416)
2cd48e33a is described below
commit 2cd48e33a78f60eea190c53586f4b6cbbebaaea2
Author: abeizn <[email protected]>
AuthorDate: Fri Jun 9 17:35:32 2023 +0800
fix: zentao issue commit repeat collector (#5416)
* fix: zentao issue commit repeat collector
* fix: zentao issue commit repeat collector
---
backend/plugins/zentao/tasks/bug_commits_collector.go | 4 ++--
backend/plugins/zentao/tasks/story_commits_collector.go | 4 ++--
backend/plugins/zentao/tasks/task_commits_collector.go | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/backend/plugins/zentao/tasks/bug_commits_collector.go
b/backend/plugins/zentao/tasks/bug_commits_collector.go
index de3f32232..99ffd307f 100644
--- a/backend/plugins/zentao/tasks/bug_commits_collector.go
+++ b/backend/plugins/zentao/tasks/bug_commits_collector.go
@@ -96,7 +96,6 @@ func CollectBugCommits(taskCtx plugin.SubTaskContext)
errors.Error {
Table: RAW_BUG_COMMITS_TABLE,
},
ApiClient: data.ApiClient,
- PageSize: 100,
Input: iterator,
Incremental: incremental,
UrlTemplate: "bugs/{{ .Input.ID }}",
@@ -121,5 +120,6 @@ func CollectBugCommits(taskCtx plugin.SubTaskContext)
errors.Error {
}
type SimpleZentaoBug struct {
- ID int64 `json:"id"`
+ ID int64 `json:"id"`
+ LastEditedDate *api.Iso8601Time `json:"lastEditedDate"`
}
diff --git a/backend/plugins/zentao/tasks/story_commits_collector.go
b/backend/plugins/zentao/tasks/story_commits_collector.go
index 8f3cc5772..0dca49768 100644
--- a/backend/plugins/zentao/tasks/story_commits_collector.go
+++ b/backend/plugins/zentao/tasks/story_commits_collector.go
@@ -98,7 +98,6 @@ func CollectStoryCommits(taskCtx plugin.SubTaskContext)
errors.Error {
Table: RAW_STORY_COMMITS_TABLE,
},
ApiClient: data.ApiClient,
- PageSize: 100,
Input: iterator,
Incremental: incremental,
UrlTemplate: "stories/{{ .Input.ID }}",
@@ -123,5 +122,6 @@ func CollectStoryCommits(taskCtx plugin.SubTaskContext)
errors.Error {
}
type SimpleZentaoStory struct {
- ID int64 `json:"id"`
+ ID int64 `json:"id"`
+ LastEditedDate *api.Iso8601Time `json:"lastEditedDate"`
}
diff --git a/backend/plugins/zentao/tasks/task_commits_collector.go
b/backend/plugins/zentao/tasks/task_commits_collector.go
index 928921cb0..31e96d768 100644
--- a/backend/plugins/zentao/tasks/task_commits_collector.go
+++ b/backend/plugins/zentao/tasks/task_commits_collector.go
@@ -103,7 +103,6 @@ func CollectTaskCommits(taskCtx plugin.SubTaskContext)
errors.Error {
Table: RAW_TASK_COMMITS_TABLE,
},
ApiClient: data.ApiClient,
- PageSize: 100,
Input: iterator,
Incremental: incremental,
UrlTemplate: "tasks/{{ .Input.ID }}",
@@ -128,5 +127,6 @@ func CollectTaskCommits(taskCtx plugin.SubTaskContext)
errors.Error {
}
type SimpleZentaoTask struct {
- ID int64 `json:"id"`
+ ID int64 `json:"id"`
+ LastEditedDate *api.Iso8601Time `json:"lastEditedDate"`
}