From f1df7206f1633f4dd7c9979a42c51c5dec1f4680 Mon Sep 17 00:00:00 2001 From: b5 Date: Fri, 15 Jun 2018 17:36:06 -0400 Subject: [PATCH] fix(list peer datasets): fix to make listing peer datasets work this is a hack-fix for now because in the long run we're hoping to get away from the net/rpc package that's causing these problems in the first place (hoping to replace with gRPC). --- lib/datasets.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/datasets.go b/lib/datasets.go index 6fd28aabc..f0cc62cb7 100644 --- a/lib/datasets.go +++ b/lib/datasets.go @@ -126,10 +126,16 @@ func (r *DatasetRequests) List(p *ListParams, res *[]repo.DatasetRef) error { Limit: p.Limit, Offset: p.Offset, }) - *res = replies if err != nil { err = fmt.Errorf("error requesting dataset list: %s", err.Error()) } + // TODO - for now we're removing schemas b/c they don't serialize properly over RPC + for _, rep := range replies { + if rep.Dataset.Structure != nil { + rep.Dataset.Structure.Schema = nil + } + } + *res = replies return err }