This is an automated email from the ASF dual-hosted git repository.
zhangliang2022 pushed a commit to branch release-v0.17
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v0.17 by this push:
new 958d62fb0 fix: Assign proper value to the column `type` of table
`boards` (#5497) (#5499)
958d62fb0 is described below
commit 958d62fb0dbac0e6e4dfb965de69419200ffc30e
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Jun 15 15:46:57 2023 +0800
fix: Assign proper value to the column `type` of table `boards` (#5497)
(#5499)
* fix: setting boards.type
* fix: unit test
---
backend/plugins/customize/service/service.go | 2 +-
backend/plugins/tapd/api/blueprint_v200.go | 1 +
backend/plugins/tapd/api/blueprint_v200_test.go | 1 +
backend/plugins/tapd/tasks/workspace_converter.go | 1 +
4 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/backend/plugins/customize/service/service.go
b/backend/plugins/customize/service/service.go
index 905a3cd74..911c93928 100644
--- a/backend/plugins/customize/service/service.go
+++ b/backend/plugins/customize/service/service.go
@@ -167,7 +167,7 @@ func (s *Service) SaveBoard(boardId, boardName string)
errors.Error {
Id: boardId,
},
Name: boardName,
- Type: "kanban",
+ Type: "csv",
})
}
diff --git a/backend/plugins/tapd/api/blueprint_v200.go
b/backend/plugins/tapd/api/blueprint_v200.go
index d46734b63..8b8018f59 100644
--- a/backend/plugins/tapd/api/blueprint_v200.go
+++ b/backend/plugins/tapd/api/blueprint_v200.go
@@ -104,6 +104,7 @@ func makeScopesV200(bpScopes []*plugin.BlueprintScopeV200,
connectionId uint64)
Id:
didgen.NewDomainIdGenerator(&models.TapdWorkspace{}).Generate(tapdWorkspace.ConnectionId,
tapdWorkspace.Id),
},
Name: tapdWorkspace.Name,
+ Type: "scrum",
}
scopes = append(scopes, domainBoard)
}
diff --git a/backend/plugins/tapd/api/blueprint_v200_test.go
b/backend/plugins/tapd/api/blueprint_v200_test.go
index 4e43d409f..c4f419f40 100644
--- a/backend/plugins/tapd/api/blueprint_v200_test.go
+++ b/backend/plugins/tapd/api/blueprint_v200_test.go
@@ -69,6 +69,7 @@ func TestMakeDataSourcePipelinePlanV200(t *testing.T) {
Id: "tapd:TapdWorkspace:1:10",
},
Name: "a",
+ Type: "scrum",
}
expectScopes = append(expectScopes, tapdBoard)
diff --git a/backend/plugins/tapd/tasks/workspace_converter.go
b/backend/plugins/tapd/tasks/workspace_converter.go
index b6f616c0f..c887c0e0a 100644
--- a/backend/plugins/tapd/tasks/workspace_converter.go
+++ b/backend/plugins/tapd/tasks/workspace_converter.go
@@ -42,6 +42,7 @@ func ConvertWorkspace(taskCtx plugin.SubTaskContext)
errors.Error {
Id:
getWorkspaceIdGen().Generate(workspace.ConnectionId, workspace.Id),
},
Name: workspace.Name,
+ Type: "scrum",
Url: fmt.Sprintf("%s/%d", "https://tapd.cn", workspace.Id),
}