Let's make this module Drupal 10 compatible!

This will primarily involve minor changes to deprecated code, and switching away from using "Classy" in the automated tests, since that has been removed in Drupal 10.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mark_fullmer created an issue. See original summary.

saphemmy’s picture

Assigned: Unassigned » saphemmy
saphemmy’s picture

Assigned: saphemmy » Unassigned
Status: Active » Needs review

I tried working on this but found this issue scope has been fixed in #3261244: Remove deprecated layout_builder module functions. Would someone be nice to review, validate and I also propose a closure to this issue

mark_fullmer’s picture

Status: Needs review » Active

The issue referenced, #3261244: Remove deprecated layout_builder module functions is a Drupal core issue that actually removes the deprecated functions from the 10.x branch. This issue regards replacing deprecated functions in Layout Builder Restrictions with equivalents in Drupal 10.

I therefore don't believe this issue is resolved. Marking as "Active."

mark_fullmer’s picture

Issue summary: View changes

mark_fullmer’s picture

Status: Active » Needs review
eiriksm’s picture

Status: Needs review » Needs work

I think we should remove support for versions less than 9.3.0 at the same time if we are doing this.

Which we can probably best do in a new branch?

mark_fullmer’s picture

Status: Needs work » Needs review
eiriksm’s picture

Nice. Queued up a test of d10 that would be awesome if passed as well 🚀

mark_fullmer’s picture

Status: Needs review » Postponed
Related issues: +#3288245: Drupal 10 compatibility

It looks like the merge request as it is will not run tests against D10 because it has Composer require-dev dependencies of other Drupal modules (layout_library, dashboards, mini_layouts) that aren't Drupal 10 compatible themselves.

I removed the tests and test dependencies related to those modules and ran the rest of the test suite locally with D10, and everything passed. Woohoo!

I think the best thing to do would be to let this issue hang out for a bit while we work on getting layout_library, dashboards, and mini_layouts D10 compatible (I should have some capacity to do this in the coming weeks). Once those are compatible, in theory all of the Layout Builder Restrictions tests should pass and we can merge this.

How does that sound? (Marking this as "Postponed" presumptively.)

eiriksm’s picture

Great plan. Great work! 💪🤩

mark_fullmer’s picture

Okay, I've submitted code for D10 compatibility for both layout_library and mini_layouts, and set to "Needs Review"

- https://www.drupal.org/project/layout_library/issues/3288245
- https://www.drupal.org/project/mini_layouts/issues/3296076

Once those are merged, we can return to this.

kristen pol’s picture

Thanks for working on this issue!

Adding related issue, tagging, and showing dependencies so we can see status here:

#3288245: Drupal 10 compatibility
#3296076: Drupal 10 compatibility

kristen pol’s picture

The layout_library patch has been committed but we are still waiting on testing/merging for mini_layouts.

mark_fullmer’s picture

Thanks for keeping tabs on this!

mark_fullmer’s picture

Status: Postponed » Active

Following phenaproxima's suggestion to skip test coverage on mini_layouts for the time being (https://www.drupal.org/project/mini_layouts/issues/3296076#comment-14778975), I'm un-postponing(!) this and will update the MR with the relevant changes so we can get a D10-compatible release out the door! (Unless anyone objects...)

phenaproxima’s picture

Drupal 10 compatibility has landed in mini_layouts, but in a new major branch (2.0.x).

So, my suggestion on how to proceed here: make the integration tests optional, and also adjust the require-dev constraints to use the new branch of mini_layouts. Everybody wins!

mark_fullmer’s picture

Issue summary: View changes
mark_fullmer’s picture

Status: Active » Needs review

Tests pass on D9 and D10, including integration tests for Dashboards, Mini Layouts, and Layout Library! I think we're good here.

phenaproxima’s picture

Status: Needs review » Reviewed & tested by the community

One question, but no objections from me.

  • mark_fullmer committed 7d20d73 on 8.x-2.x
    Issue #3257889 by mark_fullmer, saphemmy: Drupal 10 compatibility
    
mark_fullmer’s picture

Status: Reviewed & tested by the community » Fixed
kristen pol’s picture

Thanks!

Status: Fixed » Closed (fixed)

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