You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a request to a new endpoint flagd.evaluation.v1.Service/ResolveBoolean (#1083) for a boolean flag evaluates to a negative variant, then the response is missing the value key:
## This PR
- add custom marshalling options
### Related Issues
Fixes#1116
### Notes
I manually tested to confirm the fix is working. However, it's currently
not automatically tested because the issue only affects HTTP-based
requests, and the E2E tests use gRPC. I'll create a follow-up task to
expand the E2E test suite to include HTTP tests.
Signed-off-by: Michael Beemer <[email protected]>
Observed behavior
When a request to a new endpoint
flagd.evaluation.v1.Service/ResolveBoolean
(#1083) for a boolean flag evaluates to a negative variant, then the response is missing thevalue
key:Expected Behavior
The evaluation response contains
value
key for both negative and positive variants:Steps to reproduce
The flags definition (
test.json
):Up
flagd
(v0.8.0):Request for a new endpoint (
flagd.evaluation.v1.Service/ResolveBoolean
) with a context for which the variantoff
is expected:The response does not contain
value
attribute:Request for a new endpoint (
flagd.evaluation.v1.Service/ResolveBoolean
) with a context for which the varianton
is expected:The
value
attribute is present in the response:When a request is made to the old endpoint by both contexts (
off
&on
variants are expected), the response contains thevalue
attribute:The text was updated successfully, but these errors were encountered: