- Posts: 375
Question
Migrating custom modules beyond webtrees 2.2.6: GuzzleHttp replaced
- Jefferson49
-
Topic Author
- Offline
- Senior Member
-
Less
More
1 week 1 day ago - 1 week 1 day ago #116962
by Jefferson49
Migrating custom modules beyond webtrees 2.2.6: GuzzleHttp replaced was created by Jefferson49
In the next webtrees version (2.2.7 or 2.3), GuzzleHttp will be replaced by symfony/http-client, see commit
49cbec6
From my test environment with the latest webtrees code, I can see that many custom modules will need to be adjusted:
The code in the updated ModuleCustomTrait.php , shows a blueprint how a HTTP client, request, and response can be used in the upcoming webtrees releases.
It is also possible to keep custom modules compatible to GuzzleHttp until webtrees 2.2.6 and use the new code beyond 2.2.6. I have already tested this in the code of my own custom modules, which can be found here .
From my test environment with the latest webtrees code, I can see that many custom modules will need to be adjusted:
- German Chancellors Presidents
- Wars and Battles Worldwide
- Gramps Historical Facts
- Sosa-Stradonitz
- Topola
- Watermark module
- Descendants chart
- Fan chart
- Pedigree chart
- FaviconUpdater
- Statistics
- ...
- All my own Jefferson49 modules
The code in the updated ModuleCustomTrait.php , shows a blueprint how a HTTP client, request, and response can be used in the upcoming webtrees releases.
It is also possible to keep custom modules compatible to GuzzleHttp until webtrees 2.2.6 and use the new code beyond 2.2.6. I have already tested this in the code of my own custom modules, which can be found here .
Last edit: 1 week 1 day ago by Jefferson49.
Please Log in or Create an account to join the conversation.
- bertkoor
-
- Offline
- Platinum Member
-
- Greetings from Utrecht, Holland
1 week 1 day ago - 1 week 1 day ago #116963
by bertkoor
stamboom.BertKoor.nl runs on webtrees v2.2.6
Replied by bertkoor on topic Migrating custom modules beyond webtrees 2.2.6: GuzzleHttp replaced
The kind thing to do, is open an isssue (or make a PR) at the github repos of the affected modules. It's better fixed now, before the next release of webtrees.
I have seen modules fetching latest versions themselves. Must all be based in an old bad example.
If you "use ModuleCustomTrait" then it suffices to supply a url for your latest version, and webtrees core will take care of the rest.
See github.com/BertKoor/wt-module-custom-vie...mViewsModule.php#L81
I have seen modules fetching latest versions themselves. Must all be based in an old bad example.
If you "use ModuleCustomTrait" then it suffices to supply a url for your latest version, and webtrees core will take care of the rest.
See github.com/BertKoor/wt-module-custom-vie...mViewsModule.php#L81
stamboom.BertKoor.nl runs on webtrees v2.2.6
Last edit: 1 week 1 day ago by bertkoor.
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Offline
- Administrator
-
1 week 1 day ago #116964
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Migrating custom modules beyond webtrees 2.2.6: GuzzleHttp replaced
webtrees 2.3.0 will have LOTS of breaking changes
I guess that most third party modules will be affected.
In most cases, things are just being done differently, rather than removing functionality.
I have written some documentation covering the main points webtrees.net/develop/2.3-changes
I can expand this to cover any specific questions.
Expect APIs to keep changing for the next few weeks...
At that point, I'll publish 2.3.0-beta1, and continue working on non-breaking changes for another month or so. This will give third-party developers a chance to test/update their modules before the actual 2.3.0 release.
I guess that most third party modules will be affected.
In most cases, things are just being done differently, rather than removing functionality.
I have written some documentation covering the main points webtrees.net/develop/2.3-changes
I can expand this to cover any specific questions.
Expect APIs to keep changing for the next few weeks...
At that point, I'll publish 2.3.0-beta1, and continue working on non-breaking changes for another month or so. This will give third-party developers a chance to test/update their modules before the actual 2.3.0 release.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Bootes
-
- Offline
- New Member
-
- New here but long time there
6 days 23 hours ago #116972
by Bootes
www.bootesgowland.info
hosted by hosting.webtrees.net
Guild of One Name Studies #4562
(BOOTES & GOWLAND)
Replied by Bootes on topic Migrating custom modules beyond webtrees 2.2.6: GuzzleHttp replaced
Nice tech speak, Greg. Just give us some implementation of the UK 1921 Census after all this time ...
www.bootesgowland.info
hosted by hosting.webtrees.net
Guild of One Name Studies #4562
(BOOTES & GOWLAND)
Please Log in or Create an account to join the conversation.
- RickM
-
- Offline
- Premium Member
-
6 days 21 hours ago #116973
by RickM
There is a small zip package available to 'implement' something for the 1921 Census. Please DM me or email. I can send it to you..
The main issue with inclusion of this is that it does NOT cover ALL columns etc for the Census..
Rick M
Tauranga
Nu Tirani - New Zealand
Malkins in Nu Tirani - New Zealand
Webtrees v2.2.6
wt-malkins.alineofmalkins.com
Hosted by HostArmada on Litespeed Server using PHP v8.4.12
Offline: WebTrees v2.2.6
Laragon v8.6.1, PHP v8.5.2
Replied by RickM on topic Migrating custom modules beyond webtrees 2.2.6: GuzzleHttp replaced
Hey thereNice tech speak, Greg. Just give us some implementation of the UK 1921 Census after all this time ...
There is a small zip package available to 'implement' something for the 1921 Census. Please DM me or email. I can send it to you..
The main issue with inclusion of this is that it does NOT cover ALL columns etc for the Census..
Rick M
Tauranga
Nu Tirani - New Zealand
Malkins in Nu Tirani - New Zealand
Webtrees v2.2.6
wt-malkins.alineofmalkins.com
Hosted by HostArmada on Litespeed Server using PHP v8.4.12
Offline: WebTrees v2.2.6
Laragon v8.6.1, PHP v8.5.2
Please Log in or Create an account to join the conversation.
- hermann
-
- Offline
- Elite Member
-
5 days 10 hours ago #116984
by hermann
Hermann
Designer of the custom module "Extended Family"
webtrees 2.2.6 (100 custom modules installed, PHP 8.4.10, MariaDB 10.6) @ ahnen.hartenthaler.eu
Replied by hermann on topic Migrating custom modules beyond webtrees 2.2.6: GuzzleHttp replaced
I just did a complete analysis of my modules, and I can say: yes, all my modules are affected in several ways. Up to now, no serious problem has shown up. I will be able to offer all my modules in a way that they are compatible with webtrees 2.2 and 2.3, but it will need some time.webtrees 2.3.0 will have LOTS of breaking changes
I guess that most third party modules will be affected.
Hermann
Designer of the custom module "Extended Family"
webtrees 2.2.6 (100 custom modules installed, PHP 8.4.10, MariaDB 10.6) @ ahnen.hartenthaler.eu
Please Log in or Create an account to join the conversation.