- Issue created by @orkut murat yılmaz
- Status changed to Needs review
over 1 year ago 4:19pm 4 July 2023 - 🇹🇷Turkey orkut murat yılmaz Istanbul
As seen on the patch I upload,
- I've updated the info file.
- Since themodule_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 Istanbul
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
over 1 year ago 11:03am 5 July 2023 - 🇮🇳India dineshkumarbollu
Hi Orkut Murat Yılmaz
No, I will move this to RTBC
Thanks
- Status changed to Needs work
over 1 year ago 8:06pm 10 July 2023 - 🇫🇷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 Istanbul
@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
about 1 year ago 12:37pm 2 November 2023 - 🇭🇺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 dropsphayes/geophp
, as suggested in #8.
Please review.