Releases: cap-js/change-tracking
Releases · cap-js/change-tracking
v2.0.0-beta.9
Added
- Customizable objectID for composition changelog entries on parent entities:
- Composition of one: objectID is derived from the child entity's
@changelogannotation, falling back to the parent entity's@changelog - Composition of many: objectID falls back to the parent entity's
@changelogannotation, but can be customized on the composition field using@changelogwith a path or expression referencing parent
- Composition of one: objectID is derived from the child entity's
Changed
- Only skip change tracking for
@PersonalData.IsPotentiallySensitiveand@PersonalData.IsPotentiallyPersonaland not@PersonalData.FieldSemantics
v2.0.0-beta.8
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
Added
- Support CDS expression language (CXL) in
@changelogannotations 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_DUMMYentity - Change History section is now hidden in draft mode
v2.0.0-beta.6
Added
- Provide detailed plan for v1 to v2 HANA migration
- Generation of
.hdbmigrationtableand updatingundeploy.jsonviacds add change-tracking-migration - HANA procedure
SAP_CHANGELOG_RESTORE_BACKLINKSto restore parent-child hierarchy for composition changes
Fixed
- Explicit type casts for Date, DateTime, Time, Timestamp and Decimal fields in
ChangeViewto 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.Stringto prevent type conversion errors - Dynamic localization now verifies
.textsentity existence before attempting localized lookup
v1.2.1
Fixed
- Removed
@cds.persistence.journalannotation from Changes entity that caused deployment errors
v1.2.0
Added
- Added
createdAtandcreatedBycolumns to Changes table for v2 migration - Merge
createdAtandcreatedBycolumns from ChangeLog to Changes in multitenancy scenario
v2.0.0-beta.5
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*Trackingfor children changes - Human-readable
@changelogannotation supports combination of direct entity elements and association elements
v2.0.0-beta.4
Added
- Tracked Date, DateTime, Time and Timestamp properties are now correctly formatted again.
- If a tracked property is annotated with
@Common.Timezonethe changelog now considers the Timezone as well.
v2.0.0-beta.3
Fixed
- CSV data for
i18nKeysandCHANGE_TRACKING_DUMMYis 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
Fixed
- Fixed a server crash when resolving table names
- Support entity level
@changelogannotation where no explicit elements for the object ID are defined - Trigger generation works again for MTX scenarios
Changed
- Improved performance when quering changes