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 870d5013 fix(tapd): change api query (#2142)
870d5013 is described below
commit 870d501301eab3e3ee2d55924cef9d42a0c27375
Author: Warren Chen <[email protected]>
AuthorDate: Thu Jun 9 13:43:31 2022 +0800
fix(tapd): change api query (#2142)
closes #2141
---
plugins/tapd/tasks/bug_collector.go | 2 +-
plugins/tapd/tasks/company_extractor.go | 8 ++++----
plugins/tapd/tasks/story_collector.go | 2 +-
plugins/tapd/tasks/task_collector.go | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/plugins/tapd/tasks/bug_collector.go
b/plugins/tapd/tasks/bug_collector.go
index 779b1f2d..6f3cda30 100644
--- a/plugins/tapd/tasks/bug_collector.go
+++ b/plugins/tapd/tasks/bug_collector.go
@@ -72,7 +72,7 @@ func CollectBugs(taskCtx core.SubTaskContext) error {
query.Set("workspace_id", fmt.Sprintf("%v",
data.Options.WorkspaceID))
query.Set("page", fmt.Sprintf("%v", reqData.Pager.Page))
query.Set("limit", fmt.Sprintf("%v",
reqData.Pager.Size))
- query.Set("fields", "label")
+ query.Set("fields", "labels")
query.Set("order", "created asc")
if since != nil {
query.Set("modified", fmt.Sprintf(">%v",
since.Format("YYYY-MM-DD")))
diff --git a/plugins/tapd/tasks/company_extractor.go
b/plugins/tapd/tasks/company_extractor.go
index 0894276f..37045adc 100644
--- a/plugins/tapd/tasks/company_extractor.go
+++ b/plugins/tapd/tasks/company_extractor.go
@@ -26,10 +26,10 @@ import (
var _ core.SubTaskEntryPoint = ExtractCompanies
var ExtractCompanyMeta = core.SubTaskMeta{
- Name: "extractCompanies",
- EntryPoint: ExtractCompanies,
- EnabledByDefault: false,
- Description: "Extract raw company data into tool layer table
_tool_tapd_workspaces",
+ Name: "extractCompanies",
+ EntryPoint: ExtractCompanies,
+ Required: false,
+ Description: "Extract raw company data into tool layer table
_tool_tapd_workspaces",
}
func ExtractCompanies(taskCtx core.SubTaskContext) error {
diff --git a/plugins/tapd/tasks/story_collector.go
b/plugins/tapd/tasks/story_collector.go
index 88848cb5..6ada37a8 100644
--- a/plugins/tapd/tasks/story_collector.go
+++ b/plugins/tapd/tasks/story_collector.go
@@ -70,7 +70,7 @@ func CollectStorys(taskCtx core.SubTaskContext) error {
query.Set("workspace_id", fmt.Sprintf("%v",
data.Options.WorkspaceID))
query.Set("page", fmt.Sprintf("%v", reqData.Pager.Page))
query.Set("limit", fmt.Sprintf("%v",
reqData.Pager.Size))
- query.Set("fields", "label")
+ query.Set("fields", "labels")
query.Set("order", "created asc")
if since != nil {
query.Set("modified", fmt.Sprintf(">%v",
since.Format("YYYY-MM-DD")))
diff --git a/plugins/tapd/tasks/task_collector.go
b/plugins/tapd/tasks/task_collector.go
index 35ea0a60..a69498b6 100644
--- a/plugins/tapd/tasks/task_collector.go
+++ b/plugins/tapd/tasks/task_collector.go
@@ -73,7 +73,7 @@ func CollectTasks(taskCtx core.SubTaskContext) error {
query.Set("workspace_id", fmt.Sprintf("%v",
data.Options.WorkspaceID))
query.Set("page", fmt.Sprintf("%v", reqData.Pager.Page))
query.Set("limit", fmt.Sprintf("%v",
reqData.Pager.Size))
- query.Set("fields", "label")
+ query.Set("fields", "labels")
query.Set("order", "created asc")
if since != nil {
query.Set("modified", fmt.Sprintf(">%v",
since.Format("YYYY-MM-DD")))