From ab6408982895b98a62d53812e246fe3a1d5a5f02 Mon Sep 17 00:00:00 2001 From: Mara Kiefer Date: Fri, 13 Oct 2023 08:34:32 +0200 Subject: [PATCH] Remove model diagram --- .../change-tracking/assets/DataModel.drawio | 42 ------- .../assets/DataModel.drawio.svg | 111 ------------------ guides/change-tracking/index.md | 6 +- 3 files changed, 2 insertions(+), 157 deletions(-) delete mode 100644 guides/change-tracking/assets/DataModel.drawio delete mode 100644 guides/change-tracking/assets/DataModel.drawio.svg diff --git a/guides/change-tracking/assets/DataModel.drawio b/guides/change-tracking/assets/DataModel.drawio deleted file mode 100644 index bb85f033d..000000000 --- a/guides/change-tracking/assets/DataModel.drawio +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/guides/change-tracking/assets/DataModel.drawio.svg b/guides/change-tracking/assets/DataModel.drawio.svg deleted file mode 100644 index 454e62bec..000000000 --- a/guides/change-tracking/assets/DataModel.drawio.svg +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - -
-
-
- - ChangeLog - -
-
-
-
- - ChangeLog - -
-
- - - - -
-
-
- - Changes - -
-
-
-
- - Changes - -
-
- - - - -
-
-
- - ChangeView - -
-
-
-
- - ChangeView - -
-
- - - - - -
-
-
- - Composition of many - -
-
-
-
- - Composition of many - -
-
- - - - - -
-
-
- - sap.changelog - -
-
-
-
- - sap.changelog - -
-
-
- - - - - Text is not SVG - cannot display - - - -
\ No newline at end of file diff --git a/guides/change-tracking/index.md b/guides/change-tracking/index.md index 1ccd7d558..6591081f2 100644 --- a/guides/change-tracking/index.md +++ b/guides/change-tracking/index.md @@ -28,7 +28,7 @@ Following the best practice of separation of concerns, we annotate our domain mo ```cds [srv/change-tracking.cds] using { ProcessorService as srv } from '@capire/incidents'; -annotate srv.Incidents with @changelog.keys: [customer.name, createdAt] { +annotate srv.Incidents with @changelog: [customer.name, createdAt] { customer @changelog: [ customer.name ]; title @changelog; status @changelog; @@ -41,12 +41,10 @@ annotate srv.Conversations with @changelog.keys: [author, timestamp] { ::: -Entities are annotated with `@changelog.keys:` followed by a list of identifiers that uniquely describe a change set, while elements are annotated with `@changelog` only. +Entities and elements are annotated with `@changelog`. The underlying structure of how the Change Tracking data model is stored is as follows: -Data Subjects.drawio - The main entity `ChangeLog` contains the `changes` property, which is a `Composition of many Changes`. These changes contain all the detailed information on the changes performed in a draft event and are stored in `Changes`. The view `ChangeView` provides a summary of all of detailed change records. Here, the `Object ID` and `Parent Object ID` are meaningful and human-readable string patterns which we have annotated above when setting the identifiers. Note, that by implementing Object ID and parent Object ID, change history could be displayed in hierarchy.