0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit/server_helpers
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
..
test_tpl Fix @blog globals in special templates 2015-03-28 23:21:10 +02:00
asset_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
author_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
body_class_spec.js 🔥 Remove the deprecated body classes (#7510) 2016-10-10 11:38:12 +02:00
content_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
date_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
encode_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
excerpt_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
facebook_url_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
foreach_spec.js Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
get_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
ghost_foot_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
ghost_head_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
has_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
image_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
is_spec.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
meta_description_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
meta_title_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
navigation_spec.js urlencode navigation URLs rather than HTML escape (#7836) 2017-01-17 15:55:19 +01:00
next_post_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
page_url_spec.js 🔥 Remove deprecated pageUrl helper (#7509) 2016-10-06 20:47:37 +02:00
pagination_spec.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
plural_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
post_class_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
prev_post_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
tags_spec.js Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
title_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
twitter_url_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
url_spec.js urlencode navigation URLs rather than HTML escape (#7836) 2017-01-17 15:55:19 +01:00
utils.js Unify usage of config in unit tests 2015-12-15 10:48:24 +00:00