-
Notifications
You must be signed in to change notification settings - Fork 109
[BUG] Warning about overwriting $flagd property when perform bulk evaluation #923
Copy link
Copy link
Closed
Labels
Needs TriageThis issue needs to be investigated by a maintainerThis issue needs to be investigated by a maintainerbugSomething isn't workingSomething isn't working
Description
Observed behavior
A warning is logged to the console for every feature flag with a targeting rule defined when performing a bulk evaluation. This only affects the ResolveAll endpoint.
Here's an output of the logs.
playground-flagd-1 | 2023-09-19T00:56:01.691Z warn eval/json_evaluator.go:366 overwriting $flagd properties in the context {"component": "evaluator", "evaluator": "json"
Expected Behavior
The warning log should only occur when the incoming context includes the property $flagd.
Steps to reproduce
Start the latest version of flagd. In this example, the test bed image is used but the same behavior is visible in flagd as well.
docker run --rm -it -p 8013:8013 ghcr.io/open-feature/flagd-testbed:latestRun the ResolveAll command
curl -X POST "http://localhost:8013/schema.v1.Service/ResolveAll" \
-d '{"context":{}}' -H "Content-Type: application/json"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs TriageThis issue needs to be investigated by a maintainerThis issue needs to be investigated by a maintainerbugSomething isn't workingSomething isn't working