Skip to content

IBX-9855: Added isHidden property to ContentTree Node #1675

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

Merged
merged 3 commits into from
Aug 21, 2025

Conversation

wiewiurdp
Copy link
Contributor

@wiewiurdp wiewiurdp commented Aug 12, 2025

🎫 Issue IBX-9855

Related PRs:

Description:

Added isHidden property to ContentTree Node

@wiewiurdp wiewiurdp marked this pull request as ready for review August 13, 2025 07:10
@wiewiurdp wiewiurdp requested a review from a team August 18, 2025 09:48
@ezrobot ezrobot requested review from adamwojs, mikadamczyk, Steveb-p, alongosz, ciastektk, ViniTou, barw4, konradoboza and tbialcz and removed request for a team August 18, 2025 09:48
@@ -35,6 +35,9 @@ class Node extends RestValue
/** @var bool */
public $isInvisible;

/** @var bool */
public $isHidden;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public $isHidden;
public bool $isHidden;

Comment on lines 56 to 57
$generator->startValueElement('isHidden', $generator->serializeBool($data->isHidden));
$generator->endValueElement('isHidden');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use valueElement instead.

@@ -396,7 +395,8 @@ private function buildNode(
'', // node name will be provided later by `supplyTranslatedContentName` method
null !== $contentType ? $contentType->getIdentifier() : '',
null === $contentType || $contentType->isContainer(),
$location->isInvisible() || $location->isHidden(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that behavior change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pawlakadrian pawlakadrian force-pushed the IBX-9855-fixing-visibility-status branch from 36396ef to a9f373a Compare August 20, 2025 12:27
Copy link

@pawlakadrian pawlakadrian self-requested a review August 21, 2025 12:51
Copy link

@pawlakadrian pawlakadrian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA Approved on DXP Commerce 4.6.x-dev

@adamwojs adamwojs merged commit 9467c90 into 4.6 Aug 21, 2025
29 checks passed
@adamwojs adamwojs deleted the IBX-9855-fixing-visibility-status branch August 21, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants