Repository navigation
feat(categories): include parent_uuid in internal category responses - #316
Merged
Merged
Conversation
A console building a category tree from a flat list (Storefront's nested product categories) needs each category's parent without loading it. The internal Category resource now sends parent_uuid; public responses do not.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/v1.6.71 #316 +/- ##
===================================================
Coverage 100.00% 100.00%
Complexity 8931 8931
===================================================
Files 473 473
Lines 28056 28057 +1
===================================================
+ Hits 28056 28057 +1
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:
|
This was referenced Oct 15, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
The internal
Categoryresource now includesparent_uuid. Public responses don't.Storefront is adding nested product and catalog categories, up to three levels. Its console already draws a category tree in the products sidebar (
category-sidebar.js,childrenOf()byparent_uuid), but the resource never sentparent_uuid, so the tree always rendered flat. With the field, the console builds the tree from the flat list it already loads, withoutwith_parentloading every parent. The console'scategoryEmber model already has aparent_uuidattribute.Tests
tests/Unit/Http/ResourceResponseContractsTest.php:parent_uuid;13 tests pass.
php-cs-fixer: clean.Release
Adds an "Added" entry to the v1.6.71
RELEASE.md. No migration:parent_uuidis an existing column.