discourse/app
Kelv 50ac0a5702
DEV: refactor singleton mixin to class decorator (#30498)
Refactors the Singleton mixin into a class decorator that directly mutates target classes with the same static property & functions as the mixin. This maintains the public interface of such singleton classes.

Classes refactored to use the singleton class decorator:

Session
User
Site
I removed singleton functionality from LogsNotice since services are already singletons and what we had previously defined in its customized createCurrent method could be replaced by directly injecting the relevant services into the class. This also allowed us to get rid of the logs-notice initializer.

We are adding a deprecation warning to the Singleton mixin instead of deleting since there are plugins that could still be using it.
2025-01-02 12:57:48 +08:00
..
assets DEV: refactor singleton mixin to class decorator (#30498) 2025-01-02 12:57:48 +08:00
controllers DEV: Move admin config pages out of /customize/ sub-route (#30511) 2025-01-02 09:13:11 +10:00
helpers PERF: Refactor and optimize splash screen implementation (#30373) 2024-12-30 11:31:08 +00:00
jobs DEV: Support a perform_when_readonly option for Jobs::Scheduled (#30478) 2024-12-27 09:42:40 +08:00
mailers
models FEATURE: Improve wizard quality and rearrange steps (#30055) 2025-01-02 09:28:23 +10:00
serializers FEATURE: Add option to hide full name input at signup (#30471) 2024-12-30 22:26:20 +03:00
services FEATURE: Add option to hide full name input at signup (#30471) 2024-12-30 22:26:20 +03:00
views PERF: Refactor and optimize splash screen implementation (#30373) 2024-12-30 11:31:08 +00:00