robbieaverill

protected static $illegal_extensions = [YourDataObject::class => [ExtensionToRemove::class]]

👍 (2)
robbieaverill

hook being part of an extension? you can blacklist extensions in your unit tests if you want to

robbieaverill

@gened in SS3 there was an API like SapphireTest::is_running_test(). we removed that in SS4 because it's not a good idea to write your code in a different way depending on whether it's being tested or not. another way you could achieve it is by adding a config flag for whether your logic should run, e.g. if ($this->config()->get('do_something_enabled')) { $this->doSomething(); } and you can then enable or disable that config in your unit tests

robbieaverill

hey team, @Scopey @cheddam and I are working on bugs today, if anyone wants to jump in and help out, or wants help with a core bug they're working on, please feel free to sing out. here's a list of easy issues to get started with: https://silverstripe-github-issues.now.sh/?mode=ux&q=label%3Aaffects%2Fv4+label%3Aeffort%2Feasy&product-team-mode=1

robbieaverill

Yeah if you don’t instantiate your classes with Injector (MyClass::create() or Injector::inst()->create(MyClass::class) (which doesn’t require the Injectable trait on MyClass)) then you won’t get any $dependencies added, which might be it. Also check as Indy said that you’re using the right logger name for CWP if it’s a custom logger- SilverStripe_log

robbieaverill

React form fields are usually designed for the cms only. It might work, but you’d need to BYO React app and probably use injector (decoupled POC for frontend available on request) in order to make it work

robbieaverill

hey team, if anyone wants to pick up a UX issue in one of the supported modules or core, and wants to find an easy issue to get started with (e.g. CSS changes or JS tweaks), here's a list which should be a good start: https://silverstripe-github-issues.now.sh/?mode=easy&q=label%3Achange%2Fpatch+label%3Atype%2Fbug+label%3Atype%2Fux

(2)