You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2024. It is now read-only.
Thanks for letting us know! Indeed, targeting rules aren't copied to new FlagBuilder instances which are created when the test data is updated. This is a bug and I have a fix for it under review internally.
Is this a support request?
Yes and no? I filed a support ticket since it affects our work but source seems to be SDK itself.
Describe the bug
The TestData source does not seem to persist rules after toggling a flag off and then back on again.
To reproduce
Run these added unit tests: https://github.com/ashoofly/java-server-sdk/pull/1/files.
rulesPersistAfterTogglingFlagOffAndOn()
should fail.For comparison,
targetsPersistAfterTogglingFlagOffAndOn()
succeeds.Expected behavior
Existing rules should remain in place after a flag is toggled back on.
Logs
SDK version
5.2.0
Language version, developer tools
jdk1.8.0_121
OS/platform
Mac OSX Catalina
Additional context
I've also noticed during debugging that the
rules
field in theTestData.FlagBuilder
is alwaysnull
.The text was updated successfully, but these errors were encountered: