dotnet-sdk-contrib icon indicating copy to clipboard operation
dotnet-sdk-contrib copied to clipboard

Metadata not exposed

Open chris-edstrom opened this issue 8 months ago • 2 comments

OpenFeature has a metadata field exposed via Get{Boolean,Variant}Details(), but FliptToOpenFeatureConverter.EvaluateAsync does not propagate flag metadata from Flipt's metadata key in a flag:

For example:

- key: test
name: test
type: BOOLEAN_FLAG_TYPE
enabled: true
metadata:
  configKey: dynamicValueThatIsEnabled

It would be great to be able to get to the metadata object via the FlagEvaluationDetails.FlagMetadata.

You can work around this using Variant types and attachments, but this is much cleaner.

chris-edstrom avatar May 05 '25 05:05 chris-edstrom

FYI @markphelps

beeme1mr avatar May 07 '25 03:05 beeme1mr

thanks @beeme1mr and @chris-edstrom ! I agree this would be nice. I dont currently have the bandwidth to add this in the dotnet adapter. Are you or anyone with more dotnet experience than myself able to contribute?

markphelps avatar May 08 '25 20:05 markphelps