Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As #2840538: If parent-child entities are referenced and have the same field name, then nested includes don't work and #2840337: "Invalid nested filtering" with Field Collection entities and more preceding issues show: \Drupal\jsonapi\Context\FieldResolver
is not as reliable as it should be. I suspect bugs in this area are the source of most common frustrations/"WTF moments" for JSON API users. So lets' fix that.
Comment | File | Size | Author |
---|---|---|---|
#12 | interdiff-2842145.txt | 2.78 KB | dawehner |
#12 | 2842145-12.patch | 7.19 KB | dawehner |
| |||
#9 | 2842145-9.patch | 5.85 KB | dawehner |
| |||
#9 | interdiff-2842145.txt | 4.16 KB | dawehner |
#4 | 2842145-4.patch | 4.95 KB | dawehner |
Comments
Comment #2
Wim LeersComment #3
dremy CreditAttribution: dremy commented+1 Thanks Wim
Comment #4
dawehnerThere we go.
Comment #6
Wim LeersPHPLint failure looks legit.
Also WOOHOOO PHPLINTING
Comment #7
dawehnerWell yeah, this is just a start and I got distracted.
Comment #8
e0ipsoI believe that the patch provided contains some code from another patch (the one with listings and access).
Comment #9
dawehnerHere is a bit more of a start.
Comment #10
e0ipsoWe should add a field with multiple properties so we can assert:
Comment #11
e0ipsoComment #12
dawehnerGood idea!
Comment #14
e0ipsoThis looks great now!