d4x1 commented on code in PR #5956:
URL: 
https://github.com/apache/incubator-devlake/pull/5956#discussion_r1305432963


##########
backend/plugins/zentao/tasks/bug_collector.go:
##########
@@ -32,23 +32,53 @@ const RAW_BUG_TABLE = "zentao_api_bugs"
 
 var _ plugin.SubTaskEntryPoint = CollectBug
 
+var CollectBugMeta = plugin.SubTaskMeta{
+       Name:             "collectBug",
+       EntryPoint:       CollectBug,
+       EnabledByDefault: true,
+       Description:      "Collect Bug data from Zentao api",
+       DomainTypes:      []string{plugin.DOMAIN_TYPE_TICKET},
+}
+
+type collectBugInput struct {
+       Path        string
+       ProjectId   int64
+       ProductId   int64
+       ExecutionId int64
+}
+
 func CollectBug(taskCtx plugin.SubTaskContext) errors.Error {
        data := taskCtx.GetData().(*ZentaoTaskData)
-       cursor, iterator, err := getProductIterator(taskCtx)

Review Comment:
   maybe @Startrekzky   can help  answer it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to