in server/service/govern/view.go [195:212]
func filterServices(domainProject string, request *pb.GetServicesInfoRequest, service *pb.MicroService) bool {
if !request.WithShared && datasource.IsGlobal(pb.MicroServiceToKey(domainProject, service)) {
return false
}
if len(request.Environment) > 0 && request.Environment != service.Environment {
return false
}
if len(request.AppId) > 0 && request.AppId != service.AppId {
return false
}
if len(request.ServiceName) > 0 && request.ServiceName != service.ServiceName {
return false
}
if len(request.Properties) > 0 && !matchAllProperties(request.Properties, service) {
return false
}
return true
}