cap-js / change-tracking

CDS plugin providing out-of-the box support for automatic capturing, storing, and viewing of the change records of modeled entities.
https://cap.cloud.sap/docs
Apache License 2.0
20 stars 8 forks source link

Support for `@UI.HeaderInfo.TypeName` #124

Open schiwekM opened 3 weeks ago

schiwekM commented 3 weeks ago

Hi colleagues,

for the object type column the label of the entity is being used. However it is not common that entities are annoyed with a label. Instead they usually have the @UI.HeaderInfo annotation annotated as it dictates app, object page and table names in Fiori elements. Thus change tracking should also consider this annotation as a fallback.

@UI.HeaderInfo.TypeNamePlural is also an option if desired. Moreover @UI.HeaderInfo.Title defines the object page identifier for a rotation and it might make sense to consider this for a nicer Object Key (or consider @Common.SemanticKey).

BR, Marten

Sv7enNowitzki commented 1 week ago

Hi @schiwekM , Thank you for your PR, we will merge it into main branch.

Best Regards, Wenjun