File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
engine/plugins/horizontals Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,18 @@ func (h *horizPlugin) Stop() {
93
93
func (h * horizPlugin ) addAssociatedRelationship (e * et.Event , assocs []* scope.Association ) {
94
94
for _ , assoc := range assocs {
95
95
for _ , impacted := range assoc .ImpactedAssets {
96
- if match , conf := e .Session .Scope ().IsAssetInScope (impacted .Asset , 0 ); conf > 0 && match != nil {
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
+ }
101
+
102
+ conf := matches .Confidence (h .name )
103
+ if conf == - 1 {
104
+ conf = matches .Confidence (tstr )
105
+ }
106
+
107
+ if match , result := e .Session .Scope ().IsAssetInScope (impacted .Asset , conf ); result > 0 && match != nil {
97
108
if a , hit := e .Session .Cache ().GetAsset (match ); hit && a != nil {
98
109
for _ , assoc2 := range e .Session .Scope ().AssetsWithAssociation (e .Session .Cache (), a ) {
99
110
h .makeAssocRelationshipEntries (e , assoc .Match , assoc2 )
You can’t perform that action at this time.
0 commit comments