Preserve explicitness across resolution shape changes
This commit is contained in:
@@ -217,6 +217,10 @@ func TestApplyResolutionMetadataPreservesOverlappingDeltaOrder(t *testing.T) {
|
||||
fields: map[string]FieldInfo{"/group/item/leaf": {Origin: oldOrigin}},
|
||||
history: make(map[string][]Change),
|
||||
}
|
||||
entry := resolutionInput{metadata: Metadata{
|
||||
fields: map[string]FieldInfo{"/group/item/leaf": {Explicit: true, Origin: oldOrigin}},
|
||||
effectivePaths: effectivePathIndex(final),
|
||||
}}
|
||||
resolved := resolutionResult{
|
||||
final: final,
|
||||
deltas: []documentDelta{{path: Keys("group")}, {path: Keys("group", "item")}},
|
||||
@@ -226,7 +230,7 @@ func TestApplyResolutionMetadataPreservesOverlappingDeltaOrder(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
applyResolutionMetadata(metadata, resolved)
|
||||
applyResolutionMetadata(metadata, resolved, entry)
|
||||
|
||||
field := metadata.fields["/group/item/leaf"]
|
||||
if field.Origin.Operation != childOrigin.Operation {
|
||||
|
||||
Reference in New Issue
Block a user