diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a9447cd..4c8dc504 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 +- 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'. 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= diff --git a/pkg/optimizely/optimizelytest/config.go b/pkg/optimizely/optimizelytest/config.go index 0e1e13f2..5f3c86ba 100644 --- a/pkg/optimizely/optimizelytest/config.go +++ b/pkg/optimizely/optimizelytest/config.go @@ -40,15 +40,17 @@ 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 } // 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{