Commit e009838a0b7 for woocommerce
commit e009838a0b73164dd19d7e850477a192f0673dca
Author: Mike Jolley <mike.jolley@me.com>
Date: Tue Nov 24 16:16:46 2026 +0000
Move UCP and Abilities code ownership to Big Ocean (#71376)
Big Ocean now owns UCP and Abilities. Point CODEOWNERS and the community
reviewer assigner at @woocommerce/big-ocean for those paths, and stop
routing them to Rubik. The rest of the Store API stays with Rubik.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
diff --git a/.github/actions/assign-reviewers/test.js b/.github/actions/assign-reviewers/test.js
index 7c743151de8..fbd5ff635bb 100644
--- a/.github/actions/assign-reviewers/test.js
+++ b/.github/actions/assign-reviewers/test.js
@@ -121,6 +121,55 @@ check( 'Admin Features files route to their feature owners', () => {
}
} );
+check( 'UCP and Abilities files route to big-ocean, the rest of the Store API to rubik', () => {
+ const community = path.join( __dirname, '../../project-community-pr-assigner.json' );
+ const config = JSON.parse( fs.readFileSync( community, 'utf8' ) );
+ const owners = ( file ) => {
+ const matched = Object.keys( config )
+ .filter( ( pattern ) => matches( pattern, file ) )
+ .flatMap( ( pattern ) => [].concat( config[ pattern ] ) );
+ return [ ...new Set( matched ) ];
+ };
+
+ const source = 'plugins/woocommerce/src';
+ const tests = 'plugins/woocommerce/tests/php/src';
+ const cases = [
+ [ `${ source }/StoreApi/Routes/V1/Ucp/Carts.php`, 'big-ocean' ],
+ [ `${ source }/StoreApi/Schemas/V1/Ucp/UcpCartSchema.php`, 'big-ocean' ],
+ [ `${ source }/StoreApi/Utilities/Ucp/CartMapper.php`, 'big-ocean' ],
+ [ `${ source }/StoreApi/Utilities/UcpUtils.php`, 'big-ocean' ],
+ [ `${ source }/Internal/Ucp/Bootstrap.php`, 'big-ocean' ],
+ [ `${ source }/Abilities/AbilitiesRegistry.php`, 'big-ocean' ],
+ [ `${ source }/Internal/Abilities/REST/Controller.php`, 'big-ocean' ],
+ [ `${ source }/Internal/AbilitiesApi/AbilitiesClient.php`, 'big-ocean' ],
+ [ `${ source }/StoreApi/StoreApi.php`, 'rubik' ],
+ [ `${ source }/StoreApi/Exceptions/RouteException.php`, 'rubik' ],
+ [ `${ source }/StoreApi/Routes/RouteInterface.php`, 'rubik' ],
+ [ `${ source }/StoreApi/Routes/V1/Cart.php`, 'rubik' ],
+ [ `${ source }/StoreApi/Routes/V1/AI/Middleware.php`, 'rubik' ],
+ [ `${ source }/StoreApi/Schemas/V1/CartSchema.php`, 'rubik' ],
+ [ `${ source }/StoreApi/Utilities/CartController.php`, 'rubik' ],
+ [ `${ tests }/Internal/Ucp/BootstrapTest.php`, 'big-ocean' ],
+ [ `${ tests }/Internal/AbilitiesApi/AbilitiesClientTest.php`, 'big-ocean' ],
+ ];
+
+ for ( const [ file, owner ] of cases ) {
+ assert.deepStrictEqual( owners( file ), [ owner ], `${ file } should route only to ${ owner }` );
+ }
+
+ // Every Blocks test also routes to kirigami.
+ const blocksCases = [
+ [ `${ tests }/Blocks/StoreApi/Routes/UcpCatalog.php`, 'big-ocean' ],
+ [ `${ tests }/Blocks/StoreApi/Routes/Ucp/CatalogReachabilityTest.php`, 'big-ocean' ],
+ [ `${ tests }/Blocks/StoreApi/Routes/Cart.php`, 'rubik' ],
+ [ `${ tests }/Blocks/StoreApi/Formatters/MoneyFormatter.php`, 'rubik' ],
+ ];
+
+ for ( const [ file, owner ] of blocksCases ) {
+ assert.deepStrictEqual( owners( file ).sort(), [ owner, 'kirigami' ].sort(), `${ file } should route to ${ owner } and kirigami` );
+ }
+} );
+
/* Requesting the reviews. */
const run = async ( { config, mode = 'changed-files', changed = [], requestReviewers, membership = {} } ) => {
diff --git a/.github/project-community-pr-assigner.json b/.github/project-community-pr-assigner.json
index a4519952381..1e8927343ff 100644
--- a/.github/project-community-pr-assigner.json
+++ b/.github/project-community-pr-assigner.json
@@ -30,9 +30,15 @@
"plugins/woocommerce/client/blocks/assets/js/blocks/{add-to-wishlist-button,cart,cart-checkout-shared,checkout,coupon-code,mini-cart,order-confirmation,payment-method-icons,saved-for-later,shopper-lists,wishlist}/**/*": "rubik",
"plugins/woocommerce/client/admin/client/{core-profiler,customize-store,launch-your-store,task-lists}/**/*": "rubik",
"plugins/woocommerce/assets/images/{core-profiler,onboarding,task_list}/**/*": "rubik",
- "plugins/woocommerce/src/{Checkout,StoreApi}/**/*": "rubik",
- "plugins/woocommerce/src/{Abilities,Api,Caches,Caching,Database,Enums,Proxies,Utilities,Vendor}/**/*": "rubik",
- "plugins/woocommerce/src/Internal/{Abilities,AbilitiesApi,Api,BatchProcessing,Caches,ComingSoon,CustomerEmailVerification,DependencyManagement,Features,LegacyAssets,Logging,MCP,OrderReviews,Orders,OrderWithdrawal,PushNotifications,ReceiptRendering,RestApi,ShopperLists,Traits,TransientFiles}/**/*": "rubik",
+ "plugins/woocommerce/src/Checkout/**/*": "rubik",
+ "plugins/woocommerce/src/StoreApi/{*,!(Routes|Schemas|Utilities)/**/*}": "rubik",
+ "plugins/woocommerce/src/StoreApi/{Routes,Schemas}/{*,!(V1)/**/*,V1/*,V1/!(Ucp)/**/*}": "rubik",
+ "plugins/woocommerce/src/StoreApi/Utilities/{!(Ucp*),!(Ucp*)/**/*}": "rubik",
+ "plugins/woocommerce/src/StoreApi/{Routes,Schemas}/V1/Ucp/**/*": "big-ocean",
+ "plugins/woocommerce/src/StoreApi/Utilities/{Ucp/**/*,UcpUtils.php}": "big-ocean",
+ "plugins/woocommerce/src/{Abilities,Internal/Abilities,Internal/AbilitiesApi,Internal/Ucp}/**/*": "big-ocean",
+ "plugins/woocommerce/src/{Api,Caches,Caching,Database,Enums,Proxies,Utilities,Vendor}/**/*": "rubik",
+ "plugins/woocommerce/src/Internal/{Api,BatchProcessing,Caches,ComingSoon,CustomerEmailVerification,DependencyManagement,Features,LegacyAssets,Logging,MCP,OrderReviews,Orders,OrderWithdrawal,PushNotifications,ReceiptRendering,RestApi,ShopperLists,Traits,TransientFiles}/**/*": "rubik",
"plugins/woocommerce/src/Internal/DataStores/*": "rubik",
"plugins/woocommerce/src/Internal/DataStores/Orders/**/*": "rubik",
"plugins/woocommerce/src/Internal/{AddressProvider,POS}/**/*": "kirigami",
@@ -48,7 +54,8 @@
"plugins/woocommerce/templates/{cart,checkout,order}/**/*": "rubik",
"plugins/woocommerce/tests/**/*{cart,checkout,order,rest-api,store-api,webhook}*": "rubik",
"plugins/woocommerce/tests/php/src/{Api,Caching,Database,Proxies,Utilities}/**/*": "rubik",
- "plugins/woocommerce/tests/php/src/Internal/{Abilities,AbilitiesApi,Api,BatchProcessing,Caches,ComingSoon,CustomerEmailVerification,DependencyManagement,Features,LegacyAssets,LegacyPhpApi,Logging,MCP,OrderReviews,Orders,OrderWithdrawal,PushNotifications,ReceiptRendering,RestApi,ShopperLists,Telemetry,Traits,TransientFiles}/**/*": "rubik",
+ "plugins/woocommerce/tests/php/src/Internal/{Abilities,AbilitiesApi,Ucp}/**/*": "big-ocean",
+ "plugins/woocommerce/tests/php/src/Internal/{Api,BatchProcessing,Caches,ComingSoon,CustomerEmailVerification,DependencyManagement,Features,LegacyAssets,LegacyPhpApi,Logging,MCP,OrderReviews,Orders,OrderWithdrawal,PushNotifications,ReceiptRendering,RestApi,ShopperLists,Telemetry,Traits,TransientFiles}/**/*": "rubik",
"plugins/woocommerce/tests/php/src/Internal/DataStores/*": "rubik",
"plugins/woocommerce/tests/php/src/Internal/DataStores/Orders/**/*": "rubik",
"plugins/woocommerce/tests/php/src/Internal/Admin/{Logging,Onboarding,Orders,Schedulers}/**/*": "rubik",
@@ -157,7 +164,8 @@
"plugins/woocommerce/client/admin/client/{mobile-app-login,mobile-banner}/**/*": "@jorgemucientes",
"packages/js/remote-logging/**/*": "rubik",
"plugins/woocommerce/tests/php/src/Blocks/**/*": "kirigami",
- "plugins/woocommerce/tests/php/src/Blocks/StoreApi/**/*": "rubik",
+ "plugins/woocommerce/tests/php/src/Blocks/StoreApi/{*,!(Routes)/**/*,Routes/!(Ucp*),Routes/!(Ucp*)/**/*}": "rubik",
+ "plugins/woocommerce/tests/php/src/Blocks/StoreApi/Routes/{Ucp*,Ucp/**/*}": "big-ocean",
"plugins/woocommerce/tests/php/src/Internal/{AddressProvider,CostOfGoodsSold,Customers,POS,ProductAttributes,ProductAttributesLookup,ProductDownloads,ProductFeed,ProductFilters,ProductGallery,VariationGallery}/**/*": "kirigami",
"plugins/woocommerce/tests/php/src/Internal/Admin/{ProductForm,ProductReviews}/**/*": "kirigami",
"plugins/woocommerce/tests/php/src/Internal/{AssignDefaultCategoryTest.php,DownloadPermissionsAdjusterTest.php}": "kirigami",
diff --git a/CODEOWNERS b/CODEOWNERS
index 5c16c45aa72..64d1bf1e06b 100644
--- a/CODEOWNERS
+++ b/CODEOWNERS
@@ -48,6 +48,18 @@
/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php @woocommerce/kirigami
/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php @woocommerce/kirigami
+# Store API UCP routes, schemas, and utilities
+/plugins/woocommerce/src/StoreApi/Routes/V1/Ucp/ @woocommerce/big-ocean
+/plugins/woocommerce/src/StoreApi/Schemas/V1/Ucp/ @woocommerce/big-ocean
+/plugins/woocommerce/src/StoreApi/Utilities/Ucp/ @woocommerce/big-ocean
+/plugins/woocommerce/src/StoreApi/Utilities/UcpUtils.php @woocommerce/big-ocean
+
+# UCP and Abilities
+/plugins/woocommerce/src/Internal/Ucp/ @woocommerce/big-ocean
+/plugins/woocommerce/src/Abilities/ @woocommerce/big-ocean
+/plugins/woocommerce/src/Internal/Abilities/ @woocommerce/big-ocean
+/plugins/woocommerce/src/Internal/AbilitiesApi/ @woocommerce/big-ocean
+
# Legacy REST API order controllers
/plugins/woocommerce/includes/rest-api/Controllers/Version*/class-wc-rest-order*.php @woocommerce/rubik
/plugins/woocommerce/includes/rest-api/Controllers/Version*/class-wc-rest-network-orders*.php @woocommerce/rubik