google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.22k stars 277 forks source link

Update `@wordpress/data` to version `4.27.3` using `patch-package` #8826

Closed kuasha420 closed 1 week ago

kuasha420 commented 1 month ago

Feature Description

Following on from the update to @wordpress/data 4.23.0 in https://github.com/google/site-kit-wp/issues/1769, we should update to version 4.27.3. This is the latest version that supports (via @wordpress/element) React 16.

Based on the learning from #6356 and recent hackathon exploration and its output branch here, we will use patch package to mitigate the bug discovered while working on the aforementioned issue.

This is a temporary solution until we are able to upgrade to v9.0.0 or later version of @wordpress/data in which version, the bug has been officially fixed! See this PR.

For patch-package, see the note about CI and caching here. Note that, our workflows does not cache node_module but the global package cache instead, so changes in patches folder should not require any changes for caching mechanism, just noting for completeness.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

Note for IB author: the hackathon branch can be used for a starting point while drafting the IB and/or implementing the issue in Execution.

Test Coverage

QA Brief

Changelog entry

tofumatt commented 1 month ago

All sounds good to me 👍🏻

IB ✅

mohitwp commented 1 week ago

QA Update ✅

mohitwp commented 1 week ago

I completed my testing but moving this back to QA. As per QAB it requires QA:Eng review also.

mohitwp commented 1 week ago

@tofumatt @techanvil Can you please confirm if all unit, integration and e2e tests are pass locally and in CI during CR ? If yes, then I will move this to approval.

tofumatt commented 1 week ago

@mohitwp Yes, everything is passing, this can be moved to Approval 👍🏻

mohitwp commented 1 week ago

Thank you @tofumatt ! Moving this back to approval.