Skip to content

Support Default Variants in OpenFeature Providers #4293

@ChrisMcD1

Description

@ChrisMcD1

Problem

I see that in #3271 there is an unchecked box about adding support for default variants to OpenFeature providers.

Image

It appears from the latest Java lib and Go lib they both only check the resp.match is true. Given that the resp.match == false for default variants this means you can never get served the value of the default variant, and it falls back to the client side default.

Which major version?

v1

Ideal Solution

The simple fix is to just add a bit to those if statements checking resp.reason == DEFAULT_EVALUATION_REASON and then to use the provided value if so.

Search

  • I searched for other open and closed issues before opening this

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementCreated by Linear-GitHub Syncv1Flipt v1

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions