Repository navigation
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Why are the imports here not using the "/wp" bundle. Without this, there are other potential issues as WP gets updated. |
e2611e0 to
1acd99b
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #984 +/- ##
==========================================
Coverage 74.57% 74.57%
Complexity 3132 3132
==========================================
Files 132 132
Lines 12213 12213
==========================================
Hits 9108 9108
Misses 3105 3105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
It probably should, per the documented note. My initial instinct is that might be a bigger lift, but given the lockfile turmoil I'm facing here and potential risk of updates from a newer version of DataViews & UI packages, that might be a good alternative. Assuming it's mostly a matter of updating the imports, I'll push an alternative pull request for that. |
|
Aside: The |
|
Alternative updating to use |
Worth noting we are purposely not updating most of these dependencies as we want to ensure we're using the same versions that are in our lowest supported WordPress version (7.0). See #831 and #832 for more on that |
Interesting, and good to know! I don't think it's a great situation if plugins are intentionally not using the latest versions of packages, and one of the intended benefits of these "bundled" packages like |
|
Probably worth noting that |
|
Since DataViews gets bundled, doing updates now lets you absorb breaking changes incrementally, in smaller batches, rather than facing them all at once during a larger future version jump. That should end up being less (or at least easier) work in total. |
What?
Updates
@wordpress/dataviewsand@wordpress/uito their latest versions.Why?
The AI settings page is currently broken on Gutenberg
trunk, and will be broken in the next release of Gutenberg unless fixed.The issue stems back to WordPress/gutenberg#81478 removing
@wordpress/dataviewsas an allowlisted package in@wordpress/private-apis, as the result of the work done in WordPress/gutenberg#81230 to remove private APIs usage in DataViews.By removing DataViews from the allowlist, any consumer which bundles an older version of
@wordpress/dataviewsthat still relies on those private APIs will fail. From the consumer point of view, the mitigation is to upgrade to the latest version.How?
Upgrades DataViews to the latest version.
The
package-lock.jsondiff is much larger than I'd anticipate or hope, but I'm not sure it's avoidable. This is what results fromnpm installafter bumping the versions inpackage.json.Use of AI Tools
AI assistance: Yes
Tool(s): Cursor IDE
Model(s): Auto (likely Composer)
Used for: Research of impact based on related pull request and equivalent fixes in other projects like Automattic/jetpack#51701, as well as actual bumping of versions. Changes were reviewed by myself.
Testing Instructions
Test with changes alongside Gutenberg either
trunkor 23.9.0 RC1 prerelease.To test locally, I created a
.wp-env.override.jsonwith the following contents to load from my siblinggutenbergcode directory:{ "$schema": "https://schemas.wp.org/trunk/wp-env.json", "plugins": [ ".", "../gutenberg", "https://downloads.wordpress.org/plugin/ai-provider-for-google.zip", "https://downloads.wordpress.org/plugin/ai-provider-for-openai.zip" ] }Then run
npm run build && npm run wp-env start.Go to http://localhost:8888/wp-admin/options-general.php?page=ai-wp-admin
Confirm page loads as expected.
Changelog Entry
See include CHANGELOG.md edit.