1

I have a set of feature toggles configured in an ENUM.

If I insert a value into the TOGGLZ table, i can override this flag. How can I block this? Is my config wrong?

getFlag(my_fag) == false;
insert into TOGGLZ values ('my_flag','1','null','null')
getFlag(my_fag) == true; // i expect false

Any one an idea?

ApexOne
  • 97
  • 9
  • If you want to hardcode the state, just don't use JDBCStateRepository at all. – chkal Nov 29 '18 at 12:29
  • @chkal True, but let me expend on this. Some of the features should be toggleble, but not all. I tought by defining groups this would be handled. But its not. Think i have to implement my own state repo – ApexOne Nov 30 '18 at 13:04
  • 1
    I don't see much sense in defining toggles which cannot be toggled. Why not using simple boolean constants in this case? – chkal Dec 02 '18 at 11:09
  • @chkal there are two sets of toggles, one can change, the other one must not. Only for development purposes we need to toggle both on demand. – ApexOne Dec 03 '18 at 11:09

0 Answers0