-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Add client-prereq-events
capability
#242
Conversation
WithClientSideInitialContext(contextA), | ||
dataSource, events) | ||
|
||
_ = client.EvaluateFlag(t, servicedef.EvaluateFlagParams{FlagKey: prereq1Key, DefaultValue: default1}) |
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.
Okay @kinyoklion check out this setup I have.
- I explicitly evaluate prereq1Key. This gets added to the summary event, including the default value I provided.
- I then evaluate top level, which has a prereq on prereqs 1 and 2. This results in prereq2 getting added to the summary event without a default value.
- We then evaluate prereq 2 explicitly, which just increments that value, but does not add the default value to the summary counter.
Variation: o.Some(0), | ||
FlagVersion: o.Some(1), | ||
Version: 11, | ||
Prerequisites: []string{"unknown"}, |
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.
And yet here we have a prereq on an unknown flag. Once we explicitly evaluate the top level key here, the unknown flag is added to the summary event WITH a default value. What's up with that?
df768cc
to
2d69608
Compare
🤖 I have created a release *beep* *boop* --- ## [2.24.0](v2.23.0...v2.24.0) (2024-10-15) ### Features * Add `client-prereq-events` capability ([#242](#242)) ([3172672](3172672)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
No description provided.