Closed (fixed)
Project:
JSON:API
Version:
8.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Oct 2018 at 10:43 UTC
Updated:
6 Nov 2018 at 17:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersComment #3
wim leersComment #4
wim leersI just realized that we're only doing this for
FieldItemNormalizer, i.e. for properties on fields that are not entity references. In case of entity references, properties are normalized directly in\Drupal\jsonapi\Normalizer\EntityReferenceFieldNormalizer::normalize().This went unnoticed so far because no
EntityReferenceItemsubclasses exist in Drupal core that have properties with cacheability.Comment #6
wim leersComment #7
gabesulliceIn confused. I thought you went through a lot of effort to get rid of this altogether, using normalizer value objects to carry cacheability. What am I missing?
Comment #8
wim leersThat is still the case. But it's only the case for
@EntityType-level and@FieldType-level data. It's not the case for@DataType-level ("field property level") data.Comment #9
gabesulliceAh, makes sense. Looks good.
Comment #11
gabesulliceBoom.