Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
configuration entity system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2012 at 23:32 UTC
Updated:
29 Jul 2014 at 21:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sunThis should definitely happen before release, so bumping to major.
Comment #2
swentel commentedComing from #1950326: Entity displays are not renamed/deleted when a bundle is renamed/deleted. - I had to manually call the configFactory::rename() method so the internal cache was cleaned up.
Also, when renaming a config entity, the manifest files are not updated.
Comment #3
alexpottI agree with what @reyero says in http://drupal.org/node/1187726#comment-6813858 point 3
The patch attached moves the rename operation completely to the factory and cleans up it's use in Drupal\Core\Config\Entity\ConfigStorageController. Tests are added for the rename operation in ConfigCRUDTest and ConfigEntityTest
Comment #4
alexpott@chx and @xjm pointed out that
Should be
// Entity IDs...As this was a copy&paste job I've fixed it in the original location too...
@chx also queried the empty
protected function postSave(EntityInterface $entity, $update) {}... this just the same aspreSave(),preDelete()andpostDelete()... plus is basest class directly implementing the EntityStorageControllerInterface for Config Entities.Comment #5
chx commentedI ran out of things to complain about.
Comment #7
alexpottImage styles played up :(... that'll be our nice losely (sic) coupled drupal! @chx :D
Basically it was relying on a full delete being called on the old image style name which would then call
image_image_style_delete()... to fix this I've moved all this functionality to an implementation ofpostDelete()on theImageStyleStorageControllerand implemented rename detection in thepostSave(). This has the nice side effect of removing code from image.module - and actually image_image_style_update() should move to theImageStyleStorageControlleras well - but that is for another patch :)Comment #8
alexpottA comment from @chx on irc made me realise that we can get away with much less change on
ImageStyleStorageControllerand leave the refactor of the image_* entity hooks to #1821848: Move image style load/update/delete operations into a new ImageStyleStorageController.Comment #10
alexpott#8: 1865206.config-rename-cleanup.8.patch queued for re-testing.
Comment #11
alexpottThe fail of #8 was
Drupal\system\Tests\File\StreamWrapperTest... locally passed... and completely unrelated...Comment #12
chx commentedThat does look good.
Comment #13
xjm#8: 1865206.config-rename-cleanup.8.patch queued for re-testing.
Comment #14
xjmAAAAHHHHHHH
http://theoatmeal.com/comics/apostrophe
Comment #15
alexpottBoo to me... love the cartoon :)
Comment #16
dries commentedCommitted to 8.x. Thanks.