Fix remaining Drupal 10 compatibility issues

Created on 27 March 2023, almost 2 years ago
Updated 13 July 2023, over 1 year ago

Problem/Motivation

There are still a few remaining Drupal 10 compatibility issues remaining, which should be resolved:

web/modules/contrib/drowl_admin/drowl_admin.libraries.yml:
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ STATUS  β”‚ LINE β”‚                          MESSAGE                          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Manuell β”‚ 0    β”‚ The 'admin_theme_overrides_gin' library is depending on a β”‚
β”‚ ΓΌberprοΏ½ β”‚      β”‚ deprecated library. The core/jquery.once asset library is β”‚
β”‚ οΏ½fen    β”‚      β”‚ deprecated in Drupal 9.3.0 and will be removed in Drupal  β”‚
β”‚         β”‚      β”‚ 10.0.0. Use the core/once library instead. See            β”‚
β”‚         β”‚      β”‚ https://www.drupal.org/node/3158256                       β”‚
β”‚         β”‚      β”‚                                                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

web/modules/contrib/drowl_admin/css/drowl_admin.layout_builder.claro.min.css:
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ STATUS  β”‚ LINE β”‚                       MESSAGE                       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Manuell β”‚ 0    β”‚ The #drupal-off-canvas selector is deprecated in    β”‚
β”‚ ΓΌberprοΏ½ β”‚      β”‚ drupal:9.5.0 and is removed from drupal:10.0.0. See β”‚
β”‚ οΏ½fen    β”‚      β”‚ https://www.drupal.org/node/3305664.                β”‚
β”‚         β”‚      β”‚                                                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

web/modules/contrib/drowl_admin/css/drowl_admin.layout_builder.gin.min.css:
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ STATUS  β”‚ LINE β”‚                       MESSAGE                       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Manuell β”‚ 0    β”‚ The #drupal-off-canvas selector is deprecated in    β”‚
β”‚ ΓΌberprοΏ½ β”‚      β”‚ drupal:9.5.0 and is removed from drupal:10.0.0. See β”‚
β”‚ οΏ½fen    β”‚      β”‚ https://www.drupal.org/node/3305664.                β”‚
β”‚         β”‚      β”‚                                                     β”‚

Steps to reproduce

Proposed resolution

Fix the remaining issues.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Grevil

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

Comments & Activities

  • Issue created by @Grevil
  • @grevil opened merge request.
  • Assigned to thomas.frobieter
  • Status changed to Needs work almost 2 years ago
  • πŸ‡©πŸ‡ͺGermany Grevil

    OK, I fixed the remaining deprecated dependency. Now only the CSS issues remain, giving this issue to you @thomas.frobieter, all "#drupal-off-canvas" occurences should target "#drupal-off-canvas-wrapper" for D10 and "#drupal-off-canvas:not(.drupal-off-canvas-reset)" for Drupal 9, see: https://www.drupal.org/node/3305664 β†’ .

    @Anybody, since the first selector is Drupal 10 specific, I suggest we drop the Drupal 10 compatibility for the current branch and create a new 3.x branch which is D10 only.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thx @Grevil! I agree, please merge this into 2.x and remove || ^10 and create a new 3.x branch with the proposed changes as separate issue afterwards. Assigned to @thomas.frobieter.

    PS: Crazy and super cool that Drupal detected this!

  • Assigned to Grevil
  • Status changed to Needs review almost 2 years ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • Status changed to Needs work almost 2 years ago
  • πŸ‡©πŸ‡ͺGermany Grevil

    The css changes need to be applied to the D9 and D10 Version, but different changes for each branch! As described in #3! I can try to solve them and let @thomasfrobieter review afterwards.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @Grevil yes please. You may create both MR's here. To make it easier for @thomas.frobieter to review.

  • πŸ‡©πŸ‡ͺGermany Grevil

    Damn I should have read through the whole change record first...

    To target all versions, simply combine the selectors

  • Assigned to thomas.frobieter
  • πŸ‡©πŸ‡ͺGermany Grevil

    And also the css files are minified, let's just fix this in one branch I am not 100% sure were the changes need to get applied, so I reassign @thomas.frobieter here.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @Grevil: FYI: Minification will be removed on all Drupal project, still an open task for @thomas.frobieter when the time has come

  • thomas.frobieter β†’ made their first commit to this issue’s fork.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.2 & MySQL 8
    last update almost 2 years ago
    Composer require failure
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.2 & MySQL 8
    last update almost 2 years ago
    Composer require failure
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.2 & MySQL 8
    last update almost 2 years ago
    Composer require failure
  • Thx @Grevil! I agree, please merge this into 2.x and remove || ^10 and create a new 3.x branch with the proposed changes as separate issue afterwards. Assigned to @thomas.frobieter.

    I disagree on this. #drupal-off-canvas is still present in D10, so there is no need to switch to the outer wrappers selector. So we should still have D9 compability, without extra release.

    Important thing for the off-canvas styles to work: Uninstall GIN Layout Builder, as it contains a buggy sidebar. We should stick with the core styles, which seems more reliable now.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.2 & MySQL 8
    last update almost 2 years ago
    Composer require failure
  • Status changed to Fixed almost 2 years ago
  • Status changed to Fixed almost 2 years ago
  • Status changed to Fixed almost 2 years ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @thomas.frobieter I'm fine with any decision, as it's your part, just want to ensure we don't do something wrong here due to this message from drupal upgrade status:

    web/themes/custom/webksdct/css/modules/backend/layout_builder.min.css:
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ STATUS  β”‚ LINE β”‚                       MESSAGE                       β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
    β”‚ Manuell β”‚ 0    β”‚ The #drupal-off-canvas selector is deprecated in    β”‚
    β”‚ ΓΌberprοΏ½ β”‚      β”‚ drupal:9.5.0 and is removed from drupal:10.0.0. See β”‚
    β”‚ οΏ½fen    β”‚      β”‚ https://www.drupal.org/node/3305664.                β”‚
    β”‚         β”‚      β”‚                                                     β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    

    which says it will be removed?!

    See https://www.drupal.org/node/3305664 β†’ where they say only the "-wrapper" one will be kept.

    If you already read all that, fine! :)

  • I've checked it in our D10 instance, its present. The way the new CSS reset of the offcanvas work is kinda forcing us to use the other id. In fact, it doesnt matter, as long as the selector specicicy is heigher then the reset - what is the case. Since we need to support D9 + D10, this is the way to go.

    Otherwise we need to drop D9 support, I don't want to maintain two versions of this.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    D9 support may be dropped until end of this year. Until then it's easy to use cherry-picks to copy changes over.
    You decide! :)

  • Status changed to Fixed almost 2 years ago
  • We have a working solution, so we should not make more work for ourselves than necessary.

  • πŸ‡©πŸ‡ͺGermany Grevil

    @Anybody please read the change record!

    https://www.drupal.org/node/3305664 β†’

    To target all versions, simply combine the selectors. Be sure to test thoroughly.

    #drupal-off-canvas:not(.drupal-off-canvas-reset),
    #drupal-off-canvas-wrapper {
    }

    Both the d9 and d10 CSS selectors are present! So no harm, leaving the d9 selector.

  • The mentioned solution from the change notice will produce 200% CSS code, I don't see any need to do that.
    We might switch the selectors when Drupal 9 is gone.

    Howewer, we should not waste more time on this completely unimportant issue ;)

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @thomas.frobieter: This introduced a critical regression, please always review carefully: πŸ› Regression: Not Drupal 10 compatible anymore Fixed

    The merge removed the Drupal 10 compatibility. Hopefully no other things were reverted / broken? Please take a look at the commit above again, if anything else is fine! I'm going to fix the D10 compatibility in the other issue now.

    No idea how that happened... but a good reason for careful reviews.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    If anything else was broken by that commit, please create a separate issue for the fix.

  • I've checked my commits, looks like there are only CSS and library.yml changes. So what exactly is the point here with the D10 compability? They check for stylesheets, really?!

  • πŸ‡©πŸ‡ͺGermany Grevil

    @thomas.frobieter, check them again:

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Re: #23 don't really get the comment. See #13 that's the code that was merged and should please be re-reviewed. It removed the Drupal 10 compatibility.

    Do not commit anything here anymore.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Heads-up, clarified my comment in #25

  • Oh, yeah sorry, missed that change. However that happened. Should have resulted in a merge conflict, didn't it?

    The other commits (stylesheet tweaks) are tested, so they should be fine.

Production build 0.71.5 2024