Skip to content

Commit

Permalink
fix: Should map metadata when converting from ResolutionDetails to Fl…
Browse files Browse the repository at this point in the history
…agEvaluationDetails

Signed-off-by: Benjamin Evenson <2031163+benjiro@users.noreply.github.com>
  • Loading branch information
benjiro committed Jul 25, 2024
1 parent 79def47 commit 466fd1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenFeature/Extension/ResolutionDetailsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ internal static class ResolutionDetailsExtensions
public static FlagEvaluationDetails<T> ToFlagEvaluationDetails<T>(this ResolutionDetails<T> details)
{
return new FlagEvaluationDetails<T>(details.FlagKey, details.Value, details.ErrorType, details.Reason,
details.Variant, details.ErrorMessage);
details.Variant, details.ErrorMessage, details.FlagMetadata);
}
}
}
1 change: 1 addition & 0 deletions test/OpenFeature.Tests/OpenFeatureClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using NSubstitute.ExceptionExtensions;
using OpenFeature.Constant;
using OpenFeature.Error;
using OpenFeature.Extension;

Check failure on line 14 in test/OpenFeature.Tests/OpenFeatureClientTests.cs

View workflow job for this annotation

GitHub Actions / check-format

Using directive is unnecessary.

Check failure on line 14 in test/OpenFeature.Tests/OpenFeatureClientTests.cs

View workflow job for this annotation

GitHub Actions / check-format

Using directive is unnecessary.

Check failure on line 14 in test/OpenFeature.Tests/OpenFeatureClientTests.cs

View workflow job for this annotation

GitHub Actions / check-format

Using directive is unnecessary.
using OpenFeature.Model;
using OpenFeature.Tests.Internal;
using Xunit;
Expand Down

0 comments on commit 466fd1c

Please sign in to comment.