Skip to content

Commit 9ebe250

Browse files
committed
temp fix
1 parent c3dd85e commit 9ebe250

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

engine/plugins/horizontals/plugin.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,12 @@ func (h *horizPlugin) Stop() {
9393
func (h *horizPlugin) addAssociatedRelationship(e *et.Event, assocs []*scope.Association) {
9494
for _, assoc := range assocs {
9595
for _, impacted := range assoc.ImpactedAssets {
96-
tstr := string(impacted.Asset.AssetType())
97-
matches, err := e.Session.Config().CheckTransformations(tstr, tstr, h.name)
98-
if err != nil || matches.Len() == 0 {
99-
continue
100-
}
96+
conf := 50
10197

102-
conf := matches.Confidence(h.name)
103-
if conf == -1 {
104-
conf = matches.Confidence(tstr)
98+
if e.Session.Config().DefaultTransformations != nil {
99+
if c := e.Session.Config().DefaultTransformations.Confidence; c > 0 {
100+
conf = c
101+
}
105102
}
106103

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

0 commit comments

Comments
 (0)