discourse/app/assets/javascripts/wizard/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
..
components DEV: Rename custom getOwner to getOwnerWithFallback (#23437) 2023-09-26 14:30:52 +01:00
controllers UX: Restore wizard confetti in final step (#23533) 2023-09-26 12:04:21 +01:00
lib DEV: Refactor wizard preview components to use inheritence (#20282) 2023-02-14 14:20:15 +00:00
mixins
models FIX: Preload fonts before rerendering wizard style canvas (#22361) 2023-07-03 11:30:26 +10:00
routes DEV: Update replaceWith on Route (#23153) 2023-08-21 16:53:54 -05:00
templates DEV: Introduce declarative hide-application-footer helper (#23088) 2023-08-17 12:47:08 +01:00
test-helpers DEV: Refactor wizard preview components to use inheritence (#20282) 2023-02-14 14:20:15 +00:00