From eb0ea89978e4479fc994e532afd26d799eb9fbfe Mon Sep 17 00:00:00 2001 From: Nadia Mayor Date: Wed, 20 Dec 2023 16:57:31 -0300 Subject: [PATCH 1/4] Update treatmentByFlagSets telemetry and common version --- go.mod | 2 +- go.sum | 4 ++-- splitio/client/client.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 7ed1f92..f78309b 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/splitio/go-client/v6 go 1.18 require ( - github.com/splitio/go-split-commons/v5 v5.1.0 + github.com/splitio/go-split-commons/v5 v5.1.1-0.20231215145627-50f20bea9ccd github.com/splitio/go-toolkit/v5 v5.3.2 ) diff --git a/go.sum b/go.sum index ee5e61c..f8c8d6c 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,8 @@ github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/r github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvktgc= github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk= -github.com/splitio/go-split-commons/v5 v5.1.0 h1:mki1235gjXwuxcXdv/bKVduX1Lv09uXJogds+BspqSM= -github.com/splitio/go-split-commons/v5 v5.1.0/go.mod h1:9vAZrlhKvhensyRC11hyVFdgLIBrkX9D5vdYc9qB13w= +github.com/splitio/go-split-commons/v5 v5.1.1-0.20231215145627-50f20bea9ccd h1:SyJzAn3pLbMFafPEzOliYcA4RojNiFk+Sdn0H5cKSVQ= +github.com/splitio/go-split-commons/v5 v5.1.1-0.20231215145627-50f20bea9ccd/go.mod h1:9vAZrlhKvhensyRC11hyVFdgLIBrkX9D5vdYc9qB13w= github.com/splitio/go-toolkit/v5 v5.3.2 h1:Yy9YBcHRmK5WVZjeA/klLGEdF38xpsL1ejnC3ro8a2M= github.com/splitio/go-toolkit/v5 v5.3.2/go.mod h1:xYhUvV1gga9/1029Wbp5pjnR6Cy8nvBpjw99wAbsMko= github.com/twmb/murmur3 v1.1.6 h1:mqrRot1BRxm+Yct+vavLMou2/iJt0tNVTTC0QoIjaZg= diff --git a/splitio/client/client.go b/splitio/client/client.go index c6988c6..bfdfdce 100644 --- a/splitio/client/client.go +++ b/splitio/client/client.go @@ -28,7 +28,7 @@ const ( treatmentWithConfig = "TreatmentWithConfig" treatmentsWithConfig = "TreatmentsWithConfig" treatmentsWithConfigByFlagSet = "TreatmentsWithConfigByFlagSet" - treatmentsWithConfigByFlagSets = "TrearmentsWithConfigByFlagSets" + treatmentsWithConfigByFlagSets = "TreatmentsWithConfigByFlagSets" ) // SplitClient is the entry-point of the split SDK. @@ -396,7 +396,7 @@ func (c *SplitClient) TreatmentsWithConfigByFlagSet(key interface{}, flagSet str if sets == nil { return treatmentsResult } - return c.doTreatmentsCallByFlagSets(key, sets, attributes, treatmentsWithConfigByFlagSet, telemetry.TreatmentsByFlagSets) + return c.doTreatmentsCallByFlagSets(key, sets, attributes, treatmentsWithConfigByFlagSet, telemetry.TreatmentsWithConfigByFlagSet) } // TreatmentsWithConfigByFlagSet evaluates multiple feature flag names belonging to a flag sets for a single user and set of attributes at once and returns configurations @@ -406,7 +406,7 @@ func (c *SplitClient) TreatmentsWithConfigByFlagSets(key interface{}, flagSets [ if flagSets == nil { return treatmentsResult } - return c.doTreatmentsCallByFlagSets(key, flagSets, attributes, treatmentsWithConfigByFlagSets, telemetry.TreatmentsByFlagSets) + return c.doTreatmentsCallByFlagSets(key, flagSets, attributes, treatmentsWithConfigByFlagSets, telemetry.TreatmentsWithConfigByFlagSets) } // isDestroyed returns true if the client has been destroyed From fae84ebeb5b3889ef7d26541b8dae82315d6dc9a Mon Sep 17 00:00:00 2001 From: Nadia Mayor Date: Wed, 20 Dec 2023 17:00:19 -0300 Subject: [PATCH 2/4] Update go version --- splitio/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/splitio/version.go b/splitio/version.go index 898e7e2..8eb49ee 100644 --- a/splitio/version.go +++ b/splitio/version.go @@ -1,4 +1,4 @@ package splitio // Version contains a string with the split sdk version -const Version = "6.5.1" +const Version = "6.5.2-rc1" From 2fda1130fe394e02b66d8598fe5cc874bdb941e6 Mon Sep 17 00:00:00 2001 From: Nadia Mayor Date: Thu, 21 Dec 2023 12:37:48 -0300 Subject: [PATCH 3/4] [SDKS-7828] Update final version and changelog --- CHANGES.txt | 3 +++ go.mod | 2 +- go.sum | 4 ++-- splitio/version.go | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 1000d52..65b01af 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +6.5.2 (Dec 21, 2023) +- Updated telemetry name methods for flagSets. + 6.5.1 (Dec 6, 2023) - Fixed FlagSetsFilter naming in Advanced config. diff --git a/go.mod b/go.mod index f78309b..bd05b1f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/splitio/go-client/v6 go 1.18 require ( - github.com/splitio/go-split-commons/v5 v5.1.1-0.20231215145627-50f20bea9ccd + github.com/splitio/go-split-commons/v5 v5.1.1 github.com/splitio/go-toolkit/v5 v5.3.2 ) diff --git a/go.sum b/go.sum index f8c8d6c..91050b9 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,8 @@ github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/r github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvktgc= github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk= -github.com/splitio/go-split-commons/v5 v5.1.1-0.20231215145627-50f20bea9ccd h1:SyJzAn3pLbMFafPEzOliYcA4RojNiFk+Sdn0H5cKSVQ= -github.com/splitio/go-split-commons/v5 v5.1.1-0.20231215145627-50f20bea9ccd/go.mod h1:9vAZrlhKvhensyRC11hyVFdgLIBrkX9D5vdYc9qB13w= +github.com/splitio/go-split-commons/v5 v5.1.1 h1:lLOqNQMdZA5Z7FBBh4YODWdE2QFgxSPMptX9ty14x4c= +github.com/splitio/go-split-commons/v5 v5.1.1/go.mod h1:9vAZrlhKvhensyRC11hyVFdgLIBrkX9D5vdYc9qB13w= github.com/splitio/go-toolkit/v5 v5.3.2 h1:Yy9YBcHRmK5WVZjeA/klLGEdF38xpsL1ejnC3ro8a2M= github.com/splitio/go-toolkit/v5 v5.3.2/go.mod h1:xYhUvV1gga9/1029Wbp5pjnR6Cy8nvBpjw99wAbsMko= github.com/twmb/murmur3 v1.1.6 h1:mqrRot1BRxm+Yct+vavLMou2/iJt0tNVTTC0QoIjaZg= diff --git a/splitio/version.go b/splitio/version.go index 8eb49ee..e682605 100644 --- a/splitio/version.go +++ b/splitio/version.go @@ -1,4 +1,4 @@ package splitio // Version contains a string with the split sdk version -const Version = "6.5.2-rc1" +const Version = "6.5.2" From 22b6aabe8858d485b9685bcada99ceae95ff6d54 Mon Sep 17 00:00:00 2001 From: Nadia Mayor Date: Thu, 21 Dec 2023 12:48:57 -0300 Subject: [PATCH 4/4] Update getTreatmentByFlagSets const --- splitio/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/splitio/client/client.go b/splitio/client/client.go index bfdfdce..4febed7 100644 --- a/splitio/client/client.go +++ b/splitio/client/client.go @@ -24,7 +24,7 @@ const ( treatment = "Treatment" treatments = "Treatments" treatmentsByFlagSet = "TreatmentsByFlagSet" - treatmentsByFlagSets = "TreatmentsByFlahSets" + treatmentsByFlagSets = "TreatmentsByFlagSets" treatmentWithConfig = "TreatmentWithConfig" treatmentsWithConfig = "TreatmentsWithConfig" treatmentsWithConfigByFlagSet = "TreatmentsWithConfigByFlagSet"