-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ticket #3209. Adds check by include_in_menu attribute before appendin… #3210
Conversation
…ppending children categories to the returned array.
|
@sirugh any idea why the coverage decreased? |
You can click "Details" and it should tell you :) |
Signed-off-by: sirugh <rugh@adobe.com>
...result.data.category.children, | ||
{ | ||
id: categoryId, | ||
include_in_menu: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the default data result
all has include_in_menu: 1
, we have to augment/add a case that will check the false branch/path.
@sirugh I believe we need a reviewer now? |
Correct :) It's in the queue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks and works great, thank you!
@aagasi - During QA I observed this behaving a little different than expected, but will need to confirm with the PM if Luma behavior is expected here. In Luma today the children of a not-in-menu node become siblings of that nodes parent, so that setting shouldn't make the node terminating. Will review with @tkacheva and let you know if this needs any adjustments. |
Current behavior is acceptable, will create followup task for UX to review. QA Approved ✅ |
…g children categories to the returned array.
Description
Adds a check to avoid returning children categories when doesn't apply.
Closes #3209
Breaking Changes
Breaking because it now does not display content if
include_in_menu
is false.Verification Steps