From 01f069aec72f0e38a7ab582a48de6107c2eb962b Mon Sep 17 00:00:00 2001 From: David Kagan Date: Thu, 30 Mar 2023 16:57:07 -0400 Subject: [PATCH] WIP on DeleteShard in API, drilling down to lower levels of FB --- api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api.go b/api.go index 35a8ae6ad..b8aa8e817 100644 --- a/api.go +++ b/api.go @@ -773,6 +773,10 @@ func (api *API) DeleteShard(_ context.Context, indexName string, shardID uint64) } // Get views of shards + // --> maybe can use InMemSharder() from disco? + sharder := disco.NewInMemSharder() + ctx := context.Background() + // sharder.Shards(ctx, idx,) <-- need a field name // ??? sv := idx.fieldView2shard().removeField() // ??? maybe just use the api.DeleteField() method?