-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hello, could you please suggest if it is possible to implement something like updateMode configuration property with two or more possible values, for example?
"change-tracking": {
"updateMode": "coalesce" | "default"
}
So in case of current implementation the history looks like
{
@odata.context: "$metadata#IncidentChanges",
value: [
{
ID: "c9ae4cf3-f647-4911-8ee9-ad63df8c4ef8",
keys: "ID=3583f982-d7df-4aad-ab26-301d4a157cd7",
attribute: "title",
valueChangedFrom: "Solar panel broken",
valueChangedTo: "Solar panel broken 1",
entityID: "",
entity: "sap.capire.incidents.Incidents",
serviceEntity: "ProcessorService.Incidents",
parentEntityID: null,
parentKey: "",
serviceEntityPath: "ProcessorService.Incidents(3583f982-d7df-4aad-ab26-301d4a157cd7)",
modification: "update",
valueDataType: "cds.String",
changeLog_ID: "f78cd805-9015-4c09-a223-541ec3c03007"
},
{
ID: "e9238928-c149-4fbe-a9c1-3d697122de48",
keys: "ID=3583f982-d7df-4aad-ab26-301d4a157cd7",
attribute: "title",
valueChangedFrom: "Solar panel broken 1",
valueChangedTo: "Solar panel broken 2",
entityID: "",
entity: "sap.capire.incidents.Incidents",
serviceEntity: "ProcessorService.Incidents",
parentEntityID: null,
parentKey: "",
serviceEntityPath: "ProcessorService.Incidents(3583f982-d7df-4aad-ab26-301d4a157cd7)",
modification: "update",
valueDataType: "cds.String",
changeLog_ID: "d4bc1226-ac41-4a10-92f3-99f11f14a55b"
}
]
}
But when coalesce is selected, then we get only the final change like
{
@odata.context: "$metadata#IncidentChanges",
value: [
{
ID: "e9238928-c149-4fbe-a9c1-3d697122de48",
keys: "ID=3583f982-d7df-4aad-ab26-301d4a157cd7",
attribute: "title",
valueChangedFrom: "Solar panel broken",
valueChangedTo: "Solar panel broken 2",
entityID: "",
entity: "sap.capire.incidents.Incidents",
serviceEntity: "ProcessorService.Incidents",
parentEntityID: null,
parentKey: "",
serviceEntityPath: "ProcessorService.Incidents(3583f982-d7df-4aad-ab26-301d4a157cd7)",
modification: "update",
valueDataType: "cds.String",
changeLog_ID: "d4bc1226-ac41-4a10-92f3-99f11f14a55b"
}
]
}