Skip to content

feat(categories): include parent_uuid in internal category responses - #316

Merged
roncodes merged 2 commits into
release/v1.6.71from
feat/category-parent-uuid
Oct 16, 2026
Merged

roncodes merged 2 commits into
release/v1.6.71from
feat/category-parent-uuid

Conversation

@roncodes

Copy link
Copy Markdown
Member

Change

The internal Category resource now includes parent_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() by parent_uuid), but the resource never sent parent_uuid, so the tree always rendered flat. With the field, the console builds the tree from the flat list it already loads, without with_parent loading every parent. The console's category Ember model already has a parent_uuid attribute.

Tests

tests/Unit/Http/ResourceResponseContractsTest.php:

  • internal payloads include parent_uuid;
  • public payloads don't.

13 tests pass. php-cs-fixer: clean.

Release

Adds an "Added" entry to the v1.6.71 RELEASE.md. No migration: parent_uuid is an existing column.

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

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (719b438) to head (c31a3f0).

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     
Flag Coverage Δ
backend 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roncodes
roncodes merged commit a0e0dcf into release/v1.6.71 Oct 16, 2026
5 checks passed
@roncodes
roncodes deleted the feat/category-parent-uuid branch October 16, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant