medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
441 stars 211 forks source link

Create a shared-lib for "settings" #4560

Open garethbowen opened 6 years ago

garethbowen commented 6 years ago

Settings isn't very complicated but it is used everywhere so there is some value in making sure it's consistent and correct. Clean up the admin and webapp settings service, the api settings service, and the api and sentinel config modules.

garethbowen commented 6 years ago

Also consider an improvement so calls to update the settings don't put the doc unless they actually change the settings. This saves everyone having to replicate changes that don't change anything. This would probably solve #3050