18
Views
4
Comments
[Feature Toggle Management] Duplicate records inside the FeatureToggleConfiguration entity in FeatureToggle_Lib
feature-toggle-management
Reactive icon
Forge asset by Experts
Application Type
Reactive

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.

2024-12-02 13-16-47
Vipin Yadav

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

UserImage.jpg
Shivendra Kumar

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.

UserImage.jpg
Bruno Machado
Staff

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:

  1. Opened the LifeTime Plugin;
  2. Created a feature toggle;
  3. Checked the entity FeatureToggle on the dev environment

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!

UserImage.jpg
Shivendra Kumar

This is working now.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.