Skip to content

Conversation

@SimonBurmer
Copy link

@SimonBurmer SimonBurmer commented Dec 9, 2025

This PR adds a ref of the parent node to the current child node. This ref is needed to correctly traverse the reference tree from a child node up to the parent node. A progress needed when wanting to apply (e.g. redirecting) changes to all nodes in a reference tree, starting from a child.

@SimonBurmer SimonBurmer requested review from a team as code owners December 9, 2025 01:17
@SimonBurmer SimonBurmer self-assigned this Dec 9, 2025
@gkrajniak
Copy link
Member

@SimonBurmer but that is handled by the Luigi all the children nodes get parent node ref, there is no need to do it in this repo.

image

globalNodes.forEach((node) => {
node.context = { ...node.context };
node.globalNav = this.isGlobalNavNode(node);
node.parent = undefined;
Copy link
Member

Choose a reason for hiding this comment

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

not needed

@SimonBurmer SimonBurmer deleted the feat/add-parent-to-child-node branch December 12, 2025 00:21
@tobias-oetzel
Copy link
Contributor

Thanks for replying @gkrajniak we found out that during the node processing by the server, the parent relation is not maintained by luigi yet. But we cannot use the processor anyhow and needed to move to the https://docs.luigi-project.io/docs/navigation-parameters-reference?section=onnodeactivation api. So its correct to close this.

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.

4 participants