-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currentTime strategy constraint doesn't work #245
Comments
I think the problem is here: unleash-client-dotnet/src/Unleash/Strategies/Constraints/DateConstraintOperator.cs Lines 26 to 28 in 43caba8
If |
In fact, shouldn't it use |
I submitted a PR |
thank you for raising this and for providing a clear bug report + a PR @tlevesque-ueat! We'll have a look and get back to you! |
Describe the bug
If I create a strategy with a
DATE_AFTER
constraint oncurrentTime
, with a date in the past, the feature flag is always considered disabled.The same feature flag works fine on the frontend with unleash-proxy-client-js.
To Reproduce
Steps to reproduce the behavior:
currentTime
withDATE_AFTER
and a date in the pastIUnleash.IsEnabled("MyFeatureFlag")
currentTime
constraintIUnleash.IsEnabled("MyFeatureFlag")
returns trueExpected behavior
IUnleash.IsEnabled("MyFeatureFlag")
should return true if the current date is after the specified dateScreenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: