Drupal 10 compatibility

Created on 13 December 2022, over 1 year ago
Updated 24 September 2023, 9 months ago

Problem/Motivation

Need to have Drupal 10 for both wordpress_migrate and wordpress_migrate_ui

Remaining tasks

Need to run rector.

User interface changes

None.

API changes

Depends on rector results.

Data model changes

None

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States HongPong Philadelphia

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.
  • @jamesgrobertson opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States jamesgrobertson

    Checked the module with Rector and it only found issues in the .info.yml files. Hope this merge request helps!

  • First commit to issue fork.
  • πŸ‡¬πŸ‡§United Kingdom jefflogan

    I've updated this to include an access check on the entity queries, as I believe Drupal 10 now requires this, having been deprecated in D9.2. This came up in as flagged. I originally thought the accessCheck only applied to content, such as nodes.

  • πŸ‡¬πŸ‡§United Kingdom jefflogan

    Yes, I've tested this properly now. Drupal 10 does not require the accessCheck on these types of entities. Apologies for adding the unnecessary commits.

    However, I can confirm the original commits to remove the core key and update the core_version_requirements key is enough to get this working in Drupal 10. So it's a +1 from me.

  • Status changed to RTBC 10 months ago
  • πŸ‡ͺπŸ‡¨Ecuador jwilson3

    RTBC.

    The plain diff of the MR is correct.

    https://git.drupalcode.org/project/wordpress_migrate/-/merge_requests/8....

    Any chance we could get the work to date committed and released?

  • First commit to issue fork.
  • Status changed to Needs review 9 months ago
  • πŸ‡¨πŸ‡¦Canada circuscowboy

    I add a new commit to the merge request to update the dependencies that are in the composer.json. With out this it doesn't seem possible to update with the patch.

    I unfortunately couldn't test this directly because it seems composer searches for dependencies before applying patches. I have tried with no success to use the merge request branch as my source. I am not sure of the syntax to put in my composer.json. I have tested this by creating my own repo of this and using that package.

  • Status changed to RTBC 9 months ago
  • πŸ‡ͺπŸ‡¨Ecuador jwilson3

    I agree with the fixes. Thanks for catching that. Yes it is very difficult to test these kinds of patches on real drupal sites due to the chicken-egg scenario of requiring a module that needs to patch its composer, because the patch isnt present when composer is compiling dependencies.

    For that reason, this should get committed asap!

    • HongPong β†’ committed 31fdfafe on 8.x-3.x
      Issue #3326717 by HongPong, jefflogan, jamesgrobertson, circuscowboy,...
  • Status changed to Fixed 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States HongPong Philadelphia
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024