1. 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.
The transformation function azul_to_obj is responsible for converting Azul objects to data objects. This function presents a data object missing fields present in the Azul object. While this is technically compliant with the schema, this can result in data loss on an UpdateDataObject as all attributes not handled in azul_to_obj are literally lost in translation.
┆Issue is synchronized with this JIRA Story
┆Project Name: dos-azul-lambda
┆Issue Number: DAL-71
There are a couple issues at hand.
1. The transformation functionobj_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.azul_to_obj
is responsible for converting Azul objects to data objects. This function presents a data object missing fields present in the Azul object. While this is technically compliant with the schema, this can result in data loss on an UpdateDataObject as all attributes not handled inazul_to_obj
are literally lost in translation.┆Issue is synchronized with this JIRA Story ┆Project Name: dos-azul-lambda ┆Issue Number: DAL-71