Drupal 11 compatibility

Created on 1 July 2024, 2 months ago
Updated 26 July 2024, about 1 month ago

Problem/Motivation

A quick upgrade status scan result:

CUSTOM PROJECTS
--------------------------------------------------------------------------------
Lightning Scheduler
Scanned on Tue, 07/02/2024 - 00:08.

1 error found. 3 warnings found.

web/modules/custom/lightning_scheduler/src/TransitionManager.php:
+---------+------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| status  | line | message                                                                                                                                                                                                                                      |
+---------+------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Fix now | 218  | Call to deprecated method loadRevision() of interface
Drupal\Core\Entity\EntityStorageInterface. Deprecated in
drupal:10.1.0 and is removed from drupal:11.0.0. Use
Drupal\Core\Entity\RevisionableStorageInterface::loadRevisio
n instead.
 |
+---------+------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
web/modules/custom/lightning_scheduler/tests/src/Functional/InlineEntityFormTest
.php:
+-----------+------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| status    | line | message                                                                                                                                                                                                                                                                                           |
+-----------+------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Fix
later | 17   | Usage of deprecated trait
Drupal\Tests\field\Traits\EntityReferenceTestTrait in class
Drupal\Tests\lightning_scheduler\Functional\InlineEntityForm
Test. Deprecated in drupal:10.2.0 and is removed from
drupal:11.0.0. Use
Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait
instead.
 |
+-----------+------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
web/modules/custom/lightning_scheduler/lightning_scheduler.info.yml:
+----------------+------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
| status         | line | message                                                                                                                                                |
+----------------+------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
| Check
manually | 3    | Value of core_version_requirement: ^8 | ^9 | ^10 is not
compatible with the next major version of Drupal core. See
https://drupal.org/node/3070687.
 |
+----------------+------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
web/modules/custom/lightning_scheduler/tests/modules/lightning_scheduler_test/li
ghtning_scheduler_test.info.yml:
+----------------+------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
| status         | line | message                                                                                                                                                |
+----------------+------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
| Check
manually | 2    | Value of core_version_requirement: ^8 | ^9 | ^10 is not
compatible with the next major version of Drupal core. See
https://drupal.org/node/3070687.
 |
+----------------+------+--------------------------------------------------------------------------------------------------------------------------------------------------------+

Also running <code>php /app/vendor/bin/phpunit -v -c phpunit.xml web/modules/contrib/lightning_scheduler

shows deprecations in tests:

Remaining self deprecation notices (19)

  7x: The "chromeOptions" array key is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use "goog:chromeOptions instead. See https://www.drupal.org/node/3422624
    1x in TimeStepTest::testTimeSteps from Drupal\Tests\lightning_scheduler\FunctionalJavascript
    1x in TransitionTest::testPublishInPast from Drupal\Tests\lightning_scheduler\FunctionalJavascript
    1x in TransitionTest::testSkipInvalidTransition from Drupal\Tests\lightning_scheduler\FunctionalJavascript
    1x in TransitionTest::testClearCompletedTransitions from Drupal\Tests\lightning_scheduler\FunctionalJavascript
    1x in TransitionTest::testPublishPendingRevision from Drupal\Tests\lightning_scheduler\FunctionalJavascript
    ...

  5x: \Drupal\Core\Render\Element\RenderElement::processGroup() is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Render\Element\RenderElementBase::processGroup() instead. See https://www.drupal.org/node/3436275
    3x in InlineEntityFormTest::testHostEntityWithModeration from Drupal\Tests\lightning_scheduler\Functional
    2x in InlineEntityFormTest::testHostEntityWithoutModeration from Drupal\Tests\lightning_scheduler\Functional

  4x: \Drupal\Core\Render\Element\RenderElement::preRenderGroup() is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Render\Element\RenderElementBase::preRenderGroup() instead. See https://www.drupal.org/node/3436275
    2x in InlineEntityFormTest::testHostEntityWithoutModeration from Drupal\Tests\lightning_scheduler\Functional
    2x in InlineEntityFormTest::testHostEntityWithModeration from Drupal\Tests\lightning_scheduler\Functional

  3x: The Drupal\Tests\field\Traits\EntityReferenceTestTrait is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Instead, use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait. See https://www.drupal.org/node/3401941
    1x in ClassLoader::loadClass from Composer\Autoload
    1x in InlineEntityFormTest::testHostEntityWithoutModeration from Drupal\Tests\lightning_scheduler\Functional
    1x in InlineEntityFormTest::testHostEntityWithModeration from Drupal\Tests\lightning_scheduler\Functional

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇸🇰Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024