From 929b5c6aa0482d81f120f3a2a87dc159cfdc62ad Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Thu, 12 Jan 2023 15:25:25 -0500 Subject: [PATCH 1/3] feat: add STATIC, CACHED reasons Signed-off-by: Todd Baert --- src/OpenFeature/Constant/Reason.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/OpenFeature/Constant/Reason.cs b/src/OpenFeature/Constant/Reason.cs index 8e233d5e..c525deb6 100644 --- a/src/OpenFeature/Constant/Reason.cs +++ b/src/OpenFeature/Constant/Reason.cs @@ -26,6 +26,16 @@ public static class Reason /// public static string Default = "DEFAULT"; + /// + /// The resolved value is static (no dynamic evaluation) + /// + public static string Static = "STATIC"; + + /// + /// The resolved value was retrieved from cache + /// + public static string Cached = "CACHED"; + /// /// Use when an unknown reason is encountered when evaluating flag. /// An example of this is if the feature provider returns a reason that is not defined in the spec From 9893f166cda5b24660ba9581525cb5530283ada6 Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Thu, 12 Jan 2023 15:31:22 -0500 Subject: [PATCH 2/3] fixup: spacing Signed-off-by: Todd Baert --- src/OpenFeature/Constant/Reason.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFeature/Constant/Reason.cs b/src/OpenFeature/Constant/Reason.cs index c525deb6..e1ded14b 100644 --- a/src/OpenFeature/Constant/Reason.cs +++ b/src/OpenFeature/Constant/Reason.cs @@ -34,8 +34,8 @@ public static class Reason /// /// The resolved value was retrieved from cache /// - public static string Cached = "CACHED"; - + public static string Cached = "CACHED" + /// /// Use when an unknown reason is encountered when evaluating flag. /// An example of this is if the feature provider returns a reason that is not defined in the spec From 7e1c0662332d86d3ee24fe329bd7edb552310a40 Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Thu, 12 Jan 2023 15:35:00 -0500 Subject: [PATCH 3/3] fixup: lint issue Signed-off-by: Todd Baert --- src/OpenFeature/Constant/Reason.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenFeature/Constant/Reason.cs b/src/OpenFeature/Constant/Reason.cs index e1ded14b..8d08651d 100644 --- a/src/OpenFeature/Constant/Reason.cs +++ b/src/OpenFeature/Constant/Reason.cs @@ -34,7 +34,7 @@ public static class Reason /// /// The resolved value was retrieved from cache /// - public static string Cached = "CACHED" + public static string Cached = "CACHED"; /// /// Use when an unknown reason is encountered when evaluating flag.