Skip to content

Commit f802443

Browse files
jlukenoffXavier-Cliquennois
authored andcommitted
Revert URL encoding when fetching lineage (MarquezProject#2529)
* Revert URL encoding Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * comment Signed-off-by: John Lukenoff <johnlukenoff@asana.com> * Add a test Signed-off-by: John Lukenoff <johnlukenoff@asana.com> --------- Signed-off-by: John Lukenoff <johnlukenoff@asana.com> Signed-off-by: Xavier-Cliquennois <xavier.cliquennois@wearegraphite.io>
1 parent 3ddb56f commit f802443

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

web/src/store/requests/lineage.ts

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

0 commit comments

Comments
 (0)