Needs work
Project:
Drupal core
Version:
main
Component:
field system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 May 2015 at 10:45 UTC
Updated:
11 Sep 2025 at 20:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
berdirNice, looks like the test fails from over there are easier to fix than I thought, I think I just forgot to explicitly unset the fieldMapByType property, as that needs to be updated.
Comment #3
berdirThis should work better ;)
Comment #4
yched commented@Berdir : forgot the patch ?
Comment #5
berdirYes, thanks.
Keep in mind that this is still work in progress, not sure how much of this we want to do, just experimenting...
Comment #7
wim leersFrom the IS:
Well, that's only half the truth. The truth is that
FieldConfigBase::postSave()was actually the one that invalidated the view display cache tags.The failures in
BlockContentCacheTagsTesthappen during the phase, which with this patch now only invalidates these cache tags:As you can see, no view display cache tags.
There are two ways to work around this:
FieldConfigBase::postSave()Comment #8
wim leersComment #9
Lucasljj commentedadded related issue
Comment #23
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #24
smustgrave commentedWanted to bump 1 more time.
Comment #25
berdirHm. The code moved around, but mostly is unchanged, so I think it's there are still some useful bits here. And the split of EntityManager resulted in some weird splits and improper separation of concerns. For example \Drupal\Core\Field\FieldDefinitionListener::onFieldDefinitionCreate clears the field map and updates the underlying key value store, and calls \Drupal\Core\Entity\EntityFieldManager::setFieldMap() which doesn't actually persist the field map, that seems pretty weird.