Resolving conflicts between lists, maps, sets, and arrays is often more complicated than simply picking one version over another. ATG Merchandising assists with resolving these collection property conflicts by suggesting a combination of the two versions. You can then choose between the original version, your version, the version from the other project, and the suggested combination. If none of the options are perfect, you can choose the option closest to your desired value and then modify the asset before advancing the project to the next task.

In the suggested combination:

The following figure shows an example of a collection property that has a conflict with another project:

Note: Suggested combinations are provided only for collection properties. The Combined Changes column is blank for other property types. If there are no collection properties in conflict, then the Combined Changes column does not appear.

The following sections describe how ATG Merchandising determines the combined changes:

How Collection Values Are Combined

ATG Merchandising uses a standard differencing algorithm to determine the differences between two collections. The process goes through the following steps:

A few additional rules govern the final outcome:

Sets

Sets are not ordered and do not allow duplicates, and are therefore simpler to combine than other types of collections. When versions of sets are combined, ATG Merchandising only has to consider additions and removals to create a suggestion. If both projects add or remove the same item, then the added or removed item appears only once in the combined list. Added items are displayed at the top of the combined changes and removed items are shown at the bottom with a strike through the value.

The following examples illustrate how sets are combined:

Conflict Description

Original

Their Version

Your Version

Combined Changes

Two projects add different items

Both items are added.

Blue
Green
Red

Blue
Green
Red
Yellow

Blue
Green
Red
Orange

*Yellow
*Orange
Blue
Green
Red

Two projects remove different items

Both items are removed.

Blue
Green
Red

Blue
Green

Green
Red

Green

Two projects add and remove different items

Added items are added and removed items are removed.

Blue
Green
Red

Blue
Green
Yellow

Blue
Red
Orange

*Yellow
*Orange
Blue

Note: The table above displays the actual value of the combined sets and does not show the removed items. In ATG Merchandising, removed items are displayed at the bottom of the combined changes with a strike through the name.

Maps

Maps are collections that contain key and value pairs that map one value to another, such as a list of sizes and their numeric equivalent. Changes to maps can include:

The following table provides some examples of how changes to map items are combined:

Conflict Description

Original

Their Version

Your Version

Combined Changes

One project removes a map item,
the other project adds a map item

The removed item is removed and the added item is added.

S (4-6)
M (8-10)
L (12-14)

S (4-6)
M (8-10)
L (12-14)
XL (16-18)

S (4-6)
L (12-14)

XL (16-18)*
S (4-6)
L (12-14)

One project edits an item,
the other project adds an item

The edited item is updated and the added item is added.

S (4-6)
M (8-10)
L (12-14)

S (2-4)
M (8-10)
L (12-14)

S (4-6)
M (8-10)
L (12-14)
XL (16-18)

S (2-4)*
XL (16-18)*

M (8-10)
L (12-14)

One project edits an item,
the other project removes the item

The item is removed.

Note: You can configure whether removed items take precedence over changed items. See Customizing Conflict Resolution for Collection Properties.

S (4-6)
M (8-10)
L (12-14)

S (2-4)
M (8-10)
L (12-14)

M (8-10)
L (12-14)

M (8-10)
L (12-14)

Both projects edit the same item

The value in your project is kept.

S (4-6)
M (8-10)
L (12-14)

S (2-4)
M (8-10)
L (12-14)

S (2-6)
M (8-10)
L (12-14)

S (2-6)*
M (8-10)
L (12-14)

Each project edits a different item

Both changes are kept.

S (4-6)
M (8-10)
L (12-14)

S (2-4)
M (8-10)
L (12-14)

S (4-6)
M (6-8)
L (12-14)

S (2-4)*
M (6-8)*
L (12-14)

Note: The table above shows the actual value of the combined changes and does not show the removed items. In ATG Merchandising, removed items are displayed at the bottom of the combined changes with a strike through the name.

Lists and Arrays

Lists and arrays are collections that contain ordered lists of items and, if you have not prohibited them, can contain the same item multiple times. Changes to lists and arrays can include:

Note: In some cases, items that were not explicitly changed in either project are marked as changed in the suggested combination because of the way the differencing algorithm calculates reordering.

The following table provides some examples of how changes to list and arrays are combined:

Conflict Description

Original

Their Version

Your Version

Combined Changes

Two projects reorder items

The two list orders are combined.

Note: Item B is marked as changed although it appears to be the same in all collections. This is because of the way that the differencing algorithm calculates reordering.

A
B
C
D
E

C
B
A
D
E

E
B
C
D
A

A*
B*
C*
E*

D

Two projects add different items to the same location

The items are added to the top of the list.

A
B
C

A
B
C
D

A
B
C
E

D*
E*

A
B
C

Two projects add the same item in different locations

The item is added twice to the top of the list.

Note: If duplicates are prohibited, the item is added only once.

A
B
C

A
D
B
C

A
B
D
C

D*
D*

A
B
C

One project reorders items, the other project removes an item

The two list orders are combined and the removed item is removed.

Note: You can configure whether removed items take precedence over reordered items. See Customizing Conflict Resolution for Collection Properties.

A
B
C
D
E
F
G

B
D
E
F

A
C
G

A
B
D
E
F
G

A*
E*
F*

B
D
G

One project adds items, the other project removes an item

The new items are added to the top of the list, and the removed item is removed.

A
B
C
D

A
B
C
D
E
F

A
B
D

E*
F*

A
B
D

Note: In the table above, removed items are not shown in the combined changes. In ATG Merchandising, removed items are displayed at the bottom of the combined changes with a strike through the name.

Maximum Collection Size for Combining Changes

If there is a very large collection value, ATG Merchandising displays only the first 2300 items on the Review Changes page by default. As a result, if any conflicting version contains more items than the display limit allows, then combined changes are not suggested because they cannot be displayed completely. If you want ATG Merchandising to suggest changes for collections larger than the display limit, you can edit the setting that controls the maximum number of items that can be combined. You can also change the display limit. See Customizing Conflict Resolution for Collection Properties.

 
loading table of contents...