Should not inherit all of the AbstractCommonResource properties from the parent
In the creation of dataset records we are getting all the properties and values for AbstractCommonResources
from the parent records. I would argue that we actually don't want to carry most of those down to the dataset, but instead leave them at the WPC. For example, we should not add the TechnicalAssuranceID
from the WPC on the dataset.
In /app/services/dataset.py:
existent_common_resources = set(parent_record.data.keys()).intersection(set(CommonResources.schema()["properties"]))
record_data = {key: parent_record.data[key] for key in existent_common_resources}
record_data.update({
"DatasetProperties": {
"FileSourceInfo": {
"FileSource": file_source,
"FileSize": file_size,
},
},
})