From 574c875053d6141e0878774db75379e575c58797 Mon Sep 17 00:00:00 2001 From: Iddo Date: Thu, 2 Jul 2026 15:22:41 +0200 Subject: [PATCH] Add changelog newsfragment for path traversal shortest_paths_only (#1119) --- changelog/1119.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/1119.added.md diff --git a/changelog/1119.added.md b/changelog/1119.added.md new file mode 100644 index 00000000..68a43e33 --- /dev/null +++ b/changelog/1119.added.md @@ -0,0 +1 @@ +Added a `shortest_paths_only` parameter to `InfrahubClient.traverse_paths()` and its sync equivalent (default `None`, deferring to the server). Set it to `False` to return all loopless paths up to `max_paths` instead of only the shortest one(s); previously path traversal always returned the shortest path(s) because the flag could not be set. `PathTraversalResult` now also parses `truncated_at_depth`, which is set when the search stopped at `max_depth` before exhausting the graph and `None` when it completed within budget.