Update persistablereference by UnitOfMeasureID
Changes related to Issue
Example record before persistableRereference update:
{
"records": [
{
"data": {
...
},
"meta": [
{
"kind": "osdu",
"name": "m",
"persistableReference": "{\"abcd\":{\"a\":0.0,\"b\":1.0,\"c\":1.0,\"d\":0.0},\"symbol\":\"m\",\"baseMeasurement\":{\"ancestry\":\"L\",\"type\":\"UM\"},\"type\":\"UAD\"}",
"unitOfMeasureID": "osdu:reference-data--UnitOfMeasure:ft:",
"propertyNames": ["VerticalMeasurements[].VerticalMeasurement"]
}
],
...
}
}
Example record after persistableRereference update and before unit conversion:
[
{
"recordJsonObject": {
"data": {
...
},
"meta": [
{
"kind": "osdu",
"name": "m",
"persistableReference": "{\"abcd\":{\"a\":0.0,\"b\":0.3048,\"c\":1.0,\"d\":0.0},\"symbol\":\"ft\",\"baseMeasurement\":{\"ancestry\":\"L\",\"type\":\"UM\"},\"type\":\"UAD\"}",
"unitOfMeasureID": "osdu:reference-data--UnitOfMeasure:ft:",
"propertyNames": ["VerticalMeasurements[].VerticalMeasurement"]
}
],
...
}
]
WIP: integration tests needs to be added/updated