Resolving conflicts between lists, maps, sets, and arrays is often more complicated than simply picking one version over another, so Merchandising suggests a combination of the two versions. You can choose the original version, your version, the version from the other project, or the suggested combination. If none of the options provides exactly what you want, 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 Merged Version column is blank for other property types. If there are no collection properties in conflict, then the Merged Version column does not appear.

The sections that follow describe how Merchandising determines the merged changes.

How Collection Values Are Merged

To determine the difference between conflicting collections, Merchandising finds the differences between Their Version and Original Version, then finds the differences between Your Version and Original Version, and finally combines the two sets of differences and applies them to Original version.

These rules determine 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, Merchandising considers only additions and removals when creating the merged version. If both projects add or remove the same item, then that item appears only once in the merged list.

The following examples illustrate how sets are combined.

In the following table, removed items are not shown in the merged version. In Merchandising, removed items are displayed at the bottom of the Merged Version column with a strike through the name.

Conflict Description

Original

Their Version

Your Version

Merged Version

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

All items marked for add are added and all items marked for removal are removed.

Blue
Green
Red

Blue
Green
Yellow

Blue
Red
Orange

*Yellow
*Orange
Blue

Maps

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

The following table provides some examples of how changes to map items are combined. Removed items are not shown in the merged version. In Merchandising, removed items are displayed at the bottom of the Merged Version column with a strike through the name.

Conflict Description

Original

Their Version

Your Version

Merged Version

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 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)

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 ATG calculates reordering.

The following table provides some examples of how changes to lists and arrays are combined. Removed items are not shown in the merged version. In Merchandising, removed items are displayed at the bottom of the Merged Version column with a strike through the name.

Conflict Description

Original

Their Version

Your Version

Merged Version

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 ATG 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 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

Maximum Collection Size for Combining Changes

For very large collection values, 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 a merged version is not suggested because the combinations cannot be displayed.


Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices