hey guys, looks like youโ€™re pushing some stuff rn ...
# contributing
h
hey guys, looks like youโ€™re pushing some stuff rn but my features list got bugged
f
checking
f
thanks for catching. Fixing it now
๐Ÿ™Œ 1
Looks like were adding a new rule just as we updated the data model
h
yeh i just saw for a second that there was a separate section for dev and prod override rules and then it went to white
something that a few optional operators can solve?
any ETA? was in the middle of testing a new feature ๐Ÿ˜…
f
Finishing up now, sorry
Can you try refreshing now?
h
yes was able to reload but something weird happening with my existing feature flags. when I tried to remove a prod only from the dev side, the prod table disappeared completely
and its not coming back after i reload
did it delete all of my feature flags for Prod for that rule?
it looks totally off
iโ€™m a little scared to touch anything now
f
sorry about that. The rules are all backed up in the database, so nothing is lost. I might revert this latest commit and do more debugging
h
I think I manually restored this one that I just lost i hope
f
I found the bug when deleting rules. It's just hiding them in the UI, but they are still in the database.
h
ok just let me know what I should expect and if itโ€™s ok to edit things again now
f
Pushing a fix now, will take 5-10 minutes to push out
h
ok
f
the missing rules should show up now. Let me know if any of the ones you manually edited are still missing anything and I can manually restore them
h
hey noticed one more weird thing โ€” when I deleted a rule it turned both the DEV and the Prod switches at the top of the page off
yeh confirmed it again - i deleted an override rule and it turned the switch to OFF, per ENV
in both cases it was the last/only override rule, if that helps. perhaps you have some logic in there that says if you delete the last rule do something different
and I broke something again ๐Ÿ˜…
f
I'm fixing the toggle part now. It's another case of it showing the wrong state in the UI, even though it's right in the database.
h
my features page is still errored out
f
Still working on a permanent fix. I can manually fix the page for you in the meantime
h
please? what should I do to not screw it up again
f
The page should load now. If you can hold off adding new rules for a little bit until we fix the underlying issue.
๐Ÿ‘ 1
h
ok will do. please let me know when I can make changes again
f
Ok, I'm getting close. Mongo decided to store the rule arrays as objects with numeric keys instead of arrays
h
noSQL = chaos ๐Ÿ™‚
f
I believe everything is working now.
h
ok gonna go in and try to break it again
๐Ÿ™‚
happy to report that nothing broke ๐Ÿ™Œ