Problem/Motivation
In #3292287: Extend recipe runner to create content provided in the recipe's /content folder, we're adding a way to import content provided by a recipe. This is based on parts of the contributed Default Content module.
In review, @alexpott pointed out that, when importing file entities, the associated file is copied into the site's files directory. If there are duplicates, you end up with many copies of the same file. That sorta sucks.
Proposed resolution
Detect if we already have a particular file in the files directory, and don't import it if we do.
Issue fork distributions_recipes-3437068
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Wim LeersThis is IMHO a huge understatement.
This has the potential to make the media library/entity browser/site's content repository borderline unusable … (imagine the same thing is imported 100 times!).
I'm tempted to mark this a bug.
Comment #3
phenaproximaBlocker is in, so this needs work.
Comment #5
phenaproximaComment #7
alexpottThis looks great.
Comment #8
alexpottCommitted and pushed 67ac9bc2f75 to 11.x and ec8a42f8b29 to 10.3.x. Thanks!