Project

General

Profile

Defect #1441

Synchronize same structure to more organization structures will not create nodes in the other ones.

Added by Roman Kučera 8 days ago. Updated 8 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Synchronization
Target version:
Start date:
01/11/2019
Due date:
% Done:

0%


Description

Wrong behavior, when you want synchronize same organization structure to more organization structures. It will not create new nodes in to other structure but update the entities in the first one.

Steps to replicate:
Create default Org structure, create secondary structure
Create two systems, first will synchronize to default structure, second will synchronize to the secondary structure.
Run synchronization for the default structure. - Nodes are created correctly in the default one
Run synchronization for the secondary structure - It will create link to the entities in the default structure and it will not create nodes in the secondary structure as expected.

This problem is only when you want have nodes with same code in more structures. When you run synchronization to secondary structure with different data which is not in default one it will correctly create nodes in the secondary.

History

#1 Updated by Vít Švanda 8 days ago

  • Target version set to Orthoclase (9.5.0)

I confirms this bug. Problem is in correlation filter, where is filtering by code (in this case). Code is not unique in TreeNode, so we need to filtering only for one TreeType. Solution is not easy, because in correlation method (abstract sync) I do not have access to sync-context, so I don't know what tree type is using (interface of sync should be changed).

Workaround, create synthetic unique code in TreeNode.externalId (prefix+code) and then uses externalId as correlation attribute.

Also available in: Atom PDF