Problem/Motivation

As discussed in slack, because the new normalizer interface requires PHP 8 and there is no simple way to include that while still remaining PHP 7 compatibility due to php linter checks on DrupalCI. See #3248874: Drupal 10 compatibility

As far as I see, the service doesn't even need to be added dynamically, the only dependency on the module is the class name check and if we make that a string then it will just skip over it if the field item class is not that.

Also copied over the test and added a composer.json with a require-dev so the test can run.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir created an issue. See original summary.

Berdir’s picture

Status: Active » Needs review
FileSize
7.38 KB
larowlan’s picture

+1 - we'll just need to work out testing issues - which are unrelated to this patch.

I've got similar issues in forum too.

Berdir’s picture

Updating this, adding the aggregator dev dependency as tests are currently failing on that.

Berdir’s picture

Berdir’s picture

Ignored composer.json, possibly because I still had the old name in there.

Berdir’s picture

Ok, progress. Fixing that. having weird errors locally but test are actually running now, so lets see.

Status: Needs review » Needs work

The last submitted patch, 7: hal-err-3266176-7.patch, failed testing. View results

Berdir’s picture

The module has an optional config entity with the same name as the one in rest module, that can't work. I'd propose to just remove it, IMHO having that enabled by default is a bad idea and it doesn't work right now unless you manually delete the rest module default config first. The page cache test is the only test actually relying on that, that's why it didn't work.

And I'd suggest to just remove EntityResourceHalTestCoverageTest, I don't think the goal is to keep enforcing complete test coverage for all core entity types?

Status: Needs review » Needs work

The last submitted patch, 9: hal-err-3266176-9.patch, failed testing. View results

larowlan’s picture

Yeh I'm happy to jettison tests we don't need anymore

Berdir’s picture

Status: Needs work » Needs review
FileSize
14.17 KB
4.45 KB

well, need depends on what the goal is. My guess is that it's no longer going to be enforced to have full test coverage for every content entity type in core, it's enough to maintain the test coverage it has.

Did remove that, so this should pass now. Let me know if you'd prefer fixing the existing tests in a separate issue. will be a little bit annoying to reroll as composer.json will be without require-dev but not a big deal.

  • larowlan committed 7bbe0f1 on 2.x authored by Berdir
    Issue #3266176 by Berdir: Add normalizer for entity_reference_revisions...
larowlan’s picture

Status: Needs review » Fixed

Cutting a 2.0.1 with this

Status: Fixed » Closed (fixed)

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