Drupal 10 readiness

Created on 4 July 2023, 12 months ago
Updated 2 November 2023, 8 months ago

Hello all,

Problem/Motivation

Drupal 10.1.0 is published already and I've thought that this module deserves a D10 upgrade too.

According to Acquia's D10 Deprecation Status Page Reports very basic changes needed to become D10 compatible:

https://dev.acquia.com/drupal10/deprecation_status/projects/geocluster

I'm going to try to create a patch for this.

Best,
Orkut

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇹🇷Turkey Orkut Murat Yılmaz

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

Comments & Activities

  • Issue created by @Orkut Murat Yılmaz
  • Status changed to Needs review 12 months ago
  • 🇹🇷Turkey Orkut Murat Yılmaz

    As seen on the patch I upload,

    - I've updated the info file.
    - Since the module_load_include() is deprecated → , I've commented out relevant line.

    After those things, I've checked the upgrade status report page, the local code is looks D10 Compatible.

    Now I'm changing the issue status as Needs review.

  • First commit to issue fork.
  • @dineshkumarbollu opened merge request.
  • 🇮🇳India dineshkumarbollu

    Hi
    The patch applied cleanly and doesn't show any D10 compatible issues while tested using Upgrade_status module.

    Thanks

  • 🇹🇷Turkey Orkut Murat Yılmaz

    Hello @dineshkumarbollu,

    Thank you for your comment and MR. do you have a special reason for not to change the status of the issue as RTBC?

    Best,
    Orkut

  • Status changed to RTBC 12 months ago
  • 🇮🇳India dineshkumarbollu

    Hi Orkut Murat Yılmaz

    No, I will move this to RTBC

    Thanks

  • Status changed to Needs work 12 months ago
  • 🇫🇷France vdsh

    Hi,

    Thanks for contributing, but it's not acceptable to "just comment out a line because of a deprecation". I don't understand how this has been set to RTBC... probably not tested on a real example.

    A 5s google search indicates how to handle the deprecation -> https://www.drupal.org/node/2948698 →

    Also, if one were curious, one would investigate whether we should use phayes' geophp or itamair's geophp. It seems to be similar, but geofield is using itamair's one (with reference to the phayes name in the code), and views_geojson is also using itamair (so probably makes sense to switch to itamair's to keep things clean)

    Cheers

  • 🇮🇳India dineshkumarbollu

    Hi

    While I run the D10 compatible issues in the module I didn't found any Deprecated issues and upgrade status report shows compatible for D10 that reason i moved to RTBC, Can you tell exact issue in comment#8 i will look on it.

    Thanks

  • 🇫🇷France vdsh

    The issue is from the original merge request

    - Since the module_load_include() is deprecated, I've commented out relevant line.

    And we can see in the patch (which is very small, it's actually one of the only 2 things changed):

     public function postExecute() {
    -    module_load_include('inc', 'geofield', 'vendor/phayes/geophp/geoPHP');
    +    //module_load_include('inc', 'geofield', 'vendor/phayes/geophp/geoPHP');
         $results_by_geohash = $this->preClusterByGeohash();

    If this line was here in the first place, it means that it was useful ... you can't just comment it out.

  • 🇹🇷Turkey Orkut Murat Yılmaz

    @vdsh, thank you for your beautiful explanations. Also, thanks for letting me learn 5S too.

    I'll refactor the patch, when I'm available.

    Best,
    Orkut

  • Status changed to Needs review 8 months ago
  • 🇭🇺Hungary dr. gubó

    Hiding the initial patch as it breaks module functionality and attaching new a patch that:

    • modifies core_version_requirement to include D10
    • replaces deprecated module_load_include() with \Drupal::moduleHandler()->loadInclude()
    • switches to itamair/geophp that's used by Geofield and drops phayes/geophp, as suggested in #8.

    Please review.

Production build 0.69.0 2024