Discovered by @e0ipso in #3014277-78: ResourceTypes should know about their fields. Drupal\jsonapi\ResourceType\ResourceType::updateDeprecatedFieldMapping() (which is the backwards compatibility layer) needs this fix:
- $is_fieldable = $entity_type_manager->getDefinition($entity_type_manager)->entityClassImplements(FieldableEntityInterface::class);
+ $is_fieldable = $entity_type_manager->getDefinition($entity_type_id)->entityClassImplements(FieldableEntityInterface::class);
@e0ipso already provided a patch, we just need tests.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3085885-9.patch | 2.69 KB | gabesullice |
| #9 | 3085885-9-tests-only.patch | 1.75 KB | gabesullice |
| #9 | interdiff-4-9.txt | 1.39 KB | gabesullice |
| #4 | 3085885-3.patch | 2.72 KB | gabesullice |
| #4 | 3085885-3-tests-only.patch | 1.78 KB | gabesullice |
Comments
Comment #3
gabesulliceReuploading @e0ipso's patch with tests and adding a test only patch too.
Comment #4
gabesulliceComment #5
jibranLet's fix #3014277-77: ResourceTypes should know about their fields here as well.
Comment #6
wim leersTest-only patch:
Full patch:
So: 🚢
Comment #7
gabesullice#5: @jibran, I don't think so. From #3014277-84: ResourceTypes should know about their fields
Comment #9
gabesulliceGets me every time.
Comment #11
larowlanglad I'm not the only one
Comment #12
larowlanCommitted 6625869 and pushed to 8.8.x. Thanks!