This is an automated email from the ASF dual-hosted git repository.

mappjzc pushed a commit to branch zentao-fix
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 5db74ab15e64eccf87d2b1c0c648fb03bfac3537
Author: Nddtfjiang <[email protected]>
AuthorDate: Wed Jun 21 19:34:39 2023 +0000

    fix: scope id fix
    
    Fix scope id
    
    Nddtfjiang <[email protected]>
---
 backend/plugins/zentao/api/blueprint_v200.go | 4 ++--
 backend/plugins/zentao/api/remote.go         | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/backend/plugins/zentao/api/blueprint_v200.go 
b/backend/plugins/zentao/api/blueprint_v200.go
index 817a8c338..06980cb4b 100644
--- a/backend/plugins/zentao/api/blueprint_v200.go
+++ b/backend/plugins/zentao/api/blueprint_v200.go
@@ -18,6 +18,7 @@ limitations under the License.
 package api
 
 import (
+       "strings"
        "time"
 
        "github.com/apache/incubator-devlake/core/errors"
@@ -67,8 +68,7 @@ func makePipelinePlanV200(
                }
 
                //scopeType := strings.Split(bpScope.Id, `/`)[0]
-               //scopeId := strings.Split(bpScope.Id, `/`)[1]
-               scopeId := bpScope.Id
+               scopeId := strings.Split(bpScope.Id, `/`)[1]
 
                var entities []string
 
diff --git a/backend/plugins/zentao/api/remote.go 
b/backend/plugins/zentao/api/remote.go
index bf3328102..ceac38bbc 100644
--- a/backend/plugins/zentao/api/remote.go
+++ b/backend/plugins/zentao/api/remote.go
@@ -51,10 +51,10 @@ func (pr *ProjectResponse) ConvertFix() {
 
 func getGroup(basicRes context2.BasicRes, gid string, queryData 
*api.RemoteQueryData, connection models.ZentaoConnection) 
([]api.BaseRemoteGroupResponse, errors.Error) {
        return []api.BaseRemoteGroupResponse{
-               {
+               /*{
                        Id:   `products`,
                        Name: `Products`,
-               },
+               },*/
                {
                        Id:   `projects`,
                        Name: `Projects`,

Reply via email to