Automated Drupal 10 compatibility fixes

Created on 15 June 2022, over 2 years ago
Updated 9 January 2024, 10 months ago

Problem/Motivation

Hello project maintainers,

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

To read more about this effort by the Drupal Association, please read: The project update bot is being refreshed to support Drupal 10 readiness of contributed projects

Patches will periodically be added to this issue that remove Drupal 10 deprecated API uses. To stop further patches 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 "ProjectUpdateBotD10" tag from the issue to stop the bot from posting updates.

The patches 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 patches 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 "ProjectUpdateBotD10" tag is left on this issue, new patches 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 patches 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 patches. The bot will still post new patches then if there is a change in the new generated patch compared to the patch that the bot posted last. Those changes are then up to humans to integrate.

  2. Leave open but stop new automated patches.

    If you want to use this issue as a starting point to remove deprecated API uses but then don't want new automated patches, remove the "ProjectUpdateBotD10" tag from the issue and use it like any other issue (the status does not matter then). If you want to receive automated patches again, add back the "ProjectUpdateBotD10" 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 patches will be posted here.

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

    If you are using another issue(s) to work on Drupal 10 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.

Providing feedback

If there are problems with one of the patches 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

Fixed

Version

1.0

Component

Code

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • 🇬🇧United Kingdom rjjakes

    Can we move forward with a D10 release now it's RTBC?

  • @m4olivei opened merge request.
  • 🇨🇦Canada m4olivei Grimsby, ON

    Chiming in that this looks good. Just the core_version_requirement change was made here. I've tested both against Drupal 9.5.4 and 10.0.4.

    I opened a merge request to make it easier to close this out hopefully.

    The other relevant news is that admin_toolbar now has a tagged release with Drupal 10 compatibility, so can very easily and naturally follow at any time.

  • 🇮🇳India prashant.c Dharamshala

    I have verified the D10 compatibility changes and they are working correctly. We can proceed with the release.

  • 🇨🇦Canada metasim

    I tested the patch on D10 and it works as expected,
    upgrade status scan clear as well

    • DYdave committed ca638826 on 8.x-1.x
      Issue #3285987: Automated Drupal 10 compatibility fixes
      
  • Status changed to Fixed over 1 year ago
  • 🇫🇷France dydave

    Thanks a lot Ted for approving the merge request.

    All the changes in this ticket have now been successfully committed to the 8.x-1.x dev branch.

    The module's dev head is now compatible with D10, thus marking this issue as Fixed for now.

    Feel free to let us know if you encounter any issues while testing or have any questions or concerns on any of the changes in this ticket or the module in general, we would surely be glad to help.
    Thanks in advance!

  • 🇨🇦Canada m4olivei Grimsby, ON

    Thanks @DYdave!

    Any plans for a new release for the D10 compatibilty?

  • 🇩🇰Denmark nicklasmf

    Do we have an update on this?

  • 🇺🇸United States drupgirl

    Great, ty for getting the dev version d10 ready. What is the timeline (or blockers) for merging this to production?

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

  • Status changed to Fixed over 1 year ago
  • heddn Nicaragua

    Please create a Drupal 10 compatible tag of the project so the project page will say it supports Drupal 10. :pray:

  • 🇺🇸United States JackG102 Falls Church, VA

    Agreed with Heddn and others, looking for a Drupal 10 compatible tag as it seems it's been tested! Thank you :)

  • 🇧🇪Belgium jelle_s Antwerp, Belgium

    The adminimal theme has a D10 compatible release since 08/08/'23, time for a stable release of the toolbar I'd say ;)

  • 🇷🇴Romania ioana apetri

    When do you plan to release a new version for D10 compatibility?
    For now I am using the dev version. Thank you!

  • 🇧🇷Brazil bruno_lima

    Hi guys,

    We recently got a new release for the Adminimal theme project, making it compatible with D10.

    It would be awesome to see a release for this module as well, since they are obviously used together.

    Talking from a client perspective, as we are recently dealing with many D10 upgrades, it's good to be able to maintain the same UI/UX of the toolbar when navigation through the admin section and also on content pages of the site, which is not possible if this module is not installed. And this is the case now for many sites upgrading to D10.

    This is a very simple fix, so let's get this into a release!

    Cheers.

  • A new release would be awesome. This kinda blocks me from updating easily to D10.

  • 🇺🇸United States amanire

    Another reminder to please create a Drupal 10 compatible release. I am on the verge of removing this module from a dozen sites, which I'd prefer not to do.

  • 🇺🇸United States scott_earnest

    if you prefer not to use the dev version, you can specify this issue's fork as the repository and pull in the patched module that way

    composer.json

    add to the "repositories" section:

      "repositories": {
            "adminimal-admin-toolbar": {
                "type": "package",
                "package": {
                    "name": "drupal/adminimal_admin_toolbar",
                    "type": "drupal-module",
                    "version": "dev-3285987-automated-drupal-10",
                    "source": {
                        "type": "git",
                        "url": "https://git.drupalcode.org/issue/adminimal_admin_toolbar-3285987.git",
                        "reference": "3285987-automated-drupal-10"
                    }
                }
            },
        }
    

    ... then update in the "require" section:

            "drupal/adminimal_admin_toolbar": "dev-3285987-automated-drupal-10",
    
  • 🇨🇿Czech Republic David Urban

    Hi guys, I understand there is a dev version, but it is not a great practice to use dev version on production. Would it be possible to please release D10 compatible version so we can take advantage of composer automation? If there is anything low-code drupalist can do, please let me know! From the comments here it seems, nothing is standing in the way :).

  • 🇺🇦Ukraine SerShevchyk Lutsk

    Same in #32

    composer.json:

    "repositories": [
            {
                "type": "git",
                "url": "https://git.drupalcode.org/issue/adminimal_admin_toolbar-3285987.git"
            },
    ]
    

    then update in the "require" section:

    "drupal/adminimal_admin_toolbar": "dev-3285987-automated-drupal-10"

  • 🇦🇺Australia markgp

    You can also install patches using cweagans/composer-patches

    e.g.

            "patches": {
                "drupal/adminimal_admin_toolbar": {
                    "Automated Drupal 10 compatibility fixes - https://www.drupal.org/project/adminimal_admin_toolbar/issues/3285987": "https://www.drupal.org/files/issues/2022-06-15/adminimal_admin_toolbar.1.x-dev.rector.patch"
                }
            },
    
  • 🇺🇸United States FrankieD3

    I wholly agree with all requests for a D10 release. This is update blocking for many of us.

  • 🇫🇷France flocondetoile Lyon

    Hello @energee

    Thanks for your module. It's really useful. I wonder if you need help for tagging a new release (because a lack of time I suppose) ? If it's the case I can happily do it for you (I just need the right access to the repository).

  • 🇫🇷France Renrhaf 📍 Strasbourg 🐦🦜

    Hi ! +1 for tagged release, thanks !

  • 🇫🇷France arnaud-brugnon

    If you need to upgrade to Drupal 10, don't repositories but patches and lenient

    Here's the official doc

    https://www.drupal.org/docs/develop/using-composer/using-drupals-lenient...

Production build 0.71.5 2024