20470: Fix discovery document generation to drop unpublished fields
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 4 May 2023 22:34:01 +0000 (18:34 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Thu, 4 May 2023 22:34:01 +0000 (18:34 -0400)
commite3c25b992f96b34810c371aa75e30ba8ce40a639
tree65a6000736dbfbd6d0bf2557eaf6226e26342635
parent2c854a99434c76e0165543bedfe9e97a1fe81ae8
20470: Fix discovery document generation to drop unpublished fields

Now uses the list of API published fields (selectable_attributes) to
generate discovery doc, this causes some obsolete and nonpublic fields
to disappear from the discovery doc (but actually they were never part
of the public API in the first place).

The immediate reason to do this is because workbench 1 was using the
discovery document to craft a list of fields to select, but the
changes to the way select work in this branch means that asking for
unpublished fields now throws an error.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
sdk/python/arvados-v1-discovery.json
services/api/app/controllers/arvados/v1/schema_controller.rb