17119: when the count: none option is supplied, the itemsAvailable field
authorWard Vandewege <ward@curii.com>
Mon, 22 Mar 2021 20:28:00 +0000 (16:28 -0400)
committerWard Vandewege <ward@curii.com>
Mon, 22 Mar 2021 21:06:40 +0000 (17:06 -0400)
       should be omitted from the response for the group contents API
       call.

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

lib/controller/router/response.go

index 6e933fc00ed291483eb93279497c48f2d4365618..03cdcf18d27e4fcf3df814ab3c652c3479456165 100644 (file)
@@ -31,6 +31,9 @@ func (rtr *router) responseOptions(opts interface{}) (responseOptions, error) {
        case *arvados.ListOptions:
                rOpts.Select = opts.Select
                rOpts.Count = opts.Count
+       case *arvados.GroupContentsOptions:
+               rOpts.Select = opts.Select
+               rOpts.Count = opts.Count
        }
        return rOpts, nil
 }