Update to Guzzle 6+
Feature Description
As mentioned a few times, most recently again in #223.
Perhaps it could just be bumped? google/apiclient supports it, so there shouldn't be a conflict in that regard.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
guzzlehttp/guzzleshould be upgraded to the latest v6 version (but not v7)- All existing Guzzle client customizations must continue to work (see
Client_Factory::create_client)
- All existing Guzzle client customizations must continue to work (see
Implementation Brief
QA Brief
Changelog entry
I tried bumping the version while working on #547 but as I recall it didn't work so we kept it at 5.x for now.
This issue was originally raised related to #41 due to conflicts when installing the plugin via Composer directly using google/google-site-kit. This has never really been supported as this repo is not installable as a working version of the plugin.
We can however keep this issue as an upgrade to do in the future, although there's really no urgency to do so. Moving to stalled.
@aaemnnosttv Is there any reason why we are not upgrading to v7? The reason is we'll still have some compatibility issues with v6 and PHP 8.1, so why not use v7? 🤔
Is there any reason why we are not upgrading to v7?
@asvinb yes, v7 requires PHP 7.2+ https://packagist.org/packages/guzzlehttp/guzzle#7.0.0
Can you elaborate on what the specific issues would be with v6?
@aaemnnosttv I thought with the minimum WP version we support being bumped to 5.2, we could use Guzzle 7 but turns out that the minimum supported version is 5.6.20. I posted my comment while working on #5110 where with Guzzle 7, we'll still have some warnings on PHP 8.1, but this is irrelevant now 😅
@asvinb yes, our minimum supported version of PHP isn't changing at the same time as WP. I didn't quite follow your conclusion though – is it not possible to upgrade to v6 for now?
@aaemnnosttv Apologies for the confusion. All good to upgrade to the latest v6 👍 Guess I was confused with another ticket I was working on.
@asvinb great! Were you going to write the IB or is someone else best suited for that?
@aaemnnosttv I can give it a try although last time i had a look, I was stuck on some composer issue.
IB reviewer: please assign this back to me to work on when ready 👍
IB ✔️
QA Update ✅
- Tested on dev environment.
- Verified all modules set up process and dashboard widgets on PHP versions - 5.6, 7.4 and 8.2.
- Set up OAuth flow is working as expected.
- Dashboard widgets are appearing as expected.
Require QA :Eng review as per QAB.
Took a bit of work to QA the requests since it seems like our requests aren't sent through macOS's networking stack such that apps like Proxyman can pick them up, but got through it in the end 😅
QA ✅
Just as another QA note: @aaemnnosttv reminded me how to configure the WordPress proxy and it worked fine:
👍🏻