From 8f3a71f8632ce681c4aac4cd5d4f4f43785041ef Mon Sep 17 00:00:00 2001 From: Pawel Szczodruch Date: Mon, 2 Nov 2020 14:14:11 -0800 Subject: [PATCH 1/4] chore: prepare 2.3.0 release --- CHANGELOG.md | 3 +++ go.mod | 2 +- go.sum | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a9447cd..60564072 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## Unreleased +## [2.3.0] - November 2, 2020 +- Introduce Agent interceptor plugins +- Add support for sending flag decisions along with decision metadata ## [2.2.0] - October 5, 2020 - Update to Optimizely Go SDK 1.4.0 with version audience condition evaluation based on semantic versioning as well as support for number 'greater than or equal to' and 'less than or equal to'. diff --git a/go.mod b/go.mod index 18172eb9..f8ee10c7 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/go-kit/kit v0.9.0 github.com/google/uuid v1.1.1 github.com/lestrrat-go/jwx v0.9.0 - github.com/optimizely/go-sdk v1.4.0 + github.com/optimizely/go-sdk v1.5.0 github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6 github.com/rakyll/statik v0.1.7 github.com/rs/zerolog v1.18.1-0.20200514152719-663cbb4c8469 diff --git a/go.sum b/go.sum index 4232c068..97ff03ba 100644 --- a/go.sum +++ b/go.sum @@ -93,6 +93,8 @@ github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRW github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/optimizely/go-sdk v1.4.0 h1:9i6BUzqKGT5AMdSUdlrQZrmZRRhQQ9QjeielYiCCol8= github.com/optimizely/go-sdk v1.4.0/go.mod h1:1uinGREH+AdijSRw3qitWkvIna1e/ZGN5eymNYPjw1A= +github.com/optimizely/go-sdk v1.5.0 h1:D02s3xRnP4Un+WqL4bh7rp/kmBuVdnroKpCvlfjLaxE= +github.com/optimizely/go-sdk v1.5.0/go.mod h1:1uinGREH+AdijSRw3qitWkvIna1e/ZGN5eymNYPjw1A= github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6 h1:lNCW6THrCKBiJBpz8kbVGjC7MgdCGKwuvBgc7LoD6sw= github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI= github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= From 6be9d4f8b2e248ca30e060022b9809c3078a4a9e Mon Sep 17 00:00:00 2001 From: Pawel Szczodruch Date: Mon, 2 Nov 2020 14:17:58 -0800 Subject: [PATCH 2/4] changed the text --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60564072..4c8dc504 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased ## [2.3.0] - November 2, 2020 - Introduce Agent interceptor plugins -- Add support for sending flag decisions along with decision metadata +- Adding support for upcoming application-controlled introduction of tracking for non-experiment Flag decisions ## [2.2.0] - October 5, 2020 - Update to Optimizely Go SDK 1.4.0 with version audience condition evaluation based on semantic versioning as well as support for number 'greater than or equal to' and 'less than or equal to'. From d8ff5055330f5ff08a7c90c0e141e02c1ad27109 Mon Sep 17 00:00:00 2001 From: Pawel Szczodruch Date: Mon, 2 Nov 2020 14:33:08 -0800 Subject: [PATCH 3/4] implementing SendFlagDecisions --- pkg/optimizely/optimizelytest/config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/optimizely/optimizelytest/config.go b/pkg/optimizely/optimizelytest/config.go index 0e1e13f2..9dd7f2d6 100644 --- a/pkg/optimizely/optimizelytest/config.go +++ b/pkg/optimizely/optimizelytest/config.go @@ -43,12 +43,14 @@ type TestProjectConfig struct { AnonymizeIP bool BotFiltering bool nextID int + sendFlagDecisions bool } // GetDatafile returns a string representation of the environment's datafile func (c *TestProjectConfig) GetDatafile() string { return "" } + // GetProjectID returns projectID func (c *TestProjectConfig) GetProjectID() string { return c.ProjectID @@ -424,6 +426,11 @@ func (c *TestProjectConfig) getNextID() (nextID string) { return strconv.Itoa(c.nextID) } +// SendFlagDecisions returns the value of sendFlagDecisions +func (c *TestProjectConfig) SendFlagDecisions() bool { + return c.sendFlagDecisions +} + // NewConfig initializes a new datafile from a json byte array using the default JSON datafile parser func NewConfig() *TestProjectConfig { config := &TestProjectConfig{ From c69f6072d01e1f290f8476b87f9d444f95a04b97 Mon Sep 17 00:00:00 2001 From: Pawel Szczodruch Date: Mon, 2 Nov 2020 14:38:44 -0800 Subject: [PATCH 4/4] packing struct differently --- pkg/optimizely/optimizelytest/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/optimizely/optimizelytest/config.go b/pkg/optimizely/optimizelytest/config.go index 9dd7f2d6..5f3c86ba 100644 --- a/pkg/optimizely/optimizelytest/config.go +++ b/pkg/optimizely/optimizelytest/config.go @@ -40,9 +40,9 @@ type TestProjectConfig struct { FeatureMap map[string]entities.Feature GroupMap map[string]entities.Group RolloutMap map[string]entities.Rollout + nextID int AnonymizeIP bool BotFiltering bool - nextID int sendFlagDecisions bool }