Skip to content
4 changes: 3 additions & 1 deletion packages/go/analysis/tiering/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
)

type SearchTierNodesCtx struct {
TierID int // Tier ID for findings processing
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"primary tier ID"

IsTierZero bool
PrimaryTierKind graph.Kind
SearchTierNodes graph.Criteria
Expand All @@ -32,8 +33,9 @@ type SearchTierNodesCtx struct {
SearchPrimaryTierNodesRel graph.Criteria
}

func NewSearchTierNodesCtx(tieringEnabled bool, isTierZero bool, primaryKind graph.Kind, tierKinds ...graph.Kind) SearchTierNodesCtx {
func NewSearchTierNodesCtx(tieringEnabled bool, isTierZero bool, tierID int, primaryKind graph.Kind, tierKinds ...graph.Kind) SearchTierNodesCtx {
return SearchTierNodesCtx{
TierID: tierID,
IsTierZero: isTierZero,
PrimaryTierKind: primaryKind,
SearchTierNodesRel: searchTierNodesRel(tieringEnabled, tierKinds...),
Expand Down
Loading