Jumoo / uSync.Complete.Issues

Public Issue tracker and roadmap for uSync.Complete
https://jumoo.co.uk/usync/complete/
2 stars 1 forks source link

Deleted content and new content under same name/url doesn't get synced correctly #217

Open Nuklon opened 11 months ago

Nuklon commented 11 months ago

Describe the bug See reproduction steps.

Version (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Have some content node named Test with a document type TestDoc (or something else). Make sure it exists locally and on destination server.
  2. Delete Test locally.
  3. Create a new content node named Test locally (so the url stays the same, e.g., /test/) with a different document type.
  4. Sync the Content node to destination server (... > Publish to ... > server). Use these settings: image
  5. On destination server, Test isn't removed and instead a new node is created named Test (1).
jveer commented 2 weeks ago

This still seems to happen on 13.1.8 as well.

We have content that has been created on development and staging, with the same name/url, but a different id:

What I expect to happen when I sync this node from development to staging:

  1. Delete node on staging: "Test", id=4321, key=8fbca55f-f11d-4d55-9ebe-1c1e48b4c0f3
  2. Create node on staging: "Test", id=xxxx, key=56d4edcc-c376-4b7b-baed-bb7befaa3dbb

What's actually happening at the moment:

  1. Doesn't touch node on staging: "Test", id=4321, key=8fbca55f-f11d-4d55-9ebe-1c1e48b4c0f3
  2. Create node on staging: "Test (1)", id=xxxx, key=56d4edcc-c376-4b7b-baed-bb7befaa3dbb

@KevinJump do you know if there's a workaround to get this working?


Update after some more investigation:

This happened when I was importing a complete tree, so the "Test" node was actually when pushing from BBB:

When I pushed from DDD, it did process correctly and deleted the "old" nodes, as expected.

Not sure if it's relevant, but only the DDD and it's descendants are varying by culture. AAA, BBB and CCC are not. If you need more details or examples, please let me know.