Ongoing patch to maintain compatibility with JSON:API so that JSON:API Extras will have a release ready as soon as the next JSON:API release is made.

Comments

gabesullice created an issue. See original summary.

gabesullice’s picture

gabesullice’s picture

Given @e0ipso's response in #3035045: Make EntityToJsonApi use subrequests so that it never breaks again, I'm going to assume that's the preferred approach. Therefore, this patch will not incorporate the patch attached to #2. Therefore, any patch in this issue must be applied on top of #3035045.

First, up, we need to account for #3033473: Clean-up: Remove LinkManager, luckily, we already have a patch for that. Attached.

Next, we need to account for #3035149: Use ResourceObjectData with cardinality 1 for individual responses. Easy, that's a 2-line, test only change.

Finally, I'm adding a composer change to the do-not-commit patch so that it gets tested with the latest JSON:API commit.

wim leers’s picture

wim leers’s picture

Per #3, #3035045: Make EntityToJsonApi use subrequests so that it never breaks again should land first, and hence I've rerolled #3035045 to address @e0ipso's feedback, see #3035045-8: Make EntityToJsonApi use subrequests so that it never breaks again, hopefully that'll get committed soon :)

wim leers’s picture

Status: Active » Needs review

#3035045: Make EntityToJsonApi use subrequests so that it never breaks again landed :) Re-testing #3, but I suspect it'll need a refill reroll (hahah autocorrect :D).

e0ipso’s picture

StatusFileSize
new5.29 KB

This should be down to a single fail. It's a 403 I'm not sure where it's coming from. Printing the response does not yield an explanation.

wim leers’s picture

StatusFileSize
new3.27 KB

Here's an interdiff showing the changing between #3 and #7. (#3's changes in EntityToJsonApiTest are dropped because #3035045: Make EntityToJsonApi use subrequests so that it never breaks again made them irrelevant.)

+1 to #7 👍

Status: Needs review » Needs work

The last submitted patch, 7: 3035134--compatibility-2-4.patch, failed testing. View results

wim leers’s picture

  • e0ipso committed fe9179f on 8.x-3.x authored by Wim Leers
    Issue #3035134 by gabesullice, Wim Leers, e0ipso: Compatibility with...
e0ipso’s picture

Status: Needs review » Fixed

w00t! Made some cosmetic changes to avoid PHPCS issues on commit.

Thanks!

wim leers’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.