diff --git a/splitio/commitversion.go b/splitio/commitversion.go index c10965dc..e360c10c 100644 --- a/splitio/commitversion.go +++ b/splitio/commitversion.go @@ -5,4 +5,4 @@ This file is created automatically, please do not edit */ // CommitVersion is the version of the last commit previous to release -const CommitVersion = "59410e1" +const CommitVersion = "2c40bd1" diff --git a/splitio/proxy/controllers/sdk.go b/splitio/proxy/controllers/sdk.go index 86c40d10..2c0b5d88 100644 --- a/splitio/proxy/controllers/sdk.go +++ b/splitio/proxy/controllers/sdk.go @@ -9,6 +9,7 @@ import ( "github.com/gin-gonic/gin" "github.com/splitio/go-split-commons/v5/dtos" + "github.com/splitio/go-split-commons/v5/engine/evaluator/impressionlabels" "github.com/splitio/go-split-commons/v5/engine/grammar" "github.com/splitio/go-split-commons/v5/engine/grammar/matchers" "github.com/splitio/go-split-commons/v5/service" @@ -21,10 +22,6 @@ import ( "github.com/splitio/split-synchronizer/v5/splitio/proxy/storage" ) -const ( - labelUnsupportedMatcher = "targeting rule type unsupported by sdk" -) - // SdkServerController bundles all request handler for sdk-server apis type SdkServerController struct { logger logging.LoggerInterface @@ -168,7 +165,7 @@ func (c *SdkServerController) patchUnsupportedMatchers(splits []dtos.SplitDTO, v splits[si].Conditions[ci].ConditionType = grammar.ConditionTypeWhitelist splits[si].Conditions[ci].MatcherGroup.Matchers[mi].MatcherType = matchers.MatcherTypeAllKeys splits[si].Conditions[ci].MatcherGroup.Matchers[mi].String = nil - splits[si].Conditions[ci].Label = labelUnsupportedMatcher + splits[si].Conditions[ci].Label = impressionlabels.UnsupportedMatcherType splits[si].Conditions[ci].Partitions = []dtos.PartitionDTO{{Treatment: "control", Size: 100}} } }