2024-09-27 (8 commits)

2024-09-29

Overview

DrupalCon code sprint day, quite more active than usual!

Several developer experience improvements, including link access generation improvement on StringFormatter, a better exception message on config action manager, and re-enabling fields on ResourceTypeBuildEvent.

Also a vendor upgrade to improve PHP 8.4 compatibility, a CI cache improvement,

Changes

It covers commits from 2024-09-27 on 11.x branch.

#3470641: gitlab artifact caching doesn’t work due to differences with project ID and build directories

#3470641 - 0624b81e2e391c08bff3306c29f702bd4428a26d

Fixes artifact download caching on CI.

A variable provided by gitlab was different depending on the author of the git push, which ends up in the process skipping cache. That is now fixed!

#3477361: Update phpunit/phpunit to 10.5.35 for PHP 8.4

#3477361 - 23174b703a3ef6261082c62948f041b4a7811427

PHPUnit was upgraded to 10.5.35 to get compatibility with PHP 8.4.

#3458565: TablesInterface::addField() doesn’t document that $field can contain relationships

#3458565 - 9d09dbc0f4f7477963d24d62c1c92e8f75c341d6

Improves documentation block on Drupal\Core\Entity\Query\Sql::TablesInterface::addField().

#3336994 - 4c8c814c1044cb560a069665637b3c1fd8631dc6

Improved access restriction support for rendering entity links with Drupal\Core\Field\Plugin\Field\FieldFormatter\StringFormatter.

Now links will only be shown if the current user has access to the linked entity, instead of showing it regardless.

#3302833: Improve PluginNotFound exception to include possible shorthand action IDs

#3302833 - 43e738a669266da0914c2c6b7bf806d69562ce00

Generates a better exception message on config action manager when the plugin is invalid.

#3110831: Method to enable a resource type field disabled by a previous ResourceTypeBuildEvent subscriber

#3110831 - a1c6ae78c323b308b48e4ad8c1662653ea7a8c73

Expands jsonapi module to allow re-enabling a disabled resource type field via the new ResourceTypeBuildEvent::enableField() method.

#3458426: Add int return typehints to protected test helper methods and revert

#3458426 - 2a549f16452eadd9515a685383b36b781315fc73 and d433d966c1e0711e89a958809e7375a37bd4fabf

Adds return type hints to protected test helper methods. Then reverted, since some test errors were found after inclusion.

Annex

Meta

The set

$ git log --oneline --reverse --since=2024-09-26T23:59:59+00:00 --until=2024-09-28T00:00:00+00:00
d433d966c1 Issue #3458426 by mstrelan, catch, smustgrave: Add int return typehints to protected test helper methods
2a549f1645 Revert "Issue #3458426 by mstrelan, catch, smustgrave: Add int return typehints to protected test helper methods"
a1c6ae78c3 Issue #3110831 by bbrala, z3cka, smustgrave, mglaman, wim leers, alexpott, matthand: Method to enable a resource type field disabled by a previous ResourceTypeBuildEvent subscriber
43e738a669 Issue #3302833 by akhil babu, b_sharpe, alexpott, oily, smustgrave: Improve PluginNotFound exception to include possible shorthand action IDs
4c8c814c10 Issue #3336994 by mxr576, kksandr, dpi, smustgrave, xjm, alexpott, hchonov, quietone: StringFormatter always displays links to entity even if the user in context does not have access
9d09dbc0f4 Issue #3458565 by nishtha.pradhan, sadamafridi, joachim, smustgrave, vinmayiswamy, rodrigoaguilera, dksdev01, bibliophileaxe, devjuarez: TablesInterface::addField() doesn't document that $field can contain relationships
23174b703a Issue #3477361: Update phpunit/phpunit to 10.5.35 for PHP 8.4
0624b81e2e Issue #3470641 by bbrala, catch, mstrelan, cmlara, nicoloye: gitlab artifact caching doesn't work due to differences with project ID and build directories

$ git diff --shortstat d433d966c1~1..0624b81e2e
 23 files changed, 347 insertions(+), 37 deletions(-)