-
Notifications
You must be signed in to change notification settings - Fork 16
FFM-11164 Re-generate Client and Metrics API code, plus fixes #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
44722df
b4a1eb7
14dc5ea
a376692
e997f79
61cb304
a5831ae
c3c7a84
dbd6080
14d42d6
824115a
828f994
bdbaee6
ec9fb89
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,8 +196,8 @@ func (e Evaluator) evaluateVariationMap(variationsMap []rest.VariationMap, targe | |
for _, variationMap := range variationsMap { | ||
if variationMap.Targets != nil { | ||
for _, t := range *variationMap.Targets { | ||
if *t.Identifier != "" && *t.Identifier == target.Identifier { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again types have changed. Now a string instead of |
||
e.logger.Debugf("Specific targeting matched in Variation Map: Variation Map (%v) Target(%v), Variation returned (%s)", *t.Identifier, target, variationMap.Variation) | ||
if t.Identifier != "" && t.Identifier == target.Identifier { | ||
e.logger.Debugf("Specific targeting matched in Variation Map: Variation Map (%v) Target(%v), Variation returned (%s)", t.Identifier, target, variationMap.Variation) | ||
return variationMap.Variation | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
module github.com/harness/ff-golang-server-sdk | ||
|
||
go 1.18 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/cenkalti/backoff/v4 v4.2.1 | ||
github.com/deepmap/oapi-codegen v1.11.0 | ||
github.com/getkin/kin-openapi v0.94.0 | ||
github.com/deepmap/oapi-codegen/v2 v2.1.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. v2 has pretty significant benefits, mainly around reduced dependency bundle. See https://www.jvt.me/posts/2023/10/23/oapi-codegen-v2-decrease/ |
||
github.com/getkin/kin-openapi v0.124.0 | ||
github.com/golang-jwt/jwt v3.2.2+incompatible | ||
github.com/google/uuid v1.3.0 | ||
github.com/google/uuid v1.5.0 | ||
github.com/harness-community/sse/v3 v3.1.0 | ||
github.com/hashicorp/go-retryablehttp v0.7.4 | ||
github.com/hashicorp/golang-lru v0.5.4 | ||
github.com/jarcoal/httpmock v1.0.8 | ||
github.com/json-iterator/go v1.1.12 | ||
github.com/mitchellh/go-homedir v1.1.0 | ||
github.com/mitchellh/mapstructure v1.3.3 | ||
github.com/oapi-codegen/runtime v1.1.1 | ||
github.com/spaolacci/murmur3 v1.1.0 | ||
github.com/stretchr/testify v1.7.1 | ||
github.com/stretchr/testify v1.8.4 | ||
go.uber.org/zap v1.16.0 | ||
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 | ||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c | ||
) | ||
|
||
require ( | ||
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/ghodss/yaml v1.0.0 // indirect | ||
github.com/go-openapi/jsonpointer v0.19.5 // indirect | ||
github.com/go-openapi/swag v0.21.1 // indirect | ||
github.com/go-openapi/jsonpointer v0.20.2 // indirect | ||
github.com/go-openapi/swag v0.22.8 // indirect | ||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect | ||
github.com/invopop/yaml v0.2.0 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/mailru/easyjson v0.7.7 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect | ||
github.com/perimeterx/marshmallow v1.1.5 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
go.uber.org/atomic v1.7.0 // indirect | ||
go.uber.org/multierr v1.6.0 // indirect | ||
golang.org/x/net v0.17.0 // indirect | ||
golang.org/x/net v0.19.0 // indirect | ||
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The types have changed here, presumably because of the v2 tool