Keep explanation origins scoped to the query
This commit is contained in:
@@ -181,11 +181,13 @@ func historySelectionForPayload(selections []historySelection, ref historyPayloa
|
||||
}
|
||||
|
||||
func historySelectionForApplication(model *historyModel, selections []historySelection, phase historyPhase, applicationRef historyPayloadRef) (historySelection, bool) {
|
||||
if direct, ok := historySelectionForPayload(selections, applicationRef); ok {
|
||||
return direct, true
|
||||
}
|
||||
// Only removed/replaced paths lacking a direct contribution need an
|
||||
// operation fallback. A descendant's location cannot describe its container.
|
||||
var selected historySelection
|
||||
found := false
|
||||
if direct, ok := historySelectionForPayload(selections, applicationRef); ok {
|
||||
selected, found = direct, true
|
||||
}
|
||||
var payloads []historySourcePayload
|
||||
switch phase {
|
||||
case historyPhaseSources:
|
||||
|
||||
Reference in New Issue
Block a user