Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
9 changes: 8 additions & 1 deletion pkg/optimizely/optimizelytest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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{
Expand Down