Clarify difference between tree_path and tree_ordering in documentation #94
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enhances the documentation to clearly explain the difference between
tree_path
andtree_ordering
fields, addressing user confusion particularly when using UUID primary keys.Problem
Users were confused about the purpose and content of
tree_path
vstree_ordering
fields, especially when using UUID primary keys where both fields would contain identical UUID values by default. The existing documentation briefly mentioned these fields but didn't clearly explain their distinct purposes.Solution
Enhanced brief description: Updated the initial explanation in the limitations section to be more descriptive about what each field contains, with specific mention of the UUID primary key case.
Added comprehensive "Understanding tree fields" section with:
tree_depth
,tree_path
,tree_ordering
)UUID-specific guidance: Explains why UUID users see identical values in both fields (default primary key ordering) and provides a practical solution using explicit ordering fields like
position
.Key clarifications
tree_path
: Array of primary keys from root to current node (like a breadcrumb trail)tree_ordering
: Array of ordering/ranking values used for sibling ordering at each levelposition
field withordering = ['position']
makes the distinction clearFixes #20.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.