DataBiosphere / dos-azul-lambda

Provides access to DSS azul-index in the Data Object Service schemas
https://dos.commons.ucsc-cgp.org
Apache License 2.0
2 stars 2 forks source link

`obj_to_azul` leaks attributes #111

Closed natanlao closed 6 years ago

natanlao commented 6 years ago

The transformation function obj_to_azul is responsible for converting data objects to Azul objects. The function fails to remove some attributes of the data object. If an UpdateDataObject request is made, the malformed object is uploaded with extra fields that do not belong.

┆Issue is synchronized with this JIRA Story ┆Project Name: dos-azul-lambda ┆Issue Number: DAL-72

natanlao commented 6 years ago

This ticket can be closed by

  1. Fixing obj_to_azul such that it does not present objects with incorrect fields
  2. Tweaking the UpdateDataObject endpoint to make partial updates, such that existing metadata is not overwritten