This is an automated email from the ASF dual-hosted git repository.
klesh 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 9b9290e7a fix: scope id fix (#5563)
9b9290e7a is described below
commit 9b9290e7a328d7c14d9e3ef06144d6e1f86c7d0e
Author: mappjzc <[email protected]>
AuthorDate: Mon Jun 26 11:15:08 2023 +0800
fix: scope id fix (#5563)
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`,