- Issue created by @mglaman
- πΊπΈUnited States mglaman WI, USA
Needs tests. But I at least wanted to get the idea in an MR before the weekend
- π§π·Brazil charlliequadros
Hi @mglaman
I'd be happy to test this, but it's not very clear how to do it. Could you provide more details on the process?
- πΊπΈUnited States mglaman WI, USA
@charlliequadros as per the summary, you need to programmatically import content when 1) there are no roles with `is_admin` flag and 2) super user is disabled. This can be done by importing a recipe with default content or custom content
- πΊπΈUnited States phenaproxima Massachusetts
One small thing but this otherwise seems completely straightforward to me and has proper test coverage. Once that's fixed this is an easy RTBC as far as I'm concerned.
I'm hoping committers will backport this to 11.1.x, since this is a non-breaking change in an experimental subsystem.
The test failure is in a build test, which is mystifying because build tests don't touch recipe stuff AFAIK. Is HEAD broken?
-
alexpott β
committed f3cba0bd on 11.x
Issue #3513053 by mglaman, phenaproxima: Allow specifying account to...
-
alexpott β
committed f3cba0bd on 11.x
- πΊπΈUnited States mglaman WI, USA
Thanks!
$importer = \Drupal::service(Importer::class); assert($importer instanceof Importer); $importer->importContent( new Finder(__DIR__ . '/content'), account: new AnonymousUserSession() );
Like a charm :)
Automatically closed - issue fixed for 2 weeks with no activity.