-
Notifications
You must be signed in to change notification settings - Fork 1
Add new config for acceptable matchers for ff and rb #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,9 @@ func TestAllKeysMatcher(t *testing.T) { | |
dto := &dtos.MatcherDTO{ | ||
MatcherType: "ALL_KEYS", | ||
} | ||
ruleBuilder := NewRuleBuilder(nil, nil, nil, SyncProxyFeatureFlagsRules, SyncProxyRuleBasedSegmentRules, logger) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what about matcher receive the rule builder so then you only call the BuildMatcher> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a test. For rule-based segments, it's receiving a ruleBuilder and calling the method. |
||
|
||
matcher, err := BuildMatcher(dto, nil, logger) | ||
matcher, err := ruleBuilder.BuildMatcher(dto) | ||
if err != nil { | ||
t.Error("There should be no errors when building the matcher") | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about evaluator receiving the entire ruleBuilder instead of passing the config parameters and creating the ruleBuilder here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this, we need to remove the context.