Skip to content

Commit 77a035d

Browse files
jlukenoffXavier-Cliquennois
authored andcommitted
Lineage UI: Add a graph depth config option (MarquezProject#2525)
* stuff Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * Add headers Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * Fix zindex Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * Add minimum Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * hmm Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * retry Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * Update default depth Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * Add an entry to the Changlog Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * Dont reformat everything Signed-off-by: John Lukenoff <johnlukenoff@asana.com> --------- Signed-off-by: John Lukenoff <johnlukenoff@asana.com>
1 parent eab0352 commit 77a035d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

web/src/store/requests/lineage.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ export const getLineage = async (
1212
name: string,
1313
depth: number
1414
) => {
15-
const nodeId = generateNodeId(nodeType, namespace, name)
16-
// Node ID cannot be URL encoded
17-
const url = `${API_URL}/lineage?nodeId=${nodeId}&depth=${depth}`
15+
const params = new URLSearchParams({
16+
nodeId: generateNodeId(nodeType, namespace, name),
17+
depth: depth.toString()
18+
})
19+
const url = `${API_URL}/lineage?${params.toString()}`
1820
return genericFetchWrapper(url, { method: 'GET' }, 'fetchLineage')
1921
}

0 commit comments

Comments
 (0)