-
Notifications
You must be signed in to change notification settings - Fork 27
[FSSDK-8971] feat: add FetchQualifiedSegments to Decide #364
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
[FSSDK-8971] feat: add FetchQualifiedSegments to Decide #364
Conversation
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.
looks good, just some minor changes required.
@@ -12,7 +12,7 @@ require ( | |||
github.com/golang-jwt/jwt/v4 v4.5.0 | |||
github.com/google/uuid v1.3.0 | |||
github.com/lestrrat-go/jwx v0.9.0 | |||
github.com/optimizely/go-sdk v1.8.3 | |||
github.com/optimizely/go-sdk v1.8.4-0.20230216074708-27b2772ccf33 |
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.
This should be done using go mod tidy
and go mod clean
to automatically update go.sum
and remove irrelevant indirect dependencies which were needed by go-sdk 1.8.3
.
DecideOptions []string `json:"decideOptions"` | ||
ForcedDecisions []ForcedDecision `json:"forcedDecisions,omitempty"` | ||
FetchSegments bool `json:"fetchSegments"` | ||
FetchSegmentsOptions []segment.OptimizelySegmentOption `json:"fetchSegmentsOptions,omitempty"` |
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.
Can we confirm that if user sends a wrong value here then this will not break? maybe have 3 unit tests:
- pass a single incorrect value in array
- pass a mixture of correct and incorrect values
- pass a empty array
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.
Looks great!
Can we update openapi.yml (new decide request params, 5xx error response on fetechSegments failure)?
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.
LGTM, just needs an update to openapi.yaml
as @jaeopt suggested.
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.
LGTM
Summary
Ticket
FSSDK-8971