0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test/integration/model
Katharina Irrgang 0201c431d7 🔥 do not store settings in config (#7924)
* 🎨  🔥  do not store settings in config and make settings cache easier available

- remove remembering settings value in theme config
- if we need a cache value, we are asking the settings cache directly
- instead of settings.getSettingSync we use settings.cache.get

- added TODO:
  - think about moving the settings cache out of api/settings
  - we could create a folder named cache cache/settings
  - this settings cache listens on model changes for settings
  - decoupling

* 🔥  remove timezone from config

- no need to store in overrides config and in defaults settings

* 🎨  context object helper

- replace config.get('theme') by settings cache

* 🎨  replace config.get('theme') by settings.cache.get

* 🎨  adapt tests

* fixes from comments
2017-02-03 13:15:11 +00:00
..
base 🐛 fix DST in listeners spec (#7652) 2016-10-31 11:46:29 +00:00
model_accesstoken_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
model_app-fields_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
model_app-settings_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
model_apps_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
model_invite_spec.js 🎨 invites roles table into a field on the invites table (#7705) 2016-11-16 09:33:44 +00:00
model_permissions_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
model_posts_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
model_roles_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
model_settings_spec.js 🔥 remove database version (#7894) 2017-01-26 12:12:00 +00:00
model_tags_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
model_users_spec.js 🔥 😎 remove old migrations (#7887) 2017-01-25 13:47:49 +00:00