refactor: persist IDs under tab save context

This commit is contained in:
jamesgeorge007
2024-02-16 19:09:06 +05:30
parent 89f7c2ce5e
commit 316dc8f759
9 changed files with 110 additions and 182 deletions

View File

@@ -3,8 +3,6 @@ import { HoppRESTResponse } from "../types/HoppRESTResponse"
import { HoppTestResult } from "../types/HoppTestResult"
import { RESTOptionTabs } from "~/components/http/RequestOptions.vue"
import { HoppInheritedProperty } from "../types/HoppInheritedProperties"
import { HandleRef } from "~/services/new-workspace/handle"
import { WorkspaceRequest } from "~/services/new-workspace/workspace"
export type HoppRESTSaveContext =
| {
@@ -14,9 +12,24 @@ export type HoppRESTSaveContext =
// TODO: Make this `user-collection` after porting all usages
originLocation: "workspace-user-collection"
/**
* Handle to a request in the workspace
* ID of the workspace
*/
requestHandle: HandleRef<WorkspaceRequest>
workspaceID: string
/**
* ID of the provider
*/
providerID: string
/**
* ID of the collection
*/
collectionID: string
/**
* Path to the request in the collection tree
*/
requestID: string
}
| {
/**