Skip to content

Releases: cap-js/change-tracking

v2.0.0-beta.9

15 Apr 17:52
2d58669

Choose a tag to compare

Added

  • Customizable objectID for composition changelog entries on parent entities:
    • Composition of one: objectID is derived from the child entity's @changelog annotation, falling back to the parent entity's @changelog
    • Composition of many: objectID falls back to the parent entity's @changelog annotation, but can be customized on the composition field using @changelog with a path or expression referencing parent

Changed

  • Only skip change tracking for @PersonalData.IsPotentiallySensitive and @PersonalData.IsPotentiallyPersonal and not @PersonalData.FieldSemantics

v2.0.0-beta.8

09 Apr 11:38
7a791fe

Choose a tag to compare

v2.0.0-beta.8 Pre-release
Pre-release

Fixed

  • Do not add @UI.Hidden: ($draft.IsActiveEntity) to the UI changes section when the entity is not draft enabled.

v2.0.0-beta.7

08 Apr 16:46
299c463

Choose a tag to compare

v2.0.0-beta.7 Pre-release
Pre-release

Added

  • Support CDS expression language (CXL) in @changelog annotations to enable broader customization of objectIDs and changelog labels

Fixed

  • Existing Facets for displaying the Changes UI are correctly detected avoiding redundant Changes sections.
  • Format tracked decimal values with correct precision (e.g., Decimal(11,4) stores 0 as '0.0000')

Changed

  • HANA triggers changed from row-level to statement-level execution
  • Removed CHANGE_TRACKING_DUMMY entity
  • Change History section is now hidden in draft mode

v2.0.0-beta.6

26 Mar 16:16
4eb96c0

Choose a tag to compare

v2.0.0-beta.6 Pre-release
Pre-release

Added

  • Provide detailed plan for v1 to v2 HANA migration
  • Generation of .hdbmigrationtable and updating undeploy.json via cds add change-tracking-migration
  • HANA procedure SAP_CHANGELOG_RESTORE_BACKLINKS to restore parent-child hierarchy for composition changes

Fixed

  • Explicit type casts for Date, DateTime, Time, Timestamp and Decimal fields in ChangeView to avoid conversion errors
  • Lazy load database adapters to prevent crashes when optional dependencies are not installed
  • Skip changelogs referencing association targets annotated with @cds.persistence.skip
  • Cast single entity keys to cds.String to prevent type conversion errors
  • Dynamic localization now verifies .texts entity existence before attempting localized lookup

v1.2.1

26 Mar 17:28

Choose a tag to compare

Fixed

  • Removed @cds.persistence.journal annotation from Changes entity that caused deployment errors

v1.2.0

26 Mar 17:09

Choose a tag to compare

Added

  • Added createdAt and createdBy columns to Changes table for v2 migration
  • Merge createdAt and createdBy columns from ChangeLog to Changes in multitenancy scenario

v2.0.0-beta.5

17 Mar 17:27
5bbca61

Choose a tag to compare

v2.0.0-beta.5 Pre-release
Pre-release

Added

  • Support dynamic localized label lookup, meaning if for example a property is change tracked and its change tracking label (@changelog : [.<localized_prop>]) points to one localized property from its code list entity, the label is dynamically fetched when the change is read based on the users locale.

Fixed

  • Postgres considers disable*Tracking for children changes
  • Human-readable @changelog annotation supports combination of direct entity elements and association elements

v2.0.0-beta.4

16 Mar 17:12
300e134

Choose a tag to compare

v2.0.0-beta.4 Pre-release
Pre-release

Added

  • Tracked Date, DateTime, Time and Timestamp properties are now correctly formatted again.
  • If a tracked property is annotated with @Common.Timezone the changelog now considers the Timezone as well.

v2.0.0-beta.3

13 Mar 16:03
06610f6

Choose a tag to compare

v2.0.0-beta.3 Pre-release
Pre-release

Fixed

  • CSV data for i18nKeys and CHANGE_TRACKING_DUMMY is now correctly generated during the HANA build

Changed

  • Changes from child entities are shown on the parent ChangeView by default
  • Depth of displayed child changes can be configured via maxDisplayHierarchyDepth
  • Improved search capabilities for changes

v2.0.0-beta.2

11 Mar 18:09
d3b47c1

Choose a tag to compare

v2.0.0-beta.2 Pre-release
Pre-release

Fixed

  • Fixed a server crash when resolving table names
  • Support entity level @changelog annotation where no explicit elements for the object ID are defined
  • Trigger generation works again for MTX scenarios

Changed

  • Improved performance when quering changes