Skip to content

[FME-12436] Updated commons version#57

Merged
nmayorsplit merged 2 commits into
FME-8315from
FME-12436
Jan 19, 2026
Merged

[FME-12436] Updated commons version#57
nmayorsplit merged 2 commits into
FME-8315from
FME-12436

Conversation

@nmayorsplit

Copy link
Copy Markdown
Contributor

SPLIT DAEMON

What did you accomplish?

  • Updated commons version to v9.1.0
  • Added feature and rule-based rules
  • Added logic for fallback treatment

How do we test the changes introduced in this PR?

Extra Notes

@nmayorsplit
nmayorsplit requested a review from a team January 19, 2026 15:15

@EmilianoSanchez EmilianoSanchez left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, but there are a few suggestions to check.

Comment thread splitio/sdk/helpers.go Outdated
continue
}
if !isValidTreatment(&treatment) {
logger.Error(fmt.Sprintf("Fallback treatments - Discarded global fallback: Invalid treatment (max %d chars and comply with %s)", MaxTreatmentLength, TreatmentRegexp))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
logger.Error(fmt.Sprintf("Fallback treatments - Discarded global fallback: Invalid treatment (max %d chars and comply with %s)", MaxTreatmentLength, TreatmentRegexp))
logger.Error(fmt.Sprintf("Fallback treatments - Discarded byFlag fallback: Invalid treatment (max %d chars and comply with %s)", MaxTreatmentLength, TreatmentRegexp))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

Comment thread splitio/sdk/sdk.go
ErrSplitNotFound = errors.New("split not found")
)

var featureFlagsRules = []string{constants.MatcherTypeAllKeys, constants.MatcherTypeInSegment, constants.MatcherTypeWhitelist, constants.MatcherTypeEqualTo, constants.MatcherTypeGreaterThanOrEqualTo, constants.MatcherTypeLessThanOrEqualTo, constants.MatcherTypeBetween,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could featureFlagsRules and ruleBasedSegmentRules be reused? maybe in a single var called targetingRules?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, because we have different matchers.

@nmayorsplit
nmayorsplit merged commit 18f3c9c into FME-8315 Jan 19, 2026
4 checks passed
@nmayorsplit
nmayorsplit deleted the FME-12436 branch January 19, 2026 17:35
nmayorsplit added a commit that referenced this pull request Jul 21, 2026
[FME-12436] Updated commons version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants