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
Now change "foo": { to "foo2": { and re-execute the retrieval of foo. I'd expect a "no flag found" error or similar, but I still get baz.
Restart the flagd process and foo is no longer found (which is the correct behaviour).
Alternatively, run flagd and (while it is running) add a new flag called foo3. Now get foo3 and that works. Proving that adding dynamically works but deleting doesn't.
The text was updated successfully, but these errors were encountered:
Observed behavior
Changing a flag key while flagd is running doesn't reindex the available flags and the old value is returned until
flagd
is restarted.Adding new flags does work
Expected Behavior
Adding and removing flags is entirely dynamic and the JSON file is always the source of truth.
Steps to reproduce
Create a JSON file:
Which (correctly) returns
baz
.Now change
"foo": {
to"foo2": {
and re-execute the retrieval offoo
. I'd expect a "no flag found" error or similar, but I still getbaz
.Restart the
flagd
process andfoo
is no longer found (which is the correct behaviour).Alternatively, run
flagd
and (while it is running) add a new flag calledfoo3
. Now getfoo3
and that works. Proving that adding dynamically works but deleting doesn't.The text was updated successfully, but these errors were encountered: