flags icon indicating copy to clipboard operation
flags copied to clipboard

Boolean flag always returns false although status is active

Open Niwilai opened this issue 4 years ago • 6 comments

Hi Dominik,

Thanks for this awesome package and the hosted service. I gave this a try on our end and I noticed that for some reason, although the boolean was set to active it would always return false as the value.

Is there a setting I have oversighted? Thanks

Niwilai avatar Jul 05 '22 15:07 Niwilai

Hey @Niwilai, could it be that you edited the feature flag for one environment, but are evaluating them for a different environment?

  • Check that you are editing the feature flags in the same environment as specified by your Environment Key
  • Check that the flag is active for the environment you are evaluating for (the flag has a separate active state per environment)

dferber90 avatar Jul 05 '22 18:07 dferber90

Another less common culprit could be that you changed the defaults to both evaluate to the same value

image

dferber90 avatar Jul 05 '22 18:07 dferber90

Based on the logs I saw that you were editing the production environment. There is a dropdown at the top of the page. You can use it to switch between different environments. Let me know if that was the issue :)

image

dferber90 avatar Jul 05 '22 18:07 dferber90

Based on the logs I saw that you were editing the production environment. There is a dropdown at the top of the page. You can use it to switch between different environments. Let me know if that was the issue :)

image

This was it. Such a rookie mistake, thank you for clarifying.

Niwilai avatar Jul 06 '22 07:07 Niwilai

Of course! I wonder if I can make the distinction clearer somehow. Feel free to point anything out that might have helped you realize it sooner!

dferber90 avatar Jul 06 '22 07:07 dferber90

Of course! I wonder if I can make the distinction clearer somehow. Feel free to point anything out that might have helped you realize it sooner!

Maybe something along those lines would have been more obvious to me. But I wouldn't worry too much about it unless this happens at least once more. Screenshot 2022-07-06 at 09 14 35

Niwilai avatar Jul 06 '22 07:07 Niwilai