Skip to content
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

Feature/add node tree function #514

Closed
wants to merge 2 commits into from

Conversation

electronicbites
Copy link
Collaborator

@electronicbites electronicbites commented Feb 17, 2024

As a preparation for moving nodes I implemented a function to return the whole outline tree of an episode with the help of a recursive common table expression. It does not load the associations prev and parent, I could not find a way how this could work without loading single nodes multiple times. Instead I introduced a virtual attribute level that should help to work with changing nodes in the tree.
This is draft since I would like to implement the move_node function which uses this tree function. So there might be changes, or at worst it turns out this as it is wont work well.
So this is a sneak preview of the tree function as I intended to implement it and gives you the chance to raise your concerns ;)

@electronicbites electronicbites force-pushed the feature/add-node-tree-function branch 3 times, most recently from 739fc12 to e566691 Compare February 17, 2024 18:42
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