Skip to content

Commit

Permalink
temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Oct 18, 2024
1 parent 265768d commit af33300
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions engine/plugins/horizontals/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,12 @@ func (h *horizPlugin) Stop() {
func (h *horizPlugin) addAssociatedRelationship(e *et.Event, assocs []*scope.Association) {
for _, assoc := range assocs {
for _, impacted := range assoc.ImpactedAssets {
tstr := string(impacted.Asset.AssetType())
matches, err := e.Session.Config().CheckTransformations(tstr, tstr, h.name)
if err != nil || matches.Len() == 0 {
continue
}
conf := 50

conf := matches.Confidence(h.name)
if conf == -1 {
conf = matches.Confidence(tstr)
if e.Session.Config().DefaultTransformations != nil {
if c := e.Session.Config().DefaultTransformations.Confidence; c > 0 {
conf = c
}
}

if match, result := e.Session.Scope().IsAssetInScope(impacted.Asset, conf); result >= conf && match != nil {
Expand Down

0 comments on commit af33300

Please sign in to comment.