refactor: make global environment a versioned entity (#4216)

Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Palak Chopra
2024-09-23 17:01:14 +05:30
committed by GitHub
parent 1701961335
commit bfe3b3a9c3
17 changed files with 337 additions and 138 deletions

View File

@@ -303,12 +303,15 @@ export function runRESTRequest$(
tab.value.document.testResults =
translateToSandboxTestResults(updatedRunResult)
setGlobalEnvVariables(
updateEnvironmentsWithSecret(
runResult.right.envs.global,
"global"
)
const globalEnvVariables = updateEnvironmentsWithSecret(
runResult.right.envs.global,
"global"
)
setGlobalEnvVariables({
v: 1,
variables: globalEnvVariables,
})
if (
environmentsStore.value.selectedEnvironmentIndex.type === "MY_ENV"
) {