Automated Drupal 11 compatibility fixes for lightning_api

Created on 18 March 2024, 9 months ago
Updated 31 August 2024, 4 months ago

Problem/Motivation

Hello project maintainers,

This is an automated issue to help make this module compatible with Drupal 11.

Changes will periodically be added to this issue that remove deprecated API uses. To stop further changes from being posted, change the status to anything other than Active, Needs review, Needs work or Reviewed and tested by the community. Alternatively, you can remove the "ProjectUpdateBotD11" tag from the issue to stop the bot from posting updates.

The changes will be posted by the Project Update Bot โ†’ official user account. This account will not receive any issue credit contributions for itself or any company.

Proposed resolution

You have a few options for how to use this issue:

  1. Accept automated changes until this issue is closed

    If this issue is left open (status of Active, Needs review, Needs work or Reviewed and tested by the community) and the "ProjectUpdateBotD11" tag is left on this issue, new changes will be posted periodically if new deprecation fixes are needed.

    As the Drupal Rector project improves and is able to fix more deprecated API uses, the changes posted here will cover more of the deprecated API uses in the module.

    Patches and/or merge requests posted by others are ignored by the bot, and general human interactions in the issue do not stop the bot from posting updates, so feel free to use this issue to refine bot changes. The bot will still post new changes then if there is a change in the new generated patch compared to the changes that the bot posted last. Those changes are then up to humans to integrate.

  2. Leave open but stop new automated changes.

    If you want to use this issue as a starting point to remove deprecated API uses but then don't want new automated changes, remove the "ProjectUpdateBotD11" tag from the issue and use it like any other issue (the status does not matter then). If you want to receive automated changes again, add back the "ProjectUpdateBotD11" tag.

  3. Close it and don't use it

    If the maintainers of this project don't find this issue useful, they can close this issue (any status besides Active, Needs review, Needs work and Reviewed and tested by the community) and no more automated changes will be posted here.

    If the issue is reopened, then new automated changes will be posted.

    If you are using another issue(s) to work on Drupal 11 compatibility it would be very useful to other contributors to add those issues as "Related issues" when closing this issue.

Remaining tasks

Using the patches

  1. Apply the latest patch in the comments by Project Update Bot โ†’ or human contributors that made it better.
  2. Thoroughly test the patch. These patches are automatically generated so they haven't been tested manually or automatically.
  3. Provide feedback about how the testing went. If you can improve the patch, post an updated patch here.

Using the merge request

  1. Review the merge request and test it.
  2. Thoroughly test the changes. These changes are automatically generated so they haven't been tested manually or automatically.
  3. Provide feedback about how the testing went. If you can improve the merge request, create a new branch and merge request and work from there.

Warning: The 'project-update-bot-only' branch will always be overwritten. Do not work in that branch!

Providing feedback

If there are problems with one of the changes posted by the Project Update Bot โ†’ , such as it does not correctly replace a deprecation, you can file an issue in the Drupal Rector issue queue โ†’ . For other issues with the bot, for instance if the issue summary created by the bot is unclear, use the Project analysis issue queue โ†’ .

๐Ÿ“Œ Task
Status

RTBC

Version

5.0

Component

Code

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

Merge Requests

Comments & Activities

  • Issue created by @project update bot
  • This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request is also openend and updated.

    It is important that any automated tests available are run and that you manually test the changes.

    Drupal 11 Compatibility

    According to the Upgrade Status module โ†’ , even with these changes, this module is not yet compatible with Drupal 11.

    Currently Drupal Rector, version 0.20.1, cannot fix all Drupal 11 compatibility problems.

    Therefore these changes did not update the info.yml file for Drupal 11 compatibility.

    Leaving this issue open, even after committing the current patch, will allow the Project Update Bot โ†’ to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.

    Debug info

    Bot run #11-121090

    This patch was created using these packages:

    1. drupal/upgrade_status: 4.1.0
    2. mglaman/phpstan-drupal: 1.2.7
    3. palantirnet/drupal-rector: 0.20.1
  • Pipeline finished with Failed
    9 months ago
    Total: 32s
    #122806
  • Pipeline finished with Failed
    9 months ago
    #122807
  • Pipeline finished with Failed
    9 months ago
    Total: 31s
    #122808
  • First commit to issue fork.
  • Pipeline finished with Failed
    4 months ago
    Total: 31s
    #259168
  • Pipeline finished with Failed
    4 months ago
    Total: 78s
    #259179
  • Pipeline finished with Failed
    4 months ago
    Total: 117s
    #259186
  • Pipeline finished with Failed
    4 months ago
    Total: 31s
    #259188
  • Pipeline finished with Failed
    4 months ago
    Total: 192s
    #259189
  • Pipeline finished with Failed
    4 months ago
    Total: 31s
    #260114
  • Pipeline finished with Failed
    4 months ago
    Total: 31s
    #260115
  • Pipeline finished with Failed
    4 months ago
    Total: 31s
    #260117
  • Pipeline finished with Failed
    4 months ago
    Total: 31s
    #260116
  • Pipeline finished with Failed
    4 months ago
    Total: 77s
    #260129
  • Pipeline finished with Failed
    4 months ago
    #260130
  • Pipeline finished with Failed
    4 months ago
    #260131
  • Pipeline finished with Failed
    4 months ago
    Total: 78s
    #260133
  • Pipeline finished with Failed
    4 months ago
    Total: 130s
    #260145
  • Pipeline finished with Failed
    4 months ago
    Total: 314s
    #260232
  • Pipeline finished with Failed
    4 months ago
    Total: 238s
    #260236
  • Pipeline finished with Failed
    4 months ago
    Total: 185s
    #260248
  • Pipeline finished with Failed
    4 months ago
    Total: 185s
    #260272
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chandu7929 Pune

    chandu7929 โ†’ changed the visibility of the branch project-update-bot-only to hidden.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia rajeshreeputra Pune

    rajeshreeputra โ†’ changed the visibility of the branch project-update-bot-only to hidden.

  • Pipeline finished with Canceled
    4 months ago
    Total: 99s
    #261134
  • Pipeline finished with Failed
    4 months ago
    Total: 236s
    #261135
  • Pipeline finished with Failed
    4 months ago
    Total: 174s
    #261145
  • Pipeline finished with Failed
    4 months ago
    Total: 159s
    #261151
  • Pipeline finished with Failed
    4 months ago
    Total: 159s
    #261153
  • Pipeline finished with Failed
    4 months ago
    Total: 176s
    #261157
  • Pipeline finished with Failed
    4 months ago
    Total: 786s
    #261283
  • Pipeline finished with Failed
    4 months ago
    Total: 156s
    #261328
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vishalkhode

    vishalkhode โ†’ made their first commit to this issueโ€™s fork.

  • Pipeline finished with Failed
    4 months ago
    Total: 159s
    #261350
  • Pipeline finished with Failed
    4 months ago
    Total: 188s
    #261390
  • Pipeline finished with Failed
    4 months ago
    Total: 191s
    #262308
  • Pipeline finished with Failed
    4 months ago
    Total: 180s
    #262415
  • Pipeline finished with Failed
    4 months ago
    #262427
  • Pipeline finished with Failed
    4 months ago
    Total: 166s
    #262428
  • Pipeline finished with Failed
    4 months ago
    Total: 167s
    #262437
  • Pipeline finished with Failed
    4 months ago
    Total: 212s
    #262443
  • Pipeline finished with Canceled
    4 months ago
    Total: 365s
    #262474
  • Pipeline finished with Failed
    4 months ago
    Total: 848s
    #262486
  • Pipeline finished with Failed
    4 months ago
    Total: 189s
    #262520
  • Pipeline finished with Failed
    4 months ago
    Total: 162s
    #262529
  • Pipeline finished with Failed
    4 months ago
    Total: 505s
    #262539
  • Pipeline finished with Failed
    4 months ago
    Total: 167s
    #262562
  • Pipeline finished with Failed
    4 months ago
    Total: 166s
    #262566
  • Pipeline finished with Failed
    4 months ago
    Total: 163s
    #262593
  • Pipeline finished with Failed
    4 months ago
    Total: 170s
    #262595
  • Pipeline finished with Failed
    4 months ago
    Total: 162s
    #262602
  • Pipeline finished with Failed
    4 months ago
    Total: 163s
    #262603
  • Pipeline finished with Failed
    4 months ago
    Total: 170s
    #262631
  • Pipeline finished with Failed
    4 months ago
    Total: 170s
    #262640
  • Pipeline finished with Failed
    4 months ago
    Total: 253s
    #262653
  • Pipeline finished with Failed
    4 months ago
    Total: 218s
    #262685
  • Pipeline finished with Canceled
    4 months ago
    Total: 76s
    #262690
  • Pipeline finished with Failed
    4 months ago
    Total: 545s
    #262692
  • Pipeline finished with Failed
    4 months ago
    Total: 152s
    #262744
  • Pipeline finished with Failed
    4 months ago
    Total: 168s
    #262747
  • Pipeline finished with Failed
    4 months ago
    Total: 154s
    #262761
  • Pipeline finished with Failed
    4 months ago
    #262812
  • Pipeline finished with Failed
    4 months ago
    Total: 471s
    #262819
  • Pipeline finished with Failed
    4 months ago
    Total: 158s
    #264511
  • Pipeline finished with Failed
    4 months ago
    Total: 223s
    #268390
  • Pipeline finished with Failed
    4 months ago
    Total: 187s
    #268413
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chandu7929 Pune

    Only previous major is failing with following errorException: Error: Class "League\Uri\UriString" not found and I think its due to the version of league/oauth2-server (8.5.4)that requires league/uri: ^6.7 || ^7.0

  • Pipeline finished with Failed
    4 months ago
    Total: 192s
    #268883
  • Pipeline finished with Failed
    4 months ago
    Total: 820s
    #268894
  • Pipeline finished with Failed
    4 months ago
    Total: 193s
    #268935
  • Pipeline finished with Failed
    4 months ago
    #268938
  • First commit to issue fork.
  • Pipeline finished with Failed
    4 months ago
    Total: 540s
    #268950
  • Pipeline finished with Failed
    4 months ago
    Total: 184s
    #268961
  • Pipeline finished with Failed
    4 months ago
    Total: 199s
    #268969
  • Pipeline finished with Failed
    4 months ago
    Total: 226s
    #268974
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chandu7929 Pune

    Due to dependency conflict between core-recommended 9.5 and league/uri-interfaces 7.0.0 composer is not able to download any 7.x version of league/uri-interfaces. In beta version the class League\Uri\UriString doesn't exists which causes test failure, hence dropping support for D9.

  • Pipeline finished with Success
    4 months ago
    Total: 202s
    #269012
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chandu7929 Pune

    CI is green now, hence requesting review.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chandu7929 Pune

    Hello Yuvania โ†’ lets make changes related to D11 compatibility fixes only. We should create separate issue for phpcs, eslint etc.

  • Status changed to Needs work 4 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ankitv18

    Left a comment for minor changes

  • Pipeline finished with Success
    4 months ago
    Total: 218s
    #269241
  • Status changed to Needs review 4 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chandu7929 Pune

    Requested changes are done, hence NR.

  • Status changed to RTBC 4 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ankitv18

    Pipelines are passing with no deprecation needed to address for D11 ~~ hence marking this one as RTBC

  • ๐Ÿ‡จ๐Ÿ‡ทCosta Rica yuvania

    Okay and also check it, it works fine

Production build 0.71.5 2024