-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve container discovery in graph traversal
The previous implementation was missing potential containers for new resources because it only followed outgoing 'part_of' relationships. This could prevent reaching container resources in cases where the input resource was the subject (not the object) of the 'part_of' relationship. The fix adds inverse relationship traversal for non-root resources while maintaining efficiency by: 1. Only checking inverse relationships for resources that could be containers 2. Skipping this check for root types (resources that can never be containers) This ensures complete container discovery while avoiding unnecessary queries for leaf resources in the containment hierarchy.
- Loading branch information
arcangelo7
committed
Jan 22, 2025
1 parent
6d61847
commit 45f285c
Showing
7 changed files
with
605 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.