Repository navigation
Declare UUID dependency for WooCommerce Admin builds - #67822
Conversation
Testing GuidelinesApart from reviewing the code changes, please make sure to review the testing instructions (Guide) and verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed. Reminder: PR reviewers are required to document testing performed. This includes:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe pnpm configuration adds ChangesWooCommerce Admin dependency
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to This PR adds the missing UUID dependency for the affected WooCommerce Admin build without changing product behavior. No actionable merge-blocking risk remains after normal checks and review. Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. Test this pull request with WordPress Playground. Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a commit that changes plugin code. |
|
Size Change: 0 B 🆕 Total Size: 0 B |
tyxla
left a comment
There was a problem hiding this comment.
Have you also considered opening a PR in Gutenberg to add that dependency to the dataviews package? Fixing it here seems like the wrong place.
|
@tyxla this is already tracked in WordPress/gutenberg#67864 which is ~20 months old issue, and doesn't look like an easy fix I'd consider picking. There was already similar attempt at fixing different missing dependency in WordPress/gutenberg#76051 which was closed, so I assume fixing the symptoms by adding the |
|
I don’t see the dataviews package using I think a better fix here would be to update the package to the latest version instead of trying to patch an older version. |
@manzoorwanijk it's not direct dependency, it's consumed through That's what WordPress/gutenberg#67864 is about I think, that DataViews package consumes dependencies it doesn't declare. As for this specific PR, I'm working on updating vulnerable packages reported by Dependabot in #67777 - the goal is not to make big changes (such as bumping DataViews package from 10.1.7 to 18.0.0, which would still fail btw), but to close security issues. And this PR is only to make the comparison against |
kalessil
left a comment
There was a problem hiding this comment.
LGTM, pre-approving (CI is still running).
|
Ideally, @wordpress/dataviews should declare all of its dependencies that are imported in You can see the issues now in the playground.
|
|
I have now created a PR to actually fix it in Gutenberg - WordPress/gutenberg#81843 |
|
@manzoorwanijk: Nice, thanks! Also, I believe this doesn't block merging this PR (the admin dependency bump is a high-risk endeavor that will also derail efforts to address the current focus: fixing high-severity dependency reports by Dependabot)? |
Absolutely. I just wanted to fix the issue at the source, so that we don’t need such patching moving forward. |


Submission Review Guidelines:
Changes proposed in this Pull Request:
@wordpress/dataviews@10.1.7importsuuidwithout declaring it. As a result, filtered installs of the WooCommerce plugin can fail to build Admin when no unrelated workspace package hoistsuuid.Patch
@wordpress/dataviews@10.1.7with the current monorepo-aligneduuidrange through a version-scoped pnpm package extension. This gives the dependency to the package that imports it without affecting other DataViews versions or relying on hoisting. PR #67777 should update this package extension to the patched^11.1.1range after rebasing.Relates to #67777.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
pnpm install --filter='@woocommerce/plugin-woocommerce...' --filter='compare-perf...' --frozen-lockfile.pnpm --filter=@woocommerce/admin-library build.Can't resolve 'uuid'error from@wordpress/dataviews.Testing that has already taken place:
The filtered frozen install, Syncpack validation, changelog validation, and WooCommerce Admin production build passed locally.
Milestone
Changelog entry
Changelog Entry Details
Significance
Type
Message
Changelog Entry Comment
Comment
Created manually at
plugins/woocommerce/changelog/fix-admin-dataviews-uuid-dependency.Release Communication
Select the release communication labels this PR needs:
When to use each?
Feature Highlight: New features, UI changes, or improvements that merchants/store owners will notice.
Developer Advisory: Breaking changes, deprecations, or changes that affect themes/plugins/extensions.
Selected labels are applied when the pull request is merged.
Use of AI Tools
Codex was used to investigate the CI failure, prepare the dependency change, run local validation, and draft this PR.