Problem/Motivation

As of earlier today, the build pipeline has added "composer (next major version)". This fails, because of the below points.

There doesn't seem to be an automated incoming "Drupal 11 compatibility fixes" issue incoming, so: creating one manually.

Needed / known:

  • update version nr in composer.json. (We can also drop the version from composer.json and only have it in the info.yml; I guess that depends on the minimum Drupal version we still want to support. Can we just say we support D10+ in v3, and assume we're not hurting anyone with that?
  • We have a problem supporting the current custom_elements_thunder testing which still uses video_embed_field. (See its README.) I guess we should just "break compatibility" with the v2 processor and assume noone was using it anyway / update to supporting Thunder's newer video media type?
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

roderik created an issue. See original summary.

fago’s picture

Assigned: Unassigned » useernamee

sarwan_verma made their first commit to this issue’s fork.

useernamee’s picture

MR was opened against 2.x branch instead of 3.x branch. I fixed that.

There is also a conflict with the symfony/serializer https://github.com/symfony/symfony/blob/7.1/src/Symfony/Component/Serial...

Fatal error: Declaration of Drupal\custom_elements\CustomElementNormalizer::supportsNormalization($data, $format = null): bool must be compatible with Symfony\Component\Serializer\Normalizer\NormalizerInterface::supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool in /var/www/html/web/modules/contrib/custom_elements/src/CustomElementNormalizer.php on line 27

Fixed that as well.

useernamee’s picture

Assigned: useernamee » fago
Status: Active » Needs review
fago’s picture

Assigned: fago » roderik
roderik’s picture

Status: Needs review » Needs work

I tested with 10.2 (including the changed function definitions in the normalizer, on top of the still-old interface, just in case).

It works if we revert the renderInIsolation() change, and I would prefer that for the moment. (We can live with deprecation warnings until 3.1.)

Also: please check phpcs because these are all new. (I do not recognize some of them; maybe they are just new because of D11 inclusion / an updated coder module).

useernamee’s picture

- put renderPlain back in place
- fix phpcs errors

useernamee’s picture

Status: Needs work » Needs review

roderik’s picture

Status: Needs review » Fixed

Hm, strange: gitlab is suddenly expecting the "use" statements to be sorted case sensitively instead of insensitively. (So commit 0cedb44f fixed things for the current CI tests, and 'broke' my current local version of phpcs/coder.) I find that change surprising, but will try to understand it later. If gitlab's happy, I'm happy.

I also dropped the video paragraph/media type, per the issue description, and updated the custom_elements_thunder README.md about why. (Code we don't want to support, depending on unsupported module.)

The "composer (next major version)" build now still does not work, because media_entity_twitter (a dev dependency) has no D11 release yet. But that can have a D11 release easily / can be figured out later without having to drop code.

So: merged, thank you!

roderik’s picture

Assigned: roderik » Unassigned
Issue tags: +Barcelona2024

Status: Fixed » Closed (fixed)

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