You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2021/03/22 00:52:01 UTC
[servicecomb-service-center] branch master updated: remove schemas
and props response, no client use it (#906)
This is an automated email from the ASF dual-hosted git repository.
littlecui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/master by this push:
new abcd38f remove schemas and props response, no client use it (#906)
abcd38f is described below
commit abcd38fbaa8c3472e5fcf6bf775eff357e61469d
Author: Shawn <xi...@gmail.com>
AuthorDate: Mon Mar 22 08:51:52 2021 +0800
remove schemas and props response, no client use it (#906)
---
datasource/etcd/ms.go | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/datasource/etcd/ms.go b/datasource/etcd/ms.go
index 34aad64..8e2f81b 100644
--- a/datasource/etcd/ms.go
+++ b/datasource/etcd/ms.go
@@ -209,6 +209,7 @@ func (ds *DataSource) GetService(ctx context.Context, request *pb.GetServiceRequ
}, nil
}
+// GetServiceDetail is only for govern API
func (ds *DataSource) GetServiceDetail(ctx context.Context, request *pb.GetServiceRequest) (
*pb.GetServiceDetailResponse, error) {
domainProject := util.ParseDomainProject(ctx)
@@ -261,6 +262,7 @@ func (ds *DataSource) GetServiceDetail(ctx context.Context, request *pb.GetServi
}, nil
}
+// GetServicesInfo is only for govern API
func (ds *DataSource) GetServicesInfo(ctx context.Context, request *pb.GetServicesInfoRequest) (
*pb.GetServicesInfoResponse, error) {
ctx = util.WithCacheOnly(ctx)
@@ -320,7 +322,8 @@ func (ds *DataSource) GetServicesInfo(ctx context.Context, request *pb.GetServic
continue
}
}
-
+ service.Properties = nil
+ service.Schemas = nil
serviceDetail, err := getServiceDetailUtil(ctx, ServiceDetailOpt{
domainProject: domainProject,
service: service,