flagr
flagr copied to clipboard
Create Flag by Key
We use the key throughout our code to determine which flag to use. The normal process for creating a flag is to enter a description, go into the flag and then set the key. It'd be much more convenient to be able to set the key instead of the description when creating a new flag.
Expected Behavior
- Add Flag key in input
- Click
Create New Flag
- Flag is created with the key set to the input and blank description.
Current Behavior
- Add description in input
- Click
Create New Flag
- Click into the newly created flag
- Change Flag key
- Click
Save Flag
Possible Solution
One solution would be to just change the description to key. This would be a big UI change and possibly not feasible. Alternatively we could split the input boxes into two, one for key and one for description.
Context
In general, descriptions are nice to have but not 100% necessary since our keys are human readable. Having to go into the flag to edit the key is an extra couple of steps each time.
Yes, definitely doable to "split the input boxes into two". However, I also want to support the use case of generating the keys to be explicitly at random with unguessable strings, and there're tradeoffs to be made from the UI. Any idea to support both?
@zhouzhuojie maybe it's an explicit action [add key]
that toggles a new input box?
Could this be done via server configuration instead? https://checkr.github.io/flagr/#/flagr_env
Perhaps have a field for both key and description and if the key field is left blank it's automatically generated (and add pre-fill text to the field explaining that)
Stale issue message