When I delete an entity that is marked as DataSubjectDetails-entity the data modification message does not contain the ID information of the entity as soon as the key is renamed. Second issue: as soon as you rename all attributes nothing is logged at all.
Here's the example entity definition:
DB entity definition:
namespace mydb;
entity MainEntities {
key ID : UUID;
name : String;
subEntities : Composition of many SubEntities
on subEntities.mainEntity = $self;
}
entity SubEntities {
key ID : UUID;
name : String;
mainEntity : Association to MainEntities;
}
annotate MainEntities with @PersonalData: {
EntitySemantics: 'DataSubject',
DataSubjectRole: 'MainEntity',
} {
ID @PersonalData.FieldSemantics : 'DataSubjectID';
name @PersonalData.IsPotentiallyPersonal;
}
annotate SubEntities with @PersonalData : {
EntitySemantics: 'DataSubjectDetails',
DataSubjectRole: 'MainEntity'
} {
mainEntity @PersonalData.FieldSemantics: 'DataSubjectID';
name @PersonalData.IsPotentiallyPersonal;
}
In my service definition I have renamed the key of entity SubEntities from ID to renamedID:
Service definition:
using {mydb as mydb} from '../../../db/mydb';
service MyAPI {
entity RenamedMainEntities as projection on mydb.MainEntities;
entity RenamedSubEntities as projection on mydb.SubEntities {
key ID as renamedID,
name,
mainEntity
};
}
annotate MyAPI with @(AuditLog.Operation: {
Read : false,
Insert: true,
Update: true,
Delete: true
});
Now I send a DELETE request for a RenamedSubEntities entity. The resulting audit log message looks like this:
Regarding the second issue: If you rename also the name attribute in the sub entity, nothing is logged at all:
service MyAPI {
entity RenamedMainEntities as projection on mydb.MainEntities;
entity RenamedSubEntities as projection on mydb.SubEntities {
key ID as renamedID,
name as renamedName,
mainEntity as renamedMainEntity
};
}
With this definition nothing is written into the audit log.
Could you please have a look into these two issues with the automatic logging of DELETE actions?
Hi!
When I delete an entity that is marked as DataSubjectDetails-entity the data modification message does not contain the ID information of the entity as soon as the key is renamed. Second issue: as soon as you rename all attributes nothing is logged at all.
Here's the example entity definition:
DB entity definition:
In my service definition I have renamed the key of entity
SubEntities
fromID
torenamedID
: Service definition:Now I send a DELETE request for a
RenamedSubEntities
entity. The resulting audit log message looks like this:The IDs of the data subject and the object are missing.
If I remove the renaming of key
ID
of the entityRenamedSubEntities
the log is written as expected:Regarding the second issue: If you rename also the
name
attribute in the sub entity, nothing is logged at all:With this definition nothing is written into the audit log.
Could you please have a look into these two issues with the automatic logging of DELETE actions?
Thanks and best regards, Christian