diff --git a/backend/plugins/zentao/api/blueprint_V200_test.go b/backend/plugins/zentao/api/blueprint_V200_test.go index ecd98139f28..114908fc8b2 100644 --- a/backend/plugins/zentao/api/blueprint_V200_test.go +++ b/backend/plugins/zentao/api/blueprint_V200_test.go @@ -62,7 +62,7 @@ func TestMakeDataSourcePipelinePlanV200(t *testing.T) { mockBasicRes(t) bs := &plugin.BlueprintScopeV200{ - Id: "project/1", + Id: "1", } /*bs2 := &plugin.BlueprintScopeV200{ Id: "product/1", diff --git a/backend/plugins/zentao/api/blueprint_v200.go b/backend/plugins/zentao/api/blueprint_v200.go index 06980cb4b08..6c772e63171 100644 --- a/backend/plugins/zentao/api/blueprint_v200.go +++ b/backend/plugins/zentao/api/blueprint_v200.go @@ -18,7 +18,6 @@ limitations under the License. package api import ( - "strings" "time" "github.com/apache/incubator-devlake/core/errors" @@ -67,13 +66,9 @@ func makePipelinePlanV200( ConnectionId: connection.ID, } - //scopeType := strings.Split(bpScope.Id, `/`)[0] - scopeId := strings.Split(bpScope.Id, `/`)[1] - var entities []string - //if scopeType == `project` { - project, scopeConfig, err := projectScopeHelper.DbHelper().GetScopeAndConfig(connection.ID, scopeId) + project, scopeConfig, err := projectScopeHelper.DbHelper().GetScopeAndConfig(connection.ID, bpScope.Id) if err != nil { return nil, nil, err }