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
When I create a flag without variants, go to targeting and try to create a flag the submit button "Add Rule" is disabled. This was possible before updating to the current version.
It's not clear why I can't create a new flag, maybe it's a bug or this should have a feedback message about why it's not possible to perform the action.
Version Info
1.8.2
To Reproduce
Create a new flag
Go to Targeting
Click on "New Rule"
Expected behavior
Create a new flag without variants, returning "" on value field on each request.
Screenshots
The text was updated successfully, but these errors were encountered:
👋🏻 Just want to make sure I understand, you can create the flag but it won't allow you to create the rule because there are no variants? It should still allow you to make the flag, but just not add any rules which are used for evaluation. You should still be able to use GetFlag to check if the flag is enabled or not though.
Maybe adding a tooltip explaining this reasoning on the blurred out Add Rule button would improve the usability?
If there is a use case for allowing rules with no variants I can also undo the change in #759. Would just have to make sure this doesn't re-introduce any UX bug or anything that #759 may have fixed (I should have given better justification for that PR, sorry about that).
Actually I think you are right that this should go back to pre 1.7.0 behavior. I just tried it out on v1.6.3 (last one before 1.7) and it was intuitive
I'll revert the change in #759 and create a new release
Describe the bug
When I create a flag without variants, go to
targeting
and try to create a flag the submit button "Add Rule" is disabled. This was possible before updating to the current version.It's not clear why I can't create a new flag, maybe it's a bug or this should have a feedback message about why it's not possible to perform the action.
Version Info
1.8.2
To Reproduce
Targeting
Expected behavior
Create a new flag without variants, returning
""
on value field on each request.Screenshots
The text was updated successfully, but these errors were encountered: