Automated Drupal 10 compatibility fixes

Created on 16 June 2022, over 2 years ago
Updated 25 July 2023, over 1 year 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.

  • πŸ‡ΊπŸ‡ΈUnited States astringer

    This works, can we please get it applied and a new version EOL for D9 is coming up.

  • πŸ‡ΊπŸ‡ΈUnited States hockey2112

    Any word on a release date for the D10 version?

    • Dom. β†’ committed acb9cb0a on 2.x
      Issue #3288460 by Project Update Bot: Automated Drupal 10 compatibility...
  • πŸ‡«πŸ‡·France Dom.

    Fixed in branch 2.x
    It will require a bit of time though until Masonry API is ready too. Please be patient, sorry for inconvenience.

  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States hockey2112

    Is it committed/released? I do not see the D10 version on the front page yet. Thanks!

  • πŸ‡ΊπŸ‡ΈUnited States wildcats369

    Masonry API 2.0 (D10 compatible) is released on 20th April.
    https://www.drupal.org/project/masonry/releases/2.0.0 β†’

  • πŸ‡ΊπŸ‡ΈUnited States hockey2112

    I patched the dev branch with the patch in this thread (which only changes the version requirements) and installed the latest D10-compatible version of the Masonry module. Now, when I apply Masonry as the View's "format", my view completely disappears from my front-end. Any ideas on why that would happen?

  • πŸ‡«πŸ‡·France Dom.

    @hockey2112 what do that means "my view completely disappears" ?
    Could you reproduce that on a fresh drupal instance ? Do you have any debug info, either in console or in the report section ?
    Anything that could lead me in anyway ?

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

  • First commit to issue fork.
  • Status changed to Fixed over 1 year ago
  • πŸ‡¦πŸ‡·Argentina tpzurdo

    What is the proper way to install version 2.0? I'm seeing branch in repo but no release yet. Is it possible to checkout to 2.0 using composer ... dependencies in masonry_api are not allowing me use v2.0 until masonry_views matches this version.

  • πŸ‡ΊπŸ‡ΈUnited States astringer

    @tpzurdo,

    You are probably looking for Matt Glaman's Composer Lenient:

    https://github.com/mglaman/composer-drupal-lenient

  • πŸ‡ΊπŸ‡ΈUnited States nmillin

    @Dom. any chance you can promote the 2.0 version on the project homepage? https://git.drupalcode.org/project/masonry_views shows the 2.x branch as default, but https://www.drupal.org/project/masonry_views β†’ doesn't show it.

    Thanks!

  • πŸ‡«πŸ‡·France Dom.

    I will for sure,
    Drupal Dev Days Vienna is my deadline, but hopefully I will do it sooner.
    I want to test it again first. Or someone from the community uses the D10 version via GIT and validates its ok

  • πŸ‡ΊπŸ‡ΈUnited States nmillin

    Thanks Dom. I plan to test it this week and report back here. If anyone else wants to test this, here is the git info that I added to my composer.json in the repositories section:

    "drupal/masonry_views": {
                "type": "package",
                "package": {
                    "name": "drupal/masonry_views",
                    "version": "2.x-dev",
                    "type": "drupal-module",
                    "source": {
                        "type": "git",
                        "url": "https://git.drupalcode.org/project/masonry_views.git",
                        "reference": "9cf47eae179ddca42dcb4883461cbd555cca4809"
                    }
                }
            }

    Then you can reference the 2.x version of the module. Aka "drupal/masonry_views": "^2.0",

  • πŸ‡ΊπŸ‡ΈUnited States nmillin

    @Dom. I was able to have a view working with masonry_views as the display format.

    The biggest issue I had was including "px" in the Gutter Width setting (px isn't needed). Ideally there would be a warning to prevent people doing what I did, but that is a separate issue.

    +1 from me on this. Thanks!

  • πŸ‡³πŸ‡±Netherlands zJoriz

    Thank you nmillin for mentioning that! The "px" was also wat killed my masonry view.

  • πŸ‡«πŸ‡·France Dom.

    Hi @nmillin, @zJoriz :
    Next week at DrupalDevDays Vienna, I will have time to focus on polishing the module for a release.
    Would you have the time to list the issues remaining making this difficult to use ?

    I notice you had trouble with the "Gutter Width setting". SHould I change the caption or description to be more helpfull ?
    Also, I could probably provide a "layout" dropdown option with "none" by default. Other options could be "2 columns", "3 columns", "4 columns" for instance. It would inject the minimal CSS (olivero compatible) to get the module work with that number of columns by default.
    That would also serve as a tutorial for others to implement their own custom CSS.

    Any other improvment that would be worth it before I release a 2.0 version ?

    Thanks a lot for your help and sorry for being so slow at delivering here.

  • πŸ‡¨πŸ‡¦Canada sseto

    +1 for #19. For me I had a 0 and I just removed it and now it's working.

    Thanks!

Production build 0.71.5 2024