Normalize projected collection history evidence
This commit is contained in:
@@ -151,6 +151,20 @@ func (builder *historyBuilder) sourceContributions(path Path, summary Origin) []
|
||||
if !ok || !sourceLocationsContainedBy(attribution.origin, summary) {
|
||||
continue
|
||||
}
|
||||
if observation.payload.id < 0 || observation.payload.id >= len(builder.model.sourcePayloads) {
|
||||
continue
|
||||
}
|
||||
payload := builder.model.sourcePayloads[observation.payload.id]
|
||||
if payload.kind != historySourceApplicationPayload {
|
||||
continue
|
||||
}
|
||||
local, ok := historyApplicationLocalPath(payload.application, path)
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
if _, exists := documentAtPath(payload.application.value, local); !exists {
|
||||
continue
|
||||
}
|
||||
if _, exists := seen[observation.payload]; exists {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user