Needs work
Project:
Default Content
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
15 Mar 2017 at 20:57 UTC
Updated:
19 Jul 2020 at 12:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
aaronbaumanIn this patch:
- create smaller helper methods to make importContent less monolithic
- no changes to logic or any other functionality
Comment #3
andypostThat's looks great, but I'd prefer to split the manager first
nits, trailing whitespaces
Comment #5
aaronbaumanAh, thank you i will follow up on 2614644 and pick those nits.
Comment #6
aaronbaumanComment #7
aaronbaumanI'll pick this up again after we close 2614644
Comment #8
andypostThere's now single
\Drupal\default_content\ImporterInterface::importContent()Comment #9
aaronbaumanComment #10
aaronbaumanRerolled @ importer
Comment #11
aaronbaumanComment #13
aaronbaumans/entityManager/entityTypeManager/
Comment #15
aaronbaumans/entity type id/entity type/
Comment #17
aaronbaumans/continue/return/
oy
Comment #19
aaronbaumanand again
Comment #21
alexpottI like the way this is going. Here's some other thoughts:
Here's an interdiff of the changes I would apply to #19
This also passes tests - you can run them locally there's only 2!
Comment #22
alexpott@aaronbauman - fyi you can just apply the interdiff in #21 on top of your patch in #19 to see how it looks locally.
Comment #23
aaronbaumanThanks for the feedback.
I'll give this a go before i submit another.
Simpletest is killing me (and my machine).
I'll give it a shot.
Sorry for the WOB
Comment #24
alexpottBoth of these are fixed in the interdiff on #21. Should be $this->scanner->scan() and $this->linkManager->setLinkDomain($this->linkDomain).
@aaronbauman you can just run the default_content group. It's easiest from the command line. Something like:
You need to replace USER_RUNNING_APACHE and http://YOU_LOCAL_URL/ with whatever is right for you.
Comment #25
aaronbaumanOK, this is passing locally.
Comment #27
aaronbaumanTests pass but testrunner segfaulted.
What now?
Comment #28
antonnaviComment #29
aaronbaumanComment #30
aaronbaumanRerolled @ latest dev
Passes locally
#25 is no longer applying because of interim changes, so no interdiff.
Comment #31
alexpottThere's no default content to import.
This is a really good improvement since the event listeners definitely should not be invoked with the account we switch to.
Comment #32
larowlanLooking good, thanks
Comment #33
andypost#31 could be fixed on commit
Comment #34
berdirI've recently created the 2.0.x branch, see the project page on all the improvements in the 2.0.x branch. The 1.x branch isn't actively maintained and won't receive new features anymore.
This will need a non-trivial reroll, there haven't been too many changes in the importer, but support for yaml/json was added and some things have been renamed.