#2992833: Add a version negotiation to revisionable resource types added the concept of resource versioning. This changed the constructor of \Drupal\jsonapi\ResourceType\ResourceType(). Which means JSON:API Extras will stop working.
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | 3025037-23.requires-2.x-dev.patch | 8.91 KB | gabesullice |
| #23 | 3025037-23.patch | 8.25 KB | gabesullice |
| #23 | interdiff.txt | 1.37 KB | gabesullice |
| #20 | 3025037-20.requires-2.x-dev.patch | 7.79 KB | gabesullice |
| #20 | 3025037-20.patch | 7.13 KB | gabesullice |
Comments
Comment #2
wim leersLet's verify JSON:API Extras fails against JSON:API HEAD.
Comment #3
wim leersUhm… that passed 😮
Comment #4
wim leersBut it's definitely wrong:
This must mean JSON:API Extras' test coverage is not actually testing what it thinks it's testing.
Comment #5
wim leersOh, wait:
That's why.
If I run the test locally, it fails:
Comment #6
wim leersThis gets us further:
Comment #7
wim leersUgh, that's just because I didn't have
e0ipso/shaperinstalled.Let's make the test fail explicitly if that library is missing, rather than failing midway through. That's far less confusing. Now it fails like this:
And after installing the library:
Comment #8
gabesulliceSlack conversation:
Which means that the next version of JSON:API Extras will just need to support 2.1 and 2.1 only :D This will make support SOO much simpler.
Comment #9
wim leersIndeed!
Then I'll update this patch accordingly, and we should then wait to commit this until after JSON:API 2.1 ships.
Comment #10
wim leersDone.
Comment #11
gabesulliceQueued tests, obviously they'll fail because of a dependency issue. I'll make a patch that updates the required version.
Comment #12
gabesulliceHere's a version that will test with 2.x-dev. No changes in the other patch, just uploading for readability.
Update: :facepalm: the other patch did include changes that I meant to make next, see following interdiff.
Comment #13
gabesulliceThis updates the codebase to use the new
CacheableNormalizationobject added by #3022584: Consolidate and simplify NormalizerValue objects: introduce CacheableNormalization. Postponing until that issue lands.Comment #14
gabesullice#3022584: Consolidate and simplify NormalizerValue objects: introduce CacheableNormalization just landed.
Comment #16
gabesulliceHm, looks like I'm not getting the composer thing right.
Comment #19
wim leersRather than depending on JSON:API Extras' tests running on DrupalCI: are the JSON:API Extras tests green when running them locally?
Comment #20
gabesulliceAin't nobody got time for that! :P
Jokes aside, we're going to need a version of the 2.x-dev patch regardless. That's because we'll need to require
^2.1instead of2.x-dev, that tag just doesn't exist yet. Also, @e0ipso wanted a more automated way to test this stuff, being able to just click the "retest" link after each commit gets us closer to that.Comment #23
gabesulliceThis should be back to green.
Comment #25
wim leersLooks great! I think this is ready for an @e0ipso review :)
Comment #26
e0ipsoComment #28
e0ipsoThis was merged. It will break HEAD unless you're also running JSON:API HEAD. This will resolve itself on Monday when we tag releases for both modules.