Keep features on config process restart. 28/head
authorILYA Khlopotov <iilyak@apache.org>
Thu, 21 Feb 2019 17:57:29 +0000 (17:57 +0000)
committerILYA Khlopotov <iilyak@apache.org>
Thu, 21 Feb 2019 18:00:20 +0000 (18:00 +0000)
commitc92f3ce27155ea88866a0b93d5823d6a5fe7d8b7
treed48a43e7c4e10b960cc67688af83fd3026190e91
parent1627aae2c06c1874854988e9e77810824299c39b
Keep features on config process restart.

We used to store a list of enabled features in ets table owned by `config`
process. This meant that on every `config` process restart we loose the
list. Therefore welcome endpoint start to return empty list of features.

Use application environment to keep the list.

fixes #1930
src/config.erl
test/config_tests.erl