Adobe-Consulting-Services / acs-aem-commons

http://adobe-consulting-services.github.io/acs-aem-commons/
Apache License 2.0
454 stars 601 forks source link

Content Sync - Version history not preserving from source to destination #3278

Closed sanjana287 closed 8 months ago

sanjana287 commented 8 months ago

Required Information

Expected Behaviour

The Content Sync Documentation mentions that version history is preserved during sync. Although upon trying, we did not see the versions reflecting from source to destination. Is this expected behaviour and the documentation has a different interpretation, or the version history should be reflecting from source to destination?

Actual Behaviour

We tried to sync content from the source to destination instance, but did not see the versions of the synced content reflecting from source to destination

Steps to Reproduce

Links

https://adobe-consulting-services.github.io/acs-aem-commons/features/contentsync/index.html

YegorKozlov commented 8 months ago

This is expected. Content Sync preserves version history on the target instance, but it does not copy versions from the source.

sanjana287 commented 8 months ago

Okay, I have a follow up question to this. What is the additional advantage of content sync over CRX Package manager in terms of versions ? If some content already has some version information on the source instance, we observed that the version history was still preserved on the destination instance using the CRX package manager as well. For new pages with no version information, we did observe CRX overriding the version history on destination.

YegorKozlov commented 8 months ago

Okay, I have a follow up question to this. What is the additional advantage of content sync over CRX Package manager in terms of versions ? If some content already has some version information on the source instance, we observed that the version history was still preserved on the destination instance using the CRX package manager as well. For new pages with no version information, we did observe CRX overriding the version history on destination.

CRX package manager preserves the version history only if the node uuid is the same on the source and the target. Content Sync preserves the version history regardless of the uuid.