Skip to content

[BUG] Warning about overwriting $flagd property when perform bulk evaluation #923

@beeme1mr

Description

@beeme1mr

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:latest

Run the ResolveAll command

curl -X POST "http://localhost:8013/schema.v1.Service/ResolveAll" \
  -d '{"context":{}}' -H "Content-Type: application/json"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageThis issue needs to be investigated by a maintainerbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions