discourse/app
David Taylor ae3a5f6bf0
DEV: Improve setting of raw-view owner (#18310)
Using the owner of `site` is not perfectly reliable, especially given that `site` is stubbed in tests. Instead, we can fetch the owner of the `context` object itself.

Also, Ember sets the owner of an EmberObject based on the first parameter to `create`. This is preferable to a separate `setOwner` call because it means the owner is available during initialization.

Unfortunately we don't have any way to compile raw templates inline during tests, so testing this behavior in core is very difficult. Given that we aim to remove the raw handlebars system in the not-too-distant future, it doesn't make sense to invest lots of time on tooling here. Regressions of this behavior will be detected by theme CI tests [like this](https://github.com/discourse/discourse-topic-thumbnails/pull/21).
2022-09-21 12:23:28 +01:00
..
assets DEV: Improve setting of raw-view owner (#18310) 2022-09-21 12:23:28 +01:00
controllers DEV: Update highlight.js to version 11 (#18282) 2022-09-20 12:43:28 -03:00
helpers DEV: Compile splash screen JS with ember-cli before inlining (#18150) 2022-09-01 09:58:48 +01:00
jobs UX: Use dominant color as image loading placeholder (#18248) 2022-09-20 10:28:17 +01:00
mailers FEATURE: Custom unsubscribe options (#17090) 2022-06-21 15:49:47 -03:00
models DEV: Enforce dominant_color length in validation (#18309) 2022-09-21 11:01:21 +01:00
serializers DEV: Ship first pass of new user page navigation behind feature flag (#18285) 2022-09-21 12:32:47 +08:00
services FIX: Don't delete previous messages when we're inside the sent_recently window. (#18239) 2022-09-13 12:43:24 -03:00
views DEV: remove H1 from crawler view header (#18201) 2022-09-12 10:46:00 -04:00