Whenever I add a new feature toggle on the FeatureToggle_Mng screen, I get duplicate records (sometimes 2 or 3) in the FeatureToggleConfiguration entity within the FeatureToggle_Lib module. I have installed everything on the dev environment and FeatureToggle_Lib on each environment (there are 4 environments). I have been trying to identify the issue, but I am unable to resolve it. Can you please help with this?
Additionally, I would like to understand how the feature toggle value is checked when there is no server call inside the GetFeatureToggleById (module - Template_FT_ClientFS) and GetLocalFeatureToggleValue client actions.
Hi @Shivendra Kumar,
Add checks in the Save action on the FeatureToggle_Mng screen, use unique constraints, and ensure that only one record is added for each feature toggle.
Thanks,
Vipin Yadav
Hi Vipin,
Thank you for replying to this.
Yes, I have done exactly same thing on FeatureToggleConfiguration entity within the FeatureToggle_Lib module. It is troughing error other records are getting inserted for same FeatureToggle key.Still, I want to understand or want to know if someone else has faced this issue and it is something with component.
Hello Shivendra Kumar,
I am not getting the behavior you are describing as the key should be unique.
Here's the step's i have performed:
Result: Only 1 feature was created
Regarding you second question, at the moment the feature is checked agains a JSON that is stored in client side. This json is renewed every 5 minutes if i'm not mistaken.
Cheers!
This is working now.