Closed (outdated)
Project:
Default Content
Version:
8.x-1.0-alpha3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Nov 2016 at 20:48 UTC
Updated:
19 Jul 2020 at 13:00 UTC
Jump to comment: Most recent
Comments
Comment #2
larowlanIt runs after the module is installed, using hook_modules_installed
Comment #3
robpowell@larowlan thanks for the quick response!
Say if I want to test this locally, I used the drush command to create three json files (for my three nodes) under custom_module/content/node. Do I have to now delete those nodes or will the module know not to add an entity that already exists?
Currently, when I enable the module, I am getting sql integrity constraint violations :
Comment #4
robpowellSo I blew away (deleted) the content that I had exported through the UI. Once I re-enabled my module the content was automatically created. Is there a bug already tracking that it currently breaks if the entity currently exists?
Comment #5
larowlanYep #2698425: Do not re-import existing entities
Comment #6
robpowellgreat I added a sentence to the documentation that I think clears it a bit, well for me anyways.
Comment #7
andypostYou also need to clean-up uid0 & uid1 in export if they appear here
Comment #8
berdirI've recently created the 2.0.x branch, see the project page on all the improvements in the 2.0.x branch. Testing that and providing feedback would be very welcome. The 1.x branch isn't actively maintained and won't receive new features anymore, so I'm closing this and other issues as won't fix.
Existing entities is covered in #2698425: Do not re-import existing entities and the uid0/1 is fixed in 2.0.x