discourse/app/assets/javascripts/admin/addon
David Taylor 8958b4f76a
DEV: Rename custom getOwner to getOwnerWithFallback (#23437)
Our custom implementation of `getOwner` includes a fallback which returns an owner, even if the passed object does not have one set. This is confusing and creates a false sense of security. Generally if the fallback is used, it means there is a problem with the patterns being used.

This commit renames our custom implementation to `getOwnerWithFallback`, while maintaining the old `getOwner` export with a deprecation notice. Core code is updated to use the official `@ember/application` implementation, or the new `getOwnerWithFallback` function.

This commit updates all core uses of `{ getOwner } from discourse-common/lib/get-owner` to use `getOwnerWithFallback`. Future commits will work through and convert many of these to use the official `@ember/application` implementation
2023-09-26 14:30:52 +01:00
..
adapters DEV: Migrate remaining admin classes to native syntax (#20717) 2023-03-17 12:25:05 +00:00
components FIX: Double footer in install-theme modal (#23503) 2023-09-11 12:04:32 +02:00
controllers DEV: Adjust site setting search limiter (#23589) 2023-09-14 09:52:25 -06:00
helpers DEV: Migrate remaining admin classes to native syntax (#20717) 2023-03-17 12:25:05 +00:00
lib UX: remove unsupported filterable attr from form template sample (#23535) 2023-09-12 12:20:55 -03:00
mixins DEV: Convert site-setting-default-categories modal to component-based API (#22968) 2023-08-10 10:31:34 +01:00
models FIX: Improve admin plugin list and modernize code (#23256) 2023-08-28 10:48:59 +10:00
routes DEV: Modernize admin-site-text route/controller (#23581) 2023-09-14 11:27:09 +01:00
services DEV: Rename custom getOwner to getOwnerWithFallback (#23437) 2023-09-26 14:30:52 +01:00
templates DEV: Modernize admin-site-text route/controller (#23581) 2023-09-14 11:27:09 +01:00