Ghost/ghost/admin/tests/unit
Kevin Ansfield 060d791a63 Removed need for .get() with settings service
no issue

The `settings` service has been a source of confusion when writing with modern Ember patterns because it's use of the deprecated `ProxyMixin` forced all property access/setting to go via `.get()` and `.set()` whereas the rest of the system has mostly (there are a few other uses of ProxyObjects remaining) eliminated the use of the non-native get/set methods.

- removed use of `ProxyMixin` in the `settings` service by grabbing the attributes off the setting model after fetching and using `Object.defineProperty()` to add native getters/setters that pass through to the model's getters/setters. Ember's autotracking automatically works across the native getters/setters so we can then use the service as if it was any other native object
- updated all code to use `settings.{attrName}` directly for getting/setting instead of `.get()` and `.set()`
- removed use of observer in the `customViews` service because it was being set up before the native properties had been added on the settings service meaning autotracking wasn't able to set up properly
2022-10-07 16:14:57 +01:00
..
authenticators Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
components Update dependency ember-mocha to v0.16.0 2019-06-17 15:32:09 +01:00
controllers Removed need for .get() with settings service 2022-10-07 16:14:57 +01:00
helpers Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
mixins Update dependency eslint-plugin-ghost to v1.4.0 2020-05-06 18:07:01 +01:00
models Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
routes Added Ghost Explore in Ghost as iframe app behind feature flag (#15495) 2022-10-07 14:32:54 +01:00
serializers Switched from v3 to canary API 2021-02-05 09:12:26 +00:00
services Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
transforms Refactored to use individual slack settings (#2384) 2022-05-16 11:38:32 +01:00
utils Migrate to latest ember, ember-mocha and modern ember testing (#1044) 2019-01-02 09:58:55 +00:00
validators Refactored to use individual slack settings (#2384) 2022-05-16 11:38:32 +01:00
.gitkeep Ember init, bower deps, es6 modules 2015-03-11 12:37:41 -06:00