refactor: persist only request handles under tab saveContext at runtime

Remove provider, workspace and request IDs.
This commit is contained in:
jamesgeorge007
2024-05-01 13:53:44 +05:30
parent 7ca94a99b7
commit 8b65090dfb
6 changed files with 8 additions and 22 deletions

View File

@@ -123,7 +123,6 @@ export function resolveSaveContextOnCollectionReorder(
requestID.split("/").slice(-1)[0]
}`
tab.value.document.saveContext.requestID = newRequestID
requestHandle.data = {
...requestHandle.data,
collectionID: newCollectionID!,

View File

@@ -102,7 +102,6 @@ export function resolveSaveContextOnRequestReorder(payload: {
requestIDArr[requestIDArr.length - 1] = requestIndex.toString()
tab.value.document.saveContext.requestID = requestIDArr.join("/")
requestHandle.data.requestID = requestIDArr.join("/")
requestHandle.data.collectionID = requestIDArr.slice(0, -1).join("/")
}

View File

@@ -16,17 +16,17 @@ export type HoppRESTSaveContext =
/**
* ID of the workspace
*/
workspaceID: string
workspaceID?: string
/**
* ID of the provider
*/
providerID: string
providerID?: string
/**
* Path to the request in the collection tree
*/
requestID: string
requestID?: string
/**
* Handle to the request open in the tab