0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/test/integration/api
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
..
advanced_browse_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
api_authentication_spec.js 🎨 optimisations for brute (#7867) 2017-01-23 22:44:39 +01:00
api_configuration_spec.js More consistant usage of urlFor('home') (#7689) 2017-01-23 09:22:37 +01:00
api_db_spec.js Migration: New database versioning (#7499) 2016-10-06 14:50:55 +01:00
api_invites_spec.js 🐛 fix invite permissions for editor (#7889) 2017-01-25 12:07:31 +00:00
api_mail_spec.js 🛠 use Ignition for logging/errors (#7869) 2017-01-23 11:04:01 +00:00
api_notifications_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
api_posts_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
api_roles_spec.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
api_schedules_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
api_settings_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
api_slugs_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_subscription_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
api_tags_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
api_users_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00