[ARVADOS] created: 2.1.0-1612-ga969c0d3e

Git user git at public.arvados.org
Fri Nov 12 19:18:08 UTC 2021


        at  a969c0d3e97c2aeff0b64f9f0c8052f71eefa576 (commit)


commit a969c0d3e97c2aeff0b64f9f0c8052f71eefa576
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Fri Nov 12 16:17:14 2021 -0300

    18215: Only respond with selected fields on create & update calls.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/lib/controller/router/response.go b/lib/controller/router/response.go
index 03cdcf18d..01126bcb4 100644
--- a/lib/controller/router/response.go
+++ b/lib/controller/router/response.go
@@ -26,6 +26,10 @@ type responseOptions struct {
 func (rtr *router) responseOptions(opts interface{}) (responseOptions, error) {
 	var rOpts responseOptions
 	switch opts := opts.(type) {
+	case *arvados.CreateOptions:
+		rOpts.Select = opts.Select
+	case *arvados.UpdateOptions:
+		rOpts.Select = opts.Select
 	case *arvados.GetOptions:
 		rOpts.Select = opts.Select
 	case *arvados.ListOptions:

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list